Admin API / Mutations
createCollection
Creates a collection: manual without rules, automated with rules. It is first in the display order, and the storefront shows it unless visibility is HIDDEN. The slug comes from the name and does not change. defaultSort, listingsFilter or pinned on a livestream collection fails with VALIDATION_ERROR. deleteCollections deletes a collection. A repeat with the same idempotencyKey and input returns the first result. Requires the ADMIN role or higher.
Requires a client key with one of these scopes:
admin:collections:writeRequires this member role or higher: ADMINcreateCollection(
input: CreateCollectionInput!
): CreateCollectionPayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateCollectionInput! | The collection and the idempotency key. |