collectionUnpublish mutation
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishableUnpublish
instead
Unpublishes a collection.
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
(
CollectionUnpublishInput!
)
required
|
Specify a collection to unpublish and the sales channels to remove it from. |
CollectionUnpublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection is published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
collection (
Collection
)The collection that has been unpublished.
-
shop (
Shop!
)The shop associated with the collection.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.