Anchor to catalogUpdatecatalog
catalogUpdate
mutation
Requires access scope. Also: The user must have permission to create and edit catalogs.
Updates an existing catalog.
Anchor to Arguments
Arguments
- •ID!required
The ID of the catalog to update.
- Anchor to inputinput•Catalog
Update requiredInput! The properties of the updated catalog.
Was this section helpful?
Anchor to CatalogUpdatePayload returnsCatalogUpdatePayload returns
- Anchor to catalogcatalog•
The updated 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 catalogUpdate($id: ID!, $input: CatalogUpdateInput!) {
catalogUpdate(id: $id, input: $input) {
catalog {
# Catalog fields
}
userErrors {
field
message
}
}
}
Input
{
"id": "gid://shopify/<objectName>/10079785100",
"input": {
"context": {
"companyLocationIds": [
"gid://shopify/<objectName>/10079785100"
],
"marketIds": [
"gid://shopify/<objectName>/10079785100"
]
},
"priceListId": "gid://shopify/<objectName>/10079785100",
"publicationId": "gid://shopify/<objectName>/10079785100",
"status": "ACTIVE",
"title": "<your-title>"
}
}
{
"id": "gid://shopify/<objectName>/10079785100",
"input": {
"context": {
"companyLocationIds": [
"gid://shopify/<objectName>/10079785100"
],
"marketIds": [
"gid://shopify/<objectName>/10079785100"
]
},
"priceListId": "gid://shopify/<objectName>/10079785100",
"publicationId": "gid://shopify/<objectName>/10079785100",
"status": "ACTIVE",
"title": "<your-title>"
}
}
input CatalogUpdateInput {
context: CatalogContextInput
priceListId: ID
publicationId: ID
status: CatalogStatus
title: String
}
input CatalogContextInput {
companyLocationIds: [ID!]
marketIds: [ID!]
}