Skip to main content
input_object

The input fields required to create a collection.

•String

The description of the collection, in HTML format.

•String

A unique human-friendly string for the collection. Automatically generated from the collection's title.

•ID

Specifies the collection to update or create a new collection if absent. Required for updating a collection.

•ImageInput

The image associated with the collection.

Show input fields
•[MetafieldInput!]

The metafields to associate with the collection.

Show input fields
•[ID!]

Initial list of collection products. Only valid with collectionCreate.

•Boolean
Default:false

Indicates whether a redirect is required after a new handle has been provided. If true, then the old handle is redirected to the new one automatically.

•CollectionRuleSetInput

The rules used to assign products to the collection. This is the legacy smart-collection model; use sources with conditions instead. Each ruleSet rule has an equivalent condition.

Show input fields
•SEOInput

SEO information for the collection.

Show input fields
•CollectionSortOrder

The order in which the collection's products are sorted.

Show enum values
•String

The theme template used when viewing the collection in a store.

•String

The title of the collection. Required for creating a new collection.

•[CollectionPublicationInput!]
Deprecated
Show input fields

Was this section helpful?