コンテンツにスキップ

変更



POST /api/v1/notification_schedule/{notification_schedule_uuid}/modify

概要

スケジュールを変更します

ルートパラメータ

パラメータ名 タイプ 必須 説明
notification_schedule_uuid string Y スケジュール UUID

Body リクエストパラメータ

パラメータ名 タイプ 必須 説明
name string Y 名前
空を許可: False
最大長: 256
空文字列を許可: False
timezone string タイムゾーン、デフォルトは Asia/Shanghai
例: Asia/Shanghai
空を許可: False
最大長: 48
start string Y 時間帯 開始時刻
例: 00:00
空を許可: False
最大長: 48
end string Y 時間帯 終了時刻
例: 23:59
空を許可: False
最大長: 48
notifyTargets array Y 通知先、アカウント UUID、通知先 UUID、メールアドレスを含む
例: ['acnt_xxx', 'notify_', 'xxx@guance.com']
空を許可: False
extend json 拡張情報、ローテーション通知先設定を含む
空を許可: False
extend.enableRotateNotification boolean ローテーションを有効にするか、デフォルトは無効
例: False
空を許可: False
extend.rotationCycle string ローテーション周期、日: day、週: week、月: month、平日: workDay、週末: weekend
例: day
空を許可: False
選択可能な値: ['day', 'week', 'month', 'workDay', 'weekend']
extend.effectiveTime json スケジュールの有効期間、デフォルトは永久に有効、開始/終了時刻は 11 桁のタイムスタンプ
例: {'start': 1719990196, 'end': 1729990196}
空を許可: False

パラメータ補足説明

パラメータ説明: 新規作成インターフェースを参照してください

リクエスト例

curl 'https://openapi.guance.com/api/v1/notification_schedule/nsche_3512c1f4d176433484676225b547ef7a/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name":"schecule_modify","timezone":"Asia/Shanghai","start":"11:00","end":"23:59","notifyTargets":["acnt_8b4bd2b8782646f3ba8f6554193f5997"],"extend":{"enableRotateNotification":false,"effectiveTime":{"start":1735747200,"end":1737603472}}}' \
--compressed

レスポンス

{
    "code": 200,
    "content": {
        "createAt": 1735797896,
        "creator": "wsak_f2ba9858f4414655be39efc882b120dd",
        "declaration": {},
        "deleteAt": -1,
        "effectiveTimeInfos": {
            "expired": false,
            "timeStr": "2025/01/02 00:00:00~2025/01/23 11:37:52"
        },
        "end": "23:59",
        "extend": {
            "effectiveTime": {
                "end": 1737603472,
                "start": 1735747200
            },
            "enableRotateNotification": false
        },
        "id": 131,
        "name": "schecule_modify",
        "notifyTargets": [
            "acnt_8b4bd2b8782646f3ba8f6554193f5997"
        ],
        "rotationUpdateAt": 1735798211,
        "start": "11:00",
        "status": 0,
        "timezone": "Asia/Shanghai",
        "updateAt": 1735798211,
        "updator": "wsak_f2ba9858f4414655be39efc882b120dd",
        "uuid": "nsche_3512c1f4d176433484676225b547ef7a",
        "workspaceUUID": "wksp_798c5e0f589e4992994196832f64b6ba"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-0AC2A410-36A0-4694-879B-732A416A673B"
}

フィードバック

このページは役に立ちましたか?