系统日期标签
获取系统日期标签列表¶
GET /openapi/v1/workspaces/{workspaceId}/system-date-tags/
查询参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| q | string | 否 | 搜索关键词 |
| status | string | 否 | 标签状态:enable 或 disable |
| offset | int | 否 | 偏移量 |
| limit | int | 否 | 每页数量,默认 100 |
| count | bool | 否 | 是否只返回数量 |
返回结果
{
"errcode": 200,
"errmsg": "success",
"data": [
{
"id": 1,
"name": "节假日",
"status": "enable",
"timeRange": "2020-2025"
}
]
}
参数说明
| 参数 | 类型 | 说明 |
|---|---|---|
| data.id | int | 系统日期标签 id |
| data.name | string | 标签名称 |
| data.status | string | 状态:enable 或 disable |
| data.timeRange | string | 时间范围 |
获取系统日期标签记录¶
GET /openapi/v1/workspaces/{workspaceId}/system-date-tags/{systemDateTagId}/
查询参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| startAt | string | 否 | 开始日期 |
| endAt | string | 否 | 结束日期 |
| offset | int | 否 | 偏移量 |
| limit | int | 否 | 每页数量,默认 100 |
| count | bool | 否 | 是否只返回数量 |
更新系统日期标签状态¶
PUT /openapi/v1/workspaces/{workspaceId}/system-date-tags/{systemDateTagId}/
请求体
{
"status": "enable"
}