Assign a permission to a role in the workspace.
Method | Requires Auth |
---|---|
| Yes |
Payload parameters
Argument | Example | Required | Description |
---|---|---|---|
|
| Required | The id of the permission to assign |
|
| Required | The id of the role that the permission will be assigned to |
Example call
{
"msg": "method",
"id": "22",
"method": "authorization:addPermissionToRole",
"params": [
"archive-room",
"679398c4f7ca7be1b5fcf5b7"
]
}
Example response
Success
{
"msg": "updated",
"methods": [
"22"
]
}