Batch Add Items By Name User Error
An error that occurs during the execution of .
Anchor to FieldsFields
- code (BatchAddItemsByNameUserErrorCode)
- field ([String!])
- message (String!)
- Anchor to codecode•Batch
Add Items By Name User Error Code The error code.
Show enum values
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- batchAddItemsByName (BatchAddItemsByNamePayload)
- •mutation
Adds items to the most recent open or in-progress batch with the given name. An item goes to a different batch with the same name when that batch is full or when the batch workflow's steps don't allow the item in that batch alongside the items it already has. A full batch's overflow goes to a new batch with the same name, never an older one. Concurrent requests with the same name don't create duplicate batches.
Supports an optional idempotency key using the
@idempotentdirective. For more information, see the idempotency documentation.Show payload
- Anchor to itemIdsitem•[ID!]
Ids The items to add. If omitted or null, the matching batch is returned, or an empty batch with the given name is created if none exists. An empty list returns a
NO_ITEMSerror.- Anchor to namename•String!required
The name of the batch to add items to. A batch with this name is created if no eligible batch with the name exists.
- Anchor to workflowIdworkflow•ID
Id The batch workflow to match. If set, only batches that use it are matched. If omitted, matching batches can use any batch workflow, and new batches use the shop's default batch workflow, which is created if it doesn't exist.
Arguments