Anchor to section titled 'undefined'

publishablePublish
mutation

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

Publishes a resource to a 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.

Specifies the input fields required to publish a resource.


Was this section helpful?

Resource that has been published.

The user's shop.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation publishablePublish($id: ID!, $input: [PublicationInput!]!) {
  publishablePublish(id: $id, input: $input) {
    publishable {
      # Publishable fields
    }
    shop {
      # Shop fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "id": "gid://shopify/<objectName>/10079785100",
  "input": [
    {
      "publicationId": "gid://shopify/<objectName>/10079785100",
      "publishDate": "2019-09-07T15:50:00Z"
    }
  ]
}
input PublicationInput {
  channelId: ID
  publicationId: ID
  publishDate: DateTime
}