Channels
Update Channel
Updates channel attributes. If the channel was previously rejected, its status is automatically reset to pending. The source_url can only be changed while the channel is pending or rejected; once approved the URL is locked because it has been shared with advertisers - name and category remain editable.
PATCH
/pub_api/v3/channels/:id
write:channels
Path Parameters
|
idrequired
integer
|
Channel ID to update. |
Body Parameters
|
nameoptional
string
|
New channel name (max 25 characters). |
|
source_urloptional
string
|
New channel URL. Only accepted while the channel is pending or rejected. Sending a different value for an approved channel returns 422. |
|
categoryoptional
string
|
New channel category. |
Request
curl -X PATCH https://developers.cuelinks.com/pub_api/v3/channels/3424 \ -H "Authorization: Token YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated Name" }'
200 OK
200
{ "data": { "id": 3424, "name": "Updated Name", "source_url": "https://t.me/zingoy", "category": "Telegram", "status": "approved", "is_default": false, "created_at": "2026-03-20T10:00:00Z" } }
422 URL Locked
422
{ "error": "source_url cannot be changed on an approved channel. You can still update name or category, or create a new channel for a different URL." }