Update a channel
Change the name, catalog root or other settings of an existing channel.
Mutation
mutation UpdateChannel($id: Int!, $input: ChannelUpdateInput!) {
channelUpdate(id: $id, input: $input) {
channelId
name
catalogRootId
anonymousUserId
}
}
Variables
{
"id": 72,
"input": {
"name": "Dealer Portal Germany",
"catalogRootId": 3000
}
}
Response
{
"data": {
"channelUpdate": {
"channelId": 72,
"name": "Dealer Portal Germany",
"catalogRootId": 3000,
"anonymousUserId": 14551
}
}
}
How it works
Only the fields you include in the input are updated. Pass the channel ID as $id and the fields to change in $input. The mutation returns the full channel object so you can verify the update in a single round trip.
See also
- List channels — retrieve all configured channels
- Create a channel — add a new channel
- Delete a channel — remove a channel