PUT /api/afanti/role/{groupId}
请求说明
请求方式:PUT
请求API :/api/afanti/role/{groupId}
Path 参数
参数 | 类型 | 说明 | 举例 |
---|---|---|---|
groupId | string | 角色分组id |
Body 参数(application/json)
参数 | 类型 | 是否必填 | 说明 |
---|---|---|---|
name | string | 是 | 角色名称 |
allowFullControl | boolean | 是 | 是否授予全部权限,也就是选择FullControl |
permissions | string | 权限集成, 每个权限间以逗号(英文)分割 |
注意: 如果allowFullControl为false, 那么permissions值不能为空
请求参数示例
{ "name":"员工", "allowFullControl":false, "permissions":"read,delete" } Copy
返回结果
{ "data": { "allowFullControl": false, "groupId": "1049aa52-9653-451f-b83f-30047cf437f1", "permissions": [ "read", "delete" ], "roleId": "dcccaeb9-9a2e-46f7-9678-02a46a1fa65f", "name": "员工2" }, "message": "OK", "status": { "code": 200 } }