Update a role

Update an existing role

Body required
application/json

The role to update

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
  • 200 Role successfully updated
    _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 update role
  • 401 Authentication error
  • 403 Forbidden action
  • 404 Role not found
  • 500 Unexpected internal server error