Sign in

Add Channel Moderator

documented

Assign the moderator role to a channel member.

POST /api/v1/channels.addModeratorRoomsno 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://rocket.chat/api/v1/channels.addModerator" \
  -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": "{{$room_id}}", "userId": "{{$target_user_id}}"}'
Add Channel Moderator · Rocket.Chat · OpenIntegrations