add support to update permissions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-03 10:42:11 +11:00
parent ee822b5c9d
commit ff16acc816
5 changed files with 140 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ Delete permission by specifying description
Body
```
{
"Description":"Readonly access to default safe"
"Description": "Readonly access to default safe"
}
```
@@ -234,7 +234,7 @@ Delete permission by specifying permission id
Body
```
{
"permissionId":2
"permissionId": 2
}
```
@@ -243,6 +243,22 @@ Deletes a permission mapping either a user or a group to a safe. Either the perm
Deleting a permission should be performed prior to deleting any groups specified in that permission.
#### Update Permission
**POST** `/api/admin/permission/update`
Change description of permission
Body
```
{
"permissionId": 2
"Description": "New Permission Description"
}
```
Updates an existing permission. The permissionId must be specified. This operation can only be performed by a user that is admin enabled.
### Group Operations
#### List Groups