productUnpublish mutation
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a product.
Required access
write_publications
access scope. This scope is currently available only to private apps installed on Shopify Plus stores.
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
(
ProductUnpublishInput!
)
required
|
Specifies the product to unpublish and the channel to unpublish it from. |
ProductUnpublishInput fields
-
id (
ID!
) RequiredThe ID of the product to create or update publications for.
-
productPublications (
[ProductPublicationInput!]!
) RequiredThe channels to unpublish the product from.
Return fields
-
product (
Product
)The product that has been unpublished.
-
shop (
Shop!
)The user's shop.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.