Register a new role

Register a new role

Body required
application/json

Role to register

name
string required

The role's name

description
string

The role's description

permissions
array of objects (Permission)

The list of permissions associated with the role

Responses
  • 201 Role successfully registered
    id
    string (Internal ID) required

    Object internal ID

    name
    string required

    The role's name

    description
    string

    The role's description

    permissions
    array of objects (Permission)

    The list of permissions associated with the role

  • 400 Bad Request
  • 401 Unauthorized request
  • 403 Forbidden action
  • 500 Internal Server error