Skip to content

Create Custom Notification Date for Alert Strategy



POST /api/v1/notice/date/add

Overview

Create custom notification dates for alert strategies

Body Request Parameters

Parameter Name Type Required Description
name string Yes Name
Allow null: False
Maximum length: 256
noticeDates array Yes List of dates
Example: ['2024/01/02', '2024/02/03']
Allow null: False

Additional Parameter Explanation

Data explanation.*

  • Request body parameter explanation
Parameter Name Type Description
name str Configuration name for custom notification dates of alert strategy
noticeDates list List of dates, 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"
} 

Feedback

Is this page helpful? ×