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: 64
Example:

"71263csss-12uhsdfh-2138dja"

products
(integer | object)[] | null

An array of products to add to the collection.

A product to add to the collection, provided either as a plain integer global identifier or as an object with a global_id.

Response

Success

collection
object
required