Skip to main content
POST
Create Collection

Authorizations

X-Authorization
string
header
required

API Scope: "Collections (write)"

Body

application/json
sales_channel
string
required

If a channel with this name is not already associated with the shop, it will be used to create a new channel.

Maximum string length: 255
Example:

"shopify"

name
string
required

The name of the collection.

Maximum string length: 255
Example:

"Footwear"

external_id
string | null

The provided external_id must be unique. If a non-unique external_id is provided, the API will respond with an error.

Maximum string length: 100
Example:

"71263csss-12uhsdfh-2138dja"

products
integer · object · object · object[] | null

An array of products to add to the collection.

A product to add to the collection, provided as a plain integer or as an object with at least one of id / external_id. When both are sent, the server uses external_id and ignores id. A mismatch is not a 422.

Response

Success

collection
object
required