Skip to content

Edit a channel

Use this guide to change a channel's name and guide metadata. It doesn't change the source, the transcoding or the playlist: to change those, delete the channel and create it again. Nothing is sent to the running stream. For the fields, see the Playback API.

Before you begin

  • Your role in the workspace has workspace:channels:manage.
  • You know the channel's id (from GET /channels) and the workspace ID.

Steps

  1. Send only the fields you want to change. An absent field is left alone, "" clears a text field and [] clears a list:

    curl -s -X PUT "https://<API_HOST>/api/v1/playback/<WORKSPACE_ID>/channels/<CHANNEL_ID>" \
      -H "Authorization: Bearer <ACCESS_TOKEN>" \
      -H "Content-Type: application/json" \
      -d '{ "synopsis": "Rolling world news.", "genres": ["world", "business"], "contentProvider": "" }'
    

    The fields you can change are name, synopsis (saved as description), primaryGenre, genres, keywords, tags, contentProvider, languages and customGroups. Renaming doesn't change the stream address.

    You get 200 OK with the updated channel in data (shortened here):

    {
      "success": true,
      "data": {
        "id": 42,
        "name": "News 24",
        "description": "Rolling world news.",
        "genres": ["world", "business"],
        "status": "ready"
      }
    }
    

Verify

Fetch the channel and check the fields:

curl -s "https://<API_HOST>/api/v1/playback/<WORKSPACE_ID>/channels/<CHANNEL_ID>" \
  -H "Authorization: Bearer <ACCESS_TOKEN>"

A channel group that contains the channel shows the new values in its device payload.

Troubleshooting

Symptom Cause Fix
400 no valid fields to update The body has none of the changeable fields, or only "name": "" Send at least one field with a value.
404 channel not found The channel is in another workspace or was deleted Check the ID and the workspace.
403 Your role lacks workspace:channels:manage Ask an organization admin.

Next steps