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
1mutation catalogUpdate($id: ID!, $input: CatalogUpdateInput!) {2 catalogUpdate(id: $id, input: $input) {3 catalog {4 # Catalog fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100",3 "input": {4 "context": {5 "companyLocationIds": [6 "gid://shopify/<objectName>/10079785100"7 ]8 },9 "priceListId": "gid://shopify/<objectName>/10079785100",10 "publicationId": "gid://shopify/<objectName>/10079785100",11 "status": "",12 "title": "<your-title>"13 }14}
{
"id": "gid://shopify/<objectName>/10079785100",
"input": {
"context": {
"companyLocationIds": [
"gid://shopify/<objectName>/10079785100"
]
},
"priceListId": "gid://shopify/<objectName>/10079785100",
"publicationId": "gid://shopify/<objectName>/10079785100",
"status": "",
"title": "<your-title>"
}
}
input CatalogUpdateInput {
context: CatalogContextInput
priceListId: ID
publicationId: ID
status: CatalogStatus
title: String
}
input CatalogContextInput {
companyLocationIds: [ID!]
}