Add role
POST
/api/rolesCreate a role, at the bottom of the order.
Needs the ManageRoles permission.
AuthorizationBearer <token>
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/roles" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "description": null, "permissions": [ "string" ] }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "permissionNames": [ "string" ], "isBuiltIn": true, "locked": true, "userCount": 0, "position": 0}