Anchor to batchCreatebatch
mutationbatch Create
Requires access scope.
Creates a batch.
Anchor to Arguments
Arguments
- itemIds ([ID!])
- name (String)
- workflowId (ID)
- Anchor to itemIdsitem•[ID!]
Ids The items to add to the first step during batch creation. If omitted or null, an empty batch is created. An empty list returns a
NO_ITEMSerror.- Anchor to namename•String
The display name for the batch. If omitted, a name is generated automatically.
- Anchor to workflowIdworkflow•ID
Id The batch workflow for the new batch. If omitted, the shop's default batch workflow is used, and it's created if it doesn't exist.
Was this section helpful?
- batch (Batch)
- batchItemRejections ([BatchItemRejection!])
- userErrors ([BatchCreateUserError!]!)
- Anchor to batchbatch•Batch
The created batch.
Show fields
- Anchor to batchItemRejectionsbatch•[Batch
Item Rejections Item Rejection!] Items that were rejected when adding initial items to the batch, grouped by rejection reason.
Show fields
- Anchor to userErrorsuser•[Batch
Errors Create User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields
Was this section helpful?