productPublish mutation
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.
Deprecation warning
Use publishablePublish
instead
Publishes a product. Products that are sold exclusively on subscription (requiresSellingPlan: true
) can only be published on online stores.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
input
(
ProductPublishInput!
)
required
|
Specifies the product to publish and the channels to publish it to. |
ProductPublishInput fields
-
id (
ID!
) RequiredThe product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe publication that the product is published to.
Return fields
-
product (
Product
)The product that has been published.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecated return fields
-
productPublications (
[ProductPublication!]
) deprecatedThe channels where the product is published.
Deprecation warning
Use Product.publications instead.