collectionPublish mutation
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.
Deprecation warning
Use publishablePublish
instead
Publishes a collection to a channel.
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
(
CollectionPublishInput!
)
required
|
Specify a collection to publish and the sales channels to publish it to. |
CollectionPublishInput fields
-
collectionPublications (
[CollectionPublicationInput!]!
) RequiredThe channels where the collection will be published.
-
id (
ID!
) RequiredThe collection to create or update publications for.
Return fields
-
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!]!
)List of errors that occurred executing the mutation.