# 获取指定用户有权限的空间列表
用于获取指定用户有权限的空间列表
# 请求
基本 | |
---|---|
HTTP URL | https://hi-qa.weizhipin.com/open-apis/gaea/v1/space/list |
HTTP Method | POST |
支持的应用类型 | 自建应用 |
权限要求开启任一权限即可 | [喜鹊]-[获取指定用户有权限的空间列表] |
# 请求头
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
Authorization | string | 是 | tenant_access_token 值格式:"Bearer access_token "示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" |
Content-Type | string | 是 | 固定值:"application/json; charset=utf-8" |
# 请求体
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
system_code | string | 是 | 系统标识 |
user_id | string | 是 | 用户id值 |
user_id_type | string | 是 | 用户id类型,控制参数内用户 ID 的类型示例值:"open_id" 可选值有: open_id:用户的 open id union_id:用户的 union id user_id:用户的 user id 默认值:open_id |
请求体示例
{
"system_code": "AB", //示例值
"user_id": "11111704", //示例值
"user_id_type": "user_id" //示例值
}
1
2
3
4
5
2
3
4
5
# 响应
# 响应体
{
"code": "0",
"traceId": "",
"data": [
{
"space_id": "xxxx", //空间id
"space_name": "xxxx", //空间名称
"space_code": "xxxx", //空间code
"logo_url": "xxxx" //空间logo
}
],
"msg": "操作成功"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
如果响应非成功状态,请对照 错误码文档