- 项目说明
- user用户
- permission权限
- department机构管理
updateRole修改角色
Developing
PUT
/perm/updateRole
Last modified:2023-09-30 12:04:01
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
roleId
integer
required
name
string
optional
status
string
optional
scription
string
optional
Example
{
"roleId": 5,
"name": "采购经理",
"status": "2",
"scription": "采购经理"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:3001/api/perm/updateRole' \
--header 'Content-Type: application/json' \
--data-raw '{
"roleId": 5,
"name": "采购经理",
"status": "2",
"scription": "采购经理"
}'
Responses
🟢200OK
application/json
Body
object {0}
Example
{}
Modified at 2023-09-30 12:04:01