콘텐츠로 이동

생성



POST /api/v1/notice/date/add

개요

알림 정책-사용자 지정 알림 날짜 생성

Body 요청 파라미터

파라미터명 유형 필수 설명
name string Y 이름
빈 값 허용: False
최대 길이: 256
noticeDates array 날짜 목록
예시: ['2024/01/02', '2024/02/03']
빈 값 허용: False

파라미터 추가 설명

데이터 설명.*

  • 요청 본문 파라미터 설명
파라미터명 type 설명
name str 알림 정책-사용자 지정 알림 날짜 구성 이름
noticeDates list 날짜 목록, 예시: ["2024/01/01","2024/05/01", "2024/10/01"]

요청 예시

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

응답

{
    "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"
}

문서 평가

이 페이지가 도움이 되었나요?