Skip to main content
PATCH
/
api
/
servers
/
{serverID}
/
channels
/
{channelID}
Update a channel
curl --request PATCH \
  --url http://localhost:8091/api/servers/{serverID}/channels/{channelID} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "<string>",
  "topic": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "displayName": "<string>",
    "topic": "<string>",
    "isDm": true,
    "isPrivate": true,
    "archived": true,
    "createdBy": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "position": 123,
    "serverId": "<string>",
    "memberCount": 123,
    "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
displayName
string

New display name

topic
string

New topic

Response

Channel updated

data
object