Shopify Collections icon

Shopify Collections

Create and manage Shopify collections through the Admin GraphQL API

Collection → Add Products

AI-generated

Summary

Add one or more products to a specified manual Shopify collection by its GraphQL collection ID.

Inputs

  • Collection ID (required) — The GraphQL ID of the Shopify collection to which products will be added.
  • Product IDs (required) — A list of product GraphQL IDs to add to the collection. This parameter only applies to manual collections.
  • Return Full Response — Optionally return the raw Shopify GraphQL response payload instead of only the collection data.

Output shape

a single collection object representing the updated collection with the added products

If 'Return Full Response' is enabled, the output includes the full Shopify GraphQL response. Otherwise, it returns the updated collection properties (id, title, handle, updatedAt). At least one product ID is required to perform this operation.

Links

Discussion