Anchor to section titled 'undefined'

publishablePublishToCurrentChannel
mutation

Requires write_publications access scope. Also: The user must have a permission to create and edit products.

Publishes a resource to current channel. If the resource is a product, then it's visible in the channel only if the product status is active. Products that are sold exclusively on subscription (requiresSellingPlan: true) can be published only on online stores.


Anchor to id
id
required

The resource to create or update publications for.


Was this section helpful?

Resource that has been published.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation publishablePublishToCurrentChannel($id: ID!) {
  publishablePublishToCurrentChannel(id: $id) {
    publishable {
      # Publishable fields
    }
    shop {
      # Shop fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "id": "gid://shopify/<objectName>/10079785100"
}