Anchor to section titled 'undefined'

publishableUnpublishToCurrentChannel
mutation

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

Unpublishes a resource from the current channel. If the resource is a product, then it's visible in the channel only if the product status is active.


Anchor to id
id
required

The resource to delete or update publications for.


Was this section helpful?

Resource that has been unpublished.

The list of errors that occurred from executing the mutation.


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