分组列表
测试中
GET
/api/v2/groups/list
请求参数
Query 参数
page
string
当前页码
示例值:
1
limit
string
每页显示条数
示例值:
10
sortBy
string
可选
示例值:
CREATEDAT_DESC
Header 参数
Authorization
string
必需
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
61cc2c7bb686e2767125230d
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://core.authing.cn/api/v2/groups/list' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 61cc2c7bb686e2767125230d'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
list
array [object {8}]
必需
totalCount
integer
必需
示例
{
"code": 200,
"message": "",
"data": {
"list": [
{
"id": "61cc2c7bb686e2767125230d",
"createdAt": "2021-12-29T09:38:03.685Z",
"updatedAt": "2021-12-29T09:38:03.685Z",
"userPoolId": "61503af14d630037e58dd471",
"code": "rbrbt",
"name": "rbtbt",
"description": null,
"externalId": null
},
{
"id": "61cc2c74f2e9f72ad0cd7bf3",
"createdAt": "2021-12-29T09:37:56.846Z",
"updatedAt": "2021-12-29T09:37:56.846Z",
"userPoolId": "61503af14d630037e58dd471",
"code": "rbrb",
"name": "lror",
"description": null,
"externalId": null
}
],
"totalCount": 2
}
}
修改于 2022-02-14 14:10:46