Create a new role

Create a new role in Horizon

Body required
application/json
name
string required

The name of the role

description
string | null

The description of the role

permissions
array of objects | null (Permission)

The role's permissions

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

    Object internal ID

    name
    string required

    The name of the role

    description
    string | null

    The description of the role

    permissions
    array of objects | null (Permission)

    The role's permissions

  • 400 Unable to register the role
  • 401 Authentication error
  • 403 Forbidden action
  • 500 Unexpected internal server error