Skip to main content
POST
/
api
/
servers
/
{serverID}
/
groups
Create a channel group
curl --request POST \
  --url http://localhost:8091/api/servers/{serverID}/groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "serverId": "<string>",
    "userId": "<string>",
    "name": "<string>",
    "position": 123,
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

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

Body

application/json
name
string
required

Group name (1-64 characters)

Required string length: 1 - 64

Response

Channel group created

data
object