修改用户池下权限组列表
PUT
/api/v2/resource-namespace/{userPoolId}/{id}
请求参数
Path 参数
userPoolId
string
用户池 ID
示例值:
61b95d6c96d42670da568408
id
string
权限组 ID
示例值:
17
Header 参数
Authorization
string
Token
示例值:
Bearer sdfsdfsdfsdfsdf
x-authing-userpool-id
string
用户池 ID
示例值:
61b95d6c96d42670da568408
Body 参数application/json
name
string
必需
code
string
必需
description
string
必需
appId
string
必需
示例
{
"name": "string",
"code": "string",
"description": "string",
"appId": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://core.authing.cn/api/v2/resource-namespace/61b95d6c96d42670da568408/17' \
--header 'Authorization: Bearer sdfsdfsdfsdfsdf' \
--header 'x-authing-userpool-id: 61b95d6c96d42670da568408' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"code": "string",
"description": "string",
"appId": "string"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
integer
必需
userPoolId
string
必需
name
string
必需
code
string
必需
description
string
必需
status
integer
必需
applicationId
string
必需
isIntegrateApp
boolean
必需
isDefaultApp
boolean
必需
示例
{
"code": 200,
"message": "请求成功",
"data": {
"id": 17,
"userPoolId": "61b95d6c96d42670da568408",
"name": "1122",
"code": "2211",
"description": "3344",
"status": 1,
"applicationId": "61dbe4836beb0afb44d14b88",
"isIntegrateApp": false,
"isDefaultApp": false
}
}
修改于 2022-01-18 07:21:19