collectionPublish - admin-graphql - MUTATION
Version: 2024-04
Description:
Publishes a collection to a channel.
Access Scopes
`write_publications` access scope. Also: The user must have a permission to publish a collection.
Arguments
-
input:
CollectionPublishInput! -
Specify a collection to publish and the sales channels to publish it to.
Returns
-
collection:
Collection
The published collection.
-
collectionPublications:
CollectionPublication
The channels where the collection has been published.
-
shop:
Shop!
The shop associated with the collection.
-
userErrors:
UserError!
The list of errors that occurred from executing the mutation.
Examples