Anchor to catalogCreatecatalog
catalogCreate
mutation
Requires access scope. Also: The user must have permission to create and edit catalogs.
Creates a new catalog.
Anchor to Arguments
Arguments
- Anchor to inputinput•Catalog
Create requiredInput! The properties of the new catalog.
Was this section helpful?
Anchor to CatalogCreatePayload returnsCatalogCreatePayload returns
- Anchor to catalogcatalog•
The newly created catalog.
- Anchor to userErrorsuser•
Errors [CatalogUser non-nullError!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation catalogCreate($input: CatalogCreateInput!) {
catalogCreate(input: $input) {
catalog {
# Catalog fields
}
userErrors {
field
message
}
}
}
Input
{
"input": {
"context": {
"companyLocationIds": [
"gid://shopify/<objectName>/10079785100"
]
},
"priceListId": "gid://shopify/<objectName>/10079785100",
"publicationId": "gid://shopify/<objectName>/10079785100",
"status": "",
"title": "<your-title>"
}
}
{
"input": {
"context": {
"companyLocationIds": [
"gid://shopify/<objectName>/10079785100"
]
},
"priceListId": "gid://shopify/<objectName>/10079785100",
"publicationId": "gid://shopify/<objectName>/10079785100",
"status": "",
"title": "<your-title>"
}
}
input CatalogCreateInput {
context: CatalogContextInput!
priceListId: ID
publicationId: ID
status: CatalogStatus!
title: String!
}
input CatalogContextInput {
companyLocationIds: [ID!]
}