Skip to content

Rename or re-scope a channel

PATCH
/api/chat/channels/{channelId}

Owners and managers only. Pass null for a role list to clear the restriction.

channelId
required
string format: uuid

Fields to change

object
name
string
>= 1 characters <= 100 characters
visibleToRoles
Array<string>
nullable >= 1 items
Allowed values: owner manager member guest tech
postRoles
Array<string>
nullable >= 1 items
Allowed values: owner manager member guest tech

Updated

object
ok
required
boolean
data
nullable

Invalid input

object
ok
required
boolean
error
required
string
code
string

Unauthenticated

object
ok
required
boolean
error
required
string
code
string

Forbidden

object
ok
required
boolean
error
required
string
code
string

Channel not found

object
ok
required
boolean
error
required
string
code
string

A channel with that name already exists

object
ok
required
boolean
error
required
string
code
string

Server error

object
ok
required
boolean
error
required
string
code
string