Sign in

Create Role

documented

Create a new role in the workspace.

POST /api/v1/roles.createUser 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.create" \
  -X POST \
  -H "X-User-Id: {{ROCKET_USER_ID}}" \
  -H "X-Auth-Token: {{ROCKET_AUTH_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name": "{{$name}}", "scope": "{{$scope}}", "description": "{{$description}}", "mandatory2fa": {{$mandatory2fa}}}'