v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
User Roles

Update User role

Update Role Details

This endpoint allows the client to update the details of a specific role.

Request Body

  • name (string, required): The name of the role.

  • level (string, required): The level of the role.

  • twofa_type (string, required): The type of two-factor authentication associated with the role.

  • userIds (array of integers, required): An array of user IDs associated with the role.

put/roles/{id}

Request body

levelstring
namestring
twofa_typestring
userIdsnumber[]

Example request

{
  "level": "1000",
  "name": "qwerty32",
  "twofa_type": "default",
  "userIds": [
    1
  ]
}

Response

Successful operation

Example response

{
  "role": {
    "id": "9",
    "level": "1000",
    "name": "qwerty32",
    "twofa_type": "default",
    "userIds": [
      "1"
    ]
  }
}