CollectionCreateInput
Exactly like Collection, but no publishedAt or Status (Status is set to DRAFT on create).
input CollectionCreateInput {
collectionType: String!
contentItemIds: [ID!]
demandHqId: ID!
description: String
primaryImageUrl: String
rules: CollectionRulesInput
secondaryImageUrl: String
seoDescription: String
seoTitle: String
slug: String!
storefrontIds: [ID]
subtitle: String
tags: [String]
tertiaryImageUrl: String
title: String!
}
Fields
CollectionCreateInput.collectionType
● String!
non-null scalar
Any string to declare a category of this collection, can be used to filter collections, limit 128 characters.
CollectionCreateInput.contentItemIds
● [ID!]
list scalar
The ContentItemIds of the Content Items that are associated with this collection.
CollectionCreateInput.demandHqId
● ID!
non-null scalar
CollectionCreateInput.description
● String
scalar
A short description of the collection, limit 1000 characters.
CollectionCreateInput.primaryImageUrl
● String
scalar
A primary image url for this collection, can be generated from a Collection ContentItem.
CollectionCreateInput.rules
● CollectionRulesInput
input
A map of rules to determine whether a Product should be part of this Collection.
CollectionCreateInput.secondaryImageUrl
● String
scalar
A secondary image url for this collection, often a logo or related item.
CollectionCreateInput.seoDescription
● String
scalar
Description specific for SEO purposes, limit 170 characters.
CollectionCreateInput.seoTitle
● String
scalar
Title specific for SEO purposes, limit 256 characters.
CollectionCreateInput.slug
● String!
non-null scalar
Slug for the URL for this collection. Limit 128 characters.
CollectionCreateInput.storefrontIds
● [ID]
list scalar
Which storefronts should have access to this collection?
CollectionCreateInput.subtitle
● String
scalar
The subtitle of the collection, limit 256 characters.
CollectionCreateInput.tags
● [String]
list scalar
CollectionCreateInput.tertiaryImageUrl
● String
scalar
A tertiary image url for this collection, not often used.
CollectionCreateInput.title
● String!
non-null scalar
The title of the collection, limit 256 characters.
Member of
createCollection
mutation