Skip to content

Modify



POST /api/v1/crontab_report/{report_uuid}/modify

Overview

Route Parameters

Parameter Name Type Required Description
report_uuid string Y The UUID of the scheduled report

Body Request Parameters

Parameter Name Type Required Description
title string Y Scheduled report name
Allow empty: True
Max length: 200
content string Scheduled report content
Allow empty: True
Max length: 1000
Allow empty string: True
dashboardUUID string Y Dashboard UUID
Allow empty: False
recipient array Y Recipient information
Example: [acnt_xxxx, xxx@guance.com, acnt_yyy]
Allow empty: False
variables json View variable information
Allow empty: True
timeRange string Y Query time range
Example: 1d
Allow empty: True
crontab string Crontab for the scheduled task
Example: 1 2 * * *
Allow empty: True
Allow empty string: True
singleExecuteTime int Timestamp for single execution
Allow empty: True
extend json Additional information
Allow empty: True
timezone string Y Timezone for the scheduled report
Example: Asia/Shanghai
Allow empty: True
notifyType string Y Notification type for the scheduled report
Example: email
Allow empty: True
Allowed values: ['email', 'dingTalkRobot', 'wechatRobot', 'feishuRobot', 'HTTPRequest', 'slackIncomingWebhook', 'teamsWorkflowWebhook']

Parameter Supplementary Explanation

Data description.*

  • Request parameter description
Parameter Name type Description
title string Scheduled report name
content string Scheduled report content
dashboardUUID string Dashboard UUID for the scheduled report
recipient list List of recipient information for the scheduled report, user account acnt_/email/notification target UUID
variables json View variable information
timeRange string Query time range, integer plus d/h/m format, e.g., 3d, 15m, 2h
crontab string Crontab for recurring scheduled tasks
singleExecuteTime int Timestamp for single execution
extend json Extended information, used for displaying information on the frontend interface
timezone string Timezone
notifyType string Notification type
  • extend extension field description
Parameter Name type Description
shareConfig json Scheduled report sharing configuration
shareConfig.shareMethod string Scheduled report sharing configuration public or encipher public and encrypted default public
shareConfig.password string Scheduled report sharing password encrypted sharing password

Request Example

curl 'https://openapi.guance.com/api/v1/crontab_report/cron_xxxx32/modify' \
-H 'Accept-Language: zh' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json, text/plain, */*' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"title":"ceshi3","content":"","dashboardUUID":"dsbd_xxxx32","recipient":["notify_xxxx32"],"timeRange":"1d","singleExecuteTime":-1,"crontab":"10 10 03,14,13 * *","variables":{},"extend":{"cycleTimeType":"day","hour":"10","minutes":"10","dashboardInfo":{}},"timezone":"Asia/Shanghai","notifyType":"dingTalkRobot"}' \
--compressed

Response

{
    "code": 200,
    "content": {
        "content": "",
        "createAt": 1698666812,
        "creator": "wsak_xxxxx",
        "crontab": "10 10 03,14,13 * *",
        "dashboardUUID": "dsbd_xxxx32",
        "deleteAt": -1,
        "executed": 0,
        "extend": {
            "cycleTimeType": "day",
            "dashboardInfo": {},
            "hour": "10",
            "minutes": "10"
        },
        "id": 206,
        "isLocked": 0,
        "notifyType": "dingTalkRobot",
        "recipient": [
            "notify_xxxx32"
        ],
        "singleExecuteTime": -1,
        "status": 0,
        "timeRange": "1d",
        "timezone": "Asia/Shanghai",
        "title": "ceshi3",
        "updateAt": 1698667256,
        "updator": "wsak_xxxxx",
        "uuid": "cron_xxxx32",
        "variables": {},
        "workspaceUUID": "wksp_xxxx32"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-060F8B2A-6502-44AB-81A0-E51E4006D205"
}

Feedback

Is this page helpful? ×