CollectionInput
The input fields required to create a collection.
Anchor to FieldsFields
- Anchor to descriptionHtmldescription•
Html The description of the collection, in HTML format.
- Anchor to handlehandle•
A unique human-friendly string for the collection. Automatically generated from the collection's title.
- •
Specifies the collection to update or create a new collection if absent. Required for updating a collection.
- Anchor to imageimage•
The image associated with the collection.
- Anchor to metafieldsmetafields•
The metafields to associate with the collection.
- Anchor to productsproducts•
Initial list of collection products. Only valid with
and without rules.
- Anchor to redirectNewHandleredirect•
New Handle BooleanDefault: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.
- Anchor to ruleSetrule•
Set The rules used to assign products to the collection.
- •
SEO information for the collection.
- Anchor to sortOrdersort•
Order The order in which the collection's products are sorted.
- Anchor to templateSuffixtemplate•
Suffix The theme template used when viewing the collection in a store.
- Anchor to titletitle•
The title of the collection. Required for creating a new collection.
- Anchor to publicationspublications•[Collection
Publication DeprecatedInput!] Initial list of collection publications. Only valid with
. Use PublishablePublish instead.