Sign in

Update Role

documented

Update an existing role.

POST /api/v1/roles.updateUser Managementno 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/roles.update" \
  -X POST \
  -H "X-User-Id: {{$user_id}}" \
  -H "X-Auth-Token: {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"roleId": "{{$role_id}}", "name": "{{$name}}", "scope": "{{$scope}}", "description": "{{$description}}", "mandatory2fa": {{$mandatory2fa}}}'