Skip to main content

ChannelUpdateInput

Input for updating an existing channel. All fields are optional - only provided fields will be updated.

input ChannelUpdateInput {
descriptions: [LocalizedStringInput!]
catalogRootId: Int
anonymousUserId: Int
name: String
marketIds: [String!]
defaultMarketId: String
}

Fields​

ChannelUpdateInput.descriptions ● [LocalizedStringInput!] list input​

Localized descriptions for the channel in different languages. Each entry must have a unique language code to avoid duplicates.

ChannelUpdateInput.catalogRootId ● Int scalar​

Reference to the root catalog item for this channel. Defines the top-level product hierarchy available through this channel.

ChannelUpdateInput.anonymousUserId ● Int scalar​

Reference to the anonymous user account for this channel. Used for handling unauthenticated user sessions and permissions.

ChannelUpdateInput.name ● String scalar​

Unique name for the channel within the tenant. Must be at least 1 character long and will be used for identification and display purposes. Omit it to keep the current name.

Validation: Minimum length of 1 character; null is refused.

ChannelUpdateInput.marketIds ● [String!] list scalar​

BETA: markets can still change in ways that break existing integrations. Backwards compatibility is not guaranteed while it is in beta.

Ids of the markets this channel sells in. Replaces the full list. A channel always has at least one market, so the list can't be empty, and it can't be null. Without defaultMarketId, the channel's default market stays when it is still in the list, and a list of one market makes that market the default; any other list needs defaultMarketId too.

Errors: MARKET_NOT_FOUND_ERROR for an unknown market, CHANNEL_INVALID_MARKETS_ERROR when the default market isn't in the list, or when the list leaves out the current default and has more than one market without defaultMarketId.

ChannelUpdateInput.defaultMarketId ● String scalar​

BETA: markets can still change in ways that break existing integrations. Backwards compatibility is not guaranteed while it is in beta.

Id of the channel's default market: the market the front-end shows first. Must be one of the channel's markets: of marketIds when that is sent too. Can't be null.

Errors: MARKET_NOT_FOUND_ERROR for an unknown market, CHANNEL_INVALID_MARKETS_ERROR when it isn't one of the channel's markets.

Member Of​

channelUpdate mutation