修改角色
测试中POST
/api/v2/roles/{code}请求参数
Path 参数
code
string
角色唯一标识
示例值:
613ee5d86130a1a3d2c4753a
Header 参数
Authorization
string
必需
用户池管理员 Token
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61cc2c7bb686e2767125230d
Body 参数application/x-www-form-urlencoded
description
string
角色描述
示例值:
修改角色描述
newCode
string
新的唯一标志符
示例值:
new-code
namespace
string
权限分组 code
示例值:
namespace-code
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
code
string
必需
description
string
必需
parentCode
null
必需
isSystem
boolean
必需
namespaceId
integer
必需
parent
null
必需
arn
string
必需
namespace
string
必需
示例
{
"code": 200,
"message": "修改成功",
"data": {
"id": "613ee5d86130a1a3d2c4753a",
"createdAt": "2021-09-13T05:47:04.401Z",
"updatedAt": "2021-12-30T08:09:34.478Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"code": "1325",
"description": "二v默认名博日",
"parentCode": null,
"isSystem": false,
"namespaceId": 2,
"parent": null,
"arn": "arn:cn:authing:59f86b4832eb28071bdd9214:role:613ee5d86130a1a3d2c4753a",
"namespace": "default"
}
}
最后修改时间: 3 年前