Anchor to batchAddItemsbatch
mutationbatch Add Items
Requires access scope.
Adds items to the first step of an existing batch.
Supports an optional idempotency key using the @idempotent directive. For
more information, see the idempotency
documentation.
Anchor to Arguments
Arguments
- id (ID!)
- itemIds ([ID!]!)
- •ID!required
The ID of the batch.
- Anchor to itemIdsitem•[ID!]!
Ids required The IDs of the items to add to the batch. An empty list returns a
NO_ITEMSerror.
Was this section helpful?
- addedItems ([Batchable!])
- batch (Batch)
- batchItemRejections ([BatchItemRejection!])
- userErrors ([BatchAddItemsUserError!]!)
- Anchor to addedItemsadded•[Batchable!]
Items The items that were successfully added to the batch.
Show fields
- Anchor to batchbatch•Batch
The batch with the newly added items.
Show fields
- Anchor to batchItemRejectionsbatch•[Batch
Item Rejections Item Rejection!] Items that were rejected when adding to the batch, grouped by rejection reason.
Show fields
- Anchor to userErrorsuser•[Batch
Errors Add Items User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields
Was this section helpful?