Skip to main content
POST
/
api
/
servers
/
{serverID}
/
channels
/
{channelID}
/
members
Add members to a channel
curl --request POST \
  --url http://localhost:8091/api/servers/{serverID}/channels/{channelID}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userIds": [
    "<string>"
  ]
}
'
{
  "error": "<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
userIds
string[]
required

Array of user IDs to add

Minimum array length: 1

Response

Members added