Skip to main content
mutation

Requires write_batches 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.

•ID!
required

The ID of the batch.

•[ID!]!
required

The IDs of the items to add to the batch. An empty list returns a NO_ITEMS error.


Was this section helpful?

Anchor to BatchAddItemsPayload returnsBatchAddItemsPayload returns

•[Batchable!]

The items that were successfully added to the batch.

Show fields
•Batch

The batch with the newly added items.

Show fields
•[BatchItemRejection!]

Items that were rejected when adding to the batch, grouped by rejection reason.

Show fields
•[BatchAddItemsUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?