create method

ResponseFuture<IdentifierResponse> create(
  1. ActionsCodesServiceCreateRequest request, {
  2. CallOptions? options,
})

Creates a new record and immediately moves it to the verification workflow.

This method validates all required fields. The record is created with a STANDARD_LIFECYCLE_STATUS.PREVERIFY status.

Side Effects:

  • Generates a unique system UUID.
  • Records an audit log for the "Create" action.
  • May trigger automated verification workflows.

Errors:

  • INVALID_ARGUMENT: If validation rules fail (e.g., empty name or code).
  • ALREADY_EXISTS: If the code is already taken.

Implementation

$grpc.ResponseFuture<$1.IdentifierResponse> create(
  $0.ActionsCodesServiceCreateRequest request, {
  $grpc.CallOptions? options,
}) {
  return $createUnaryCall(_$create, request, options: options);
}