Sign in

Add Channel Leader

documented

Assign the leader role to a channel member.

POST /api/v1/channels.addLeaderRoomsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$host}}/api/v1/channels.addLeader" \
  -X POST \
  -H "X-Auth-Token: {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-User-Id: {{ROCKET_USER_ID}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"roomId": "{{$roomId}}", "userId": "{{$userId}}"}'
Add Channel Leader · Rocket.Chat · OpenIntegrations