Collection Add Products V2User Error
An error that occurs during the execution of .
Anchor to FieldsFields
- code (CollectionAddProductsV2UserErrorCode)
- field ([String!])
- message (String!)
- Anchor to codecode•Collection
Add Products V2User Error Code The error code.
- 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
- collectionAddProductsV2 (CollectionAddProductsV2Payload)
- •mutation
Adds products to a
Collectionasynchronously and returns aJobto track the operation's progress. This mutation handles large product sets efficiently by processing them in the background.You can poll the returned job using the
jobquery to monitor completion status.Note: This mutation adds products in the order specified in the <a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/collectionAddProducts#arguments-productIds"><code><span class="PreventFireFoxApplyingGapToWBR">product<wbr/>Ids</span></code></a> argument.
- •ID!required
The ID of the collection that's being updated.
- Anchor to productIdsproduct•[ID!]!
Ids required The IDs of the products that are being added to the collection. If the collection's sort order is manual, the products will be added in the order in which they are provided.
Arguments
- •ID!