Skip to main content
PUT
/
api
/
servers
/
{serverID}
/
channels
/
{channelID}
/
group
Set a channel's group
curl --request PUT \
  --url http://localhost:8091/api/servers/{serverID}/channels/{channelID}/group \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "groupId": "<string>"
}
'

Authorizations

Authorization
string
header
required

Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer

Path Parameters

serverID
string
required

Server ID

channelID
string
required

Channel ID

Body

application/json
groupId
string | null

ID of the group to assign the channel to, or null to remove from all groups

Response

204

Channel group updated