Skip to main content
Send an array of channels. Each item creates the channel when its id does not exist, or updates it when it does. Send only the fields to change. id comes from each item and cannot be renamed here.
Requires an access token with the channels:write scope. See Token to obtain a token.
An item with only id refreshes updated_at when the channel already exists. A new id requires name and type. Omitted status defaults to ACTIVE. Omitted cms_template_id stays unset. type is stored only when the channel is created; a later request ignores it.

Request

Body

An array of 1 to 100 items. Each item takes these fields: labels, cms, settings, attributes, uid, merchant_id, and env are ignored if sent.

Response

Zod validates the entire body before saving. If any field is invalid, HTTP 400 is returned and no items are saved. When the body is valid, items are saved one after another. HTTP 200 only when every item is saved. If a later item hits a business error, HTTP is that item’s status (422 or 500).

Error responses