Skip to content

Create Role Rights

Creates the specified role right(s).

Verb PUT
Endpoint {base-url}/role-rights/
Max Page Size N/A

Request Body

{
  "body": [
    {
      "roleId": 5,
      "rightId": 1,
      "canView": true,
      "canEdit": true,
      "canExecute": false
    }
  ]
}

Note

All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.

Returns

On Success

200 - A list of IDs belonging to the created role rights.

Response Body

[
  6
]

On Error

HTTP Code Error Code Definition
403 DATA_ACCESS_VIOLATION One or more of the specified roleId values belong to a role in an organization you do not have access to.
404 MISSING_RECORD One or more of the specified roleId values do not exist.
422 VALIDATION_ERROR A required field (roleId, rightId) is missing or zero.