Skip to main content
PUT
Upsert Collection

Authorizations

X-Authorization
string
header
required

API Scope: "Collections (write)"

Body

application/json
external_id
string
required

The identifier used by an external source to identify the collection.

Maximum string length: 100
Example:

"1263csss-12uhsdfh-2138dja"

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"

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