# Set role permissions

`POST https://testing-backend.estactics.com/api/permissionsRoles/setRolePermissions`

Replaces the permissions of a role. Get Role allowed permissions shows what you can choose from.

Authentication: `Authorization: Bearer YOUR_API_KEY`. Required permission: `permissionsRoles.MANAGE_ORG_ROLES`.

## Body parameters

- `id` (integer, required): ID of the role.
- `permissions` (object, required): What the role is allowed to do.

## Example request body

```json
{
  "id": 5,
  "permissions": {
    "clients": {
      "scopes": [
        "VIEW"
      ]
    }
  }
}
```
