Admin API / Types

CreateCollectionInput

Input

A new collection.

input CreateCollectionInput

Input fields

FieldTypeDescription
defaultSortCollectionItemSortInputThe default listing order. Listing collections only. Default CREATED_AT descending.
displayNameNonEmptyString!Trimmed. The call refuses a name that another collection of the item type has, ignoring letter case. A deleted manual listing collection can keep its name taken. Two concurrent creates are not checked against each other.
featuredBooleanTrue: the storefront home page shows a feed of the items. Default false.
idempotencyKeyString!A client-generated key, 1 to 200 characters after trim. A repeat with the same key and input within 24 hours returns the first result and creates no second collection. The same key with another input returns IdempotencyConflictError.
itemTypeCollectionItemType!Whether the collection holds listings or livestreams.
listingsFilterBooleanTrue: the storefront listings page offers the collection as a filter. Listing collections only. Default true.
pinnedBooleanTrue: the storefront home page shows the collection at the top. Listing collections only. Default false.
rulesCollectionRulesInputMakes an automated listing collection: the listings that match the rules. Omit for a manual collection. Not with sellerPolicy, and not on a livestream collection: either gives VALIDATION_ERROR.
sellerPolicyCollectionSellerPolicyWho can add items and remove them. Manual collections only. Default SELLERS_OWN_ITEMS.
thumbnailFileUrlURLThe public URL of a PUBLIC District files image: File.url with access: PUBLIC in District API. Any last path segment is accepted. The collection stores its own copy of the 4096-pixel rendition on the marketplace image host, so a later change to the file in District files does not change the thumbnail. Not with thumbnailId: VALIDATION_ERROR. When District files does not answer the check or the copy fails, the mutation fails with error code MEDIA_FILE_CHECK_FAILED and writes nothing; send the same request again.
thumbnailIdIDAn image that the caller owns. Omitted, with no thumbnailFileUrl: no thumbnail.
visibilityCollectionVisibilityWhether the storefront shows the collection. Default PUBLIC.