publicationUpdate
mutation
Requires write_publications access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Modify and update the specified Publication object.
Arguments
Input fields for updating the publication.
ID of the Publication to be updated.
Return
The updated Publication.
A list of errors encountered during execution.
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Updates a Publication
Code
mutation PublicationUpdate {
publicationUpdate(
id: "gid://shopline/Publication/57843853"
input: {
publishablesToRemove: ["gid://shopline/Product/16055271775622479314742093"]
publishablesToAdd: ["gid://shopline/Product/16055271775622479314742093"]
}
) {
userErrors {
code
field
message
}
}
}
Response
{
"data": {
"publicationUpdate": {
"userErrors": []
}
}
}
Was this article helpful to you?