Upsert channels
Channels
Upsert channels
Create or update channel definitions from your POS or RMS in Fire spark.
PUT
Upsert channels
Creates or updates one or more channels for the authenticated merchant. Use this endpoint to sync channel names, status, and CMS template assignments from your operational stack into Fire spark.
Each array element is matched by
id. When no channel exists with that id for the merchant, Fire spark creates it. When one already exists, Fire spark updates the writable fields below. Omitted fields keep their current values on update.
Requires an access token with the
channels:write scope. See
Authorize to obtain a token.Request
Send a JSON array. Each element represents one channel. Includeid on every element — it is the stable external identifier and the upsert key. It cannot be changed after the channel is created.
Request fields
| Field | Type | Description |
|---|---|---|
id | string | Required. External channel identifier. Alphanumeric characters, _, and - only. 1–64 characters. Unique per merchant. Used as the upsert key. Cannot be changed after the channel is created. |
name | string | Display name. 1–100 characters. |
status | string | ACTIVE or INACTIVE. |
cms_template_id | string (UUID) | CMS template to assign to the channel. Omit to keep the current value on update, or set null to remove the template. Must reference a template with entity CHANNELS. |
cms is read-only on channel responses. You can assign or clear a template with
cms_template_id, but you cannot write CMS field values through this endpoint.Response
Error responses
| Status | Description |
|---|---|
400 | Request body failed validation. Check field constraints above. |
401 | Missing or invalid access token. |
403 | Token does not include the channels:write scope. |
422 | Business rule violation — for example attempting to change a channel id, or duplicate id or name for the merchant. |
Validation error