Create¶
POST /api/v1/notice/date/add
Overview¶
Alert Strategies - Custom Notification Date Creation
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
name | string | Y | Name Allow null: False Maximum length: 256 |
noticeDates | array | Date List Example: ['2024/01/02', '2024/02/03'] Allow null: False |
Supplementary Parameter Explanation¶
Data Description.*
- Request Body Parameter Description
Parameter Name | type | Description |
---|---|---|
name | str | Alert Strategy - Custom Notification Date Configuration Name |
noticeDates | list | Log List, Example: ["2024/01/01","2024/05/01", "2024/10/01"] |
Request Example¶
curl 'https://openapi.guance.com/api/v1/notice/date/add' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name": "test001", "noticeDates": ["2024/01/01","2024/05/01"]}' \
--compressed
Response¶
{
"code": 200,
"content": {
"createAt": 1705566710,
"creator": "xxx",
"dates": [
"2024/01/01",
"2024/05/01"
],
"declaration": {
"asd": [
"afaw"
],
"asdasd": [
"dawdawd"
],
"business": "aaa",
"fawf": [
"afawf"
],
"organization": "6540c09e4243b300077a9675"
},
"deleteAt": -1,
"id": null,
"name": "test001",
"status": 0,
"updateAt": 1705566710,
"updator": "xxx",
"uuid": "ndate_xxxx32",
"workspaceUUID": "wksp_xxxx32"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-6C9D0B1B-9591-45B9-B196-692A8FDF06F2"
}