Back to Developer changelog

Publication Id and channel Id validations

API

Effective January 04, 2023

As of the 2023-04 version of the Admin GraphQL API, the publicationId and channelId fields of the PublicationInput will be validated on calls to publishableUnpublish and productUnpublish mutations.

This allows you to ensure that ids sent into a mutation correspond to existing records in the database.

The validation message for the publicationId field will change from "Channel can't be blank" to "Publication does not exist" on a PublicationInput object.

Learn more about publishableUnpublish and productUnpublish on Shopify.dev.