group_id or set it to all to list groups of this type in descending ID order, at most 50 per page. data.items contains groups; data.last_id is the encoded final ID of a non-empty page, or null for an empty page. Pass it as last_id to continue until an empty page. Set group_id to an encoded ID to return one group in data; the group must exist and match this group type.group_id, label, encoded parent_group_id, parent_group_label, created and changed. The parent label is read from the actual parent entity, not echoed from the request. Both parent fields are null for a root group. A missing or mismatched persisted parent reference is a server error (500), not a root group.group_id 或设为 all 时,按 ID 倒序列出当前类型分组,每页最多 50 条。data.items 为分组列表;非空页的 data.last_id 为最后一项编码 ID,空页为 null。下一页传入 last_id,直到返回空页。提供编码 group_id 时在 data 中返回一个组,要求该组存在且类型匹配。group_id、label、编码 parent_group_id、parent_group_label、created 和 changed。父组名称读取实际父实体,不回显请求参数。根组的两个父级字段均为 null。已保存父引用缺失或类型不符时返回服务端错误(500),不能作为正常根组处理。{
"code": 200,
"data": {
"group_id": "ENCODED_GROUP_ID",
"label": "Child group",
"parent_group_id": "ENCODED_PARENT_GROUP_ID",
"parent_group_label": "Parent group",
"created": 1791504000,
"changed": 1791504000
}
}{
"code": 200,
"data": {
"group_id": "ENCODED_GROUP_ID",
"label": "Child group",
"parent_group_id": null,
"parent_group_label": null,
"created": 1791504000,
"changed": 1791504000
}
}{
"code": 200,
"data": {
"last_id": "ENCODED_GROUP_ID",
"items": [
{
"group_id": "ENCODED_GROUP_ID",
"label": "Child group",
"parent_group_id": "ENCODED_PARENT_GROUP_ID",
"parent_group_label": "Parent group",
"created": 1791504000,
"changed": 1791504000
}
]
}
}{
"code": 200,
"data": {
"last_id": null,
"items": []
}
}