productPublish - admin-graphql - MUTATION
Version: 2024-10
Description:
Publishes a product. Products that are sold exclusively on subscription (`requiresSellingPlan: true`) can only be published on online stores.
Access Scopes
`write_publications` access scope. Also: The user must have a permission to publish a product.
Arguments
-
input:
ProductPublishInput! -
Specifies the product to publish and the channels to publish it to.
Returns
-
product:
Product
The product that has been published.
-
productPublications:
ProductPublication
The channels where the product is published.
-
shop:
Shop!
The user's shop.
-
userErrors:
UserError!
The list of errors that occurred from executing the mutation.
Examples