修改分组
测试中
POST
/api/v2/groups/update/{code}
请求参数
Path 参数
code
string
分组唯一标识
示例值:
fenzu1
Header 参数
Authorization
string
必需
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61cc2c7bb686e2767125230d
Body 参数application/json
newCode
string
新的分组标识
name
string
分组名称
description
string
分组描述
示例
{
"newCode": "string",
"name": "string",
"description": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/groups/update/fenzu1' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61cc2c7bb686e2767125230d' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
createdAt
string
必需
updatedAt
string
必需
userPoolId
string
必需
code
string
必需
name
string
必需
description
string
必需
externalId
null
必需
示例
{
"code": 200,
"message": "修改分组成功",
"data": {
"id": "61d686c8c2a7a52fa4cf9d51",
"createdAt": "2022-01-06T06:06:00.623Z",
"updatedAt": "2022-01-11T08:37:48.549Z",
"userPoolId": "61b95d6c96d42670da568408",
"code": "new_fenzu1",
"name": "新分组1",
"description": "Apifox 修改的 description",
"externalId": null
}
}
修改于 2022-01-24 03:50:50