List¶
GET /api/v1/notice/date/list
Overview¶
Retrieves the custom notification date configurations of the current Workspace in paginated form.
Before Calling and Usage Steps¶
Defaults: pageIndex=1 and pageSize=20, sorted by record ID in descending order. Read the content.data array and the top-level pageInfo; save the uuid for reference by Alert Policies. The date field is named dates in the response. This resource stores only a date set and does not include the start time of the day, duration, or time zone. When using it, reference this resource UUID in alertOpt.alertTarget[].customDateUUIDs in the Alert Policy, and set customStartTime/customDuration together; for specific rules, see the Alert Policy parameter page. There are known limitations in reading the time zone for current Alert execution; verify the actual time zone according to the instructions on the Alert Policy page.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the Workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI key with the required permissions from API Key Management in the target Workspace. |
Query Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| search | string | Optional fuzzy search by name. Allows null: True Example: 维护How to obtain or enter: Enter part of the date configuration name; omit or leave blank to not filter. |
|
| pageIndex | integer | Page number. Default: 1; minimum: 1. Allows null: False $minValue: 1 Example: 1How to obtain or enter: Increment page by page starting from 1, keeping the search criteria unchanged. |
|
| pageSize | integer | Number of records per page. Default: 20; maximum: 10000. Allows null: False $minValue: 1 $maxValue: 10000 Example: 20How to obtain or enter: Enter a value from 1 to 10000 as needed. Using an appropriate page size is recommended to control response size. |
Additional Parameter Notes¶
The date set itself does not trigger notifications. You need to configure targets and custom date windows through Create Alert Policy v2.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/notice/date/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=20
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.data | array<object> |
Configurations on the current page; [] if there are no results. |
| content.data[].id | integer | Record ID of the saved date configuration. Operations use uuid. |
| content.data[].uuid | string | Date configuration UUID, referenced by Alert Policy customDateUUIDs. |
| content.data[].workspaceUUID | string | UUID of the Workspace to which it belongs. |
| content.data[].name | string | Configuration name. |
| content.data[].dates | array<string> |
Array of saved dates; the request field name is noticeDates, and the response field name is dates. |
| content.data[].dates[] | string | A single date string in YYYY/MM/DD format. |
| content.data[].status | integer | Record status: 0 normal, 3 deleted. |
| content.data[].creator | string | Creator identity. |
| content.data[].updator | string | Identity of the last updater; an empty string if not yet updated. |
| content.data[].createAt | integer | Creation time in Unix seconds. |
| content.data[].updateAt | integer | Update time in Unix seconds; -1 if not yet updated. |
| content.data[].deleteAt | integer | Deletion time in Unix seconds; -1 if not deleted. |
| content.declaration | object or null | Public declaration of the Workspace. |
| pageInfo | object | Top-level pagination. |
| pageInfo.pageIndex | integer | Page number. |
| pageInfo.pageSize | integer | Page size. |
| pageInfo.count | integer | Actual number of records on the current page. |
| pageInfo.totalCount | integer | Total number of matching configurations. |
{
"code": 200,
"content": {
"data": [
{
"id": 42,
"uuid": "ndate_example",
"workspaceUUID": "wksp_example",
"name": "生产维护日",
"dates": [
"2026/11/20",
"2026/11/27"
],
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785430800,
"updateAt": -1,
"deleteAt": -1
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"pageIndex": 1,
"pageSize": 20,
"count": 1,
"totalCount": 1
}
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | A request field is missing, or a field value violates the declared validation conditions | Parameter parsing failed | Verify the parameter location, field name, type, and value. |
| 500 | ft.InternalServerError | Failed to read the date configuration | Internal error | Retry later. If the failure persists, provide the traceId. |