POST
/
api
/
v1
/
roles
/
{
  "name": "<string>",
  "description": "<string>",
  "tenant_id": 123,
  "id": 123,
  "permissions": []
}

Create a new role in the system.

  • Method: POST
  • Path: /api/v1/roles/

Request Body

Refer to the RoleCreate schema in the OpenAPI playground.

Response

Returns a Role object on success.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.