功能描述
用于查询指定群组的详细信息
请求
请求示例
GET /api/v1/group/{LibraryId}/{GroupId}?access_token={AccessToken}
请求参数
请求参数 | 描述 | 类型 | 是否必选 |
LibraryId | 媒体库 ID | String | 是 |
GroupId | 群组 ID | String | 是 |
AccessToken | 访问令牌 | String | 是 |
请求体
无
响应
响应码
获取成功,返回 HTTP 200 OK
响应体
application/json
响应体示例:
{"libraryId": "smhxxx","groupId": "a1b2c3d4e5f67890a1b2c3d4e5f67890","groupName": "研发部","description": "研发团队","parentGroupId": "0f1e2d3c4b5a69780f1e2d3c4b5a6978","creator": "admin_001","creationTime": "2024-01-01T10:00:00.000Z","modifyTime": "2024-01-01T10:00:00.000Z"}
响应体字段说明:
节点名称(关键字) | 描述 | 类型 |
libraryId | 媒体库 ID | String |
groupId | 群组唯一标识 | String |
groupName | 群组名称 | String |
description | 描述 | String |
parentGroupId | 父群组 ID;根群组为空串 "" | String |
creator | 创建者用户 ID | String |
creationTime | 创建时间,ISO 8601 格式,例如 2024-01-01T10:00:00.000Z | String |
modifyTime | 最后修改时间,ISO 8601 格式 | String |
错误码
错误码 | HTTP 状态码 | 说明 |
GroupNotFound | 404 | 群组不存在 |