Manage Sales Channels with Graphql

Hi All,

Is there a way to specify a sales channel for a specific product on the update or create query with GQL ?

Thank you !

Have a good day.

Kind regards.

Damien.

Hi @DamienD
You can use mutation publishablePublish
Find More here: https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/publishablepublish

mutation publishablePublish($id: ID!, $input: [PublicationInput!]!) {
  publishablePublish(id: $id, input: $input) {
    publishable {
      availablePublicationsCount {
        count
      }
      resourcePublicationsCount {
        count
      }
    }
    shop {
      publicationCount
    }
    userErrors {
      field
      message
    }
  }
}

Thank you
DP.