Skip to content

Get



GET /api/v1/notification_schedule/{notification_schedule_uuid}/get

Overview

Reads the complete configuration of the specified schedule and its resolvable notification targets.

Before Calling and Usage Steps

Copy the UUID from the Schedule List and then call this API. This API does not return the currently effective notification targets or the formatted validity period; refer to the Schedule List. In the current version, the linked notification policy list may be empty even if policies are actually referenced. When you need association information, cross-check using the list; do not use this empty array to conclude that there are no associations.

Path Parameters

Parameter Type Required Description
notification_schedule_uuid string Y Target schedule UUID; must belong to the workspace of the current API Key.
Example: nsche_example
How to obtain or enter: Obtain it from content.data[].uuid returned by the Schedule List.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or enter: Obtain an OpenAPI Key with permission for this operation from API Key management in the target workspace.

Additional Parameter Notes

The name, timezone, start, end, notifyTargets, and extend returned by this API can be copied as the basis for a complete modification. Do not return all response fields as-is.

Request Example

curl --get 'https://openapi.guance.com/api/v1/notification_schedule/nsche_example/get' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content object Target schedule configuration.
content.id integer Database record ID; use uuid to operate on the schedule.
content.uuid string Schedule UUID, used for querying, modifying, deleting, and notification policy references.
content.workspaceUUID string UUID of the workspace to which the schedule belongs.
content.name string Schedule name.
content.timezone string IANA time zone used by this schedule to interpret the time range for the day and effective dates.
content.start string Start time of the day HH:MM.
content.end string End time of the day HH:MM; the last second of the end minute is still valid.
content.notifyTargets array<string> Members, notification target UUIDs, or email addresses saved in order.
content.notifyTargets[] string acnt_ account, notify_ notification target, or email string.
content.extend object Extension configuration; can be {} if not configured.
content.extend.enableRotateNotification boolean Whether rotation is enabled; defaults to false.
content.extend.rotationCycle string Rotation cycle when enabled: day means daily, week means every Monday, month means each calendar month, workDay means daily on workdays only, weekend means daily on weekends only. Holidays are not recognized; can be omitted if not configured.
content.extend.effectiveTime object Overall validity period; can be omitted if not configured.
content.extend.effectiveTime.start integer Validity period start in Unix seconds; 0 or omitted means no limit.
content.extend.effectiveTime.end integer Validity period end in Unix seconds; 0 or omitted means no limit.
content.rotationUpdateAt integer Start time for rotation calculation, in Unix seconds. Reset when rotation-related configuration is changed.
content.status integer Record status; active records are 0.
content.creator string Identity that created the record.
content.updator string Identity of the last updater; empty string if not updated.
content.createAt integer Creation time, in Unix seconds.
content.updateAt integer Update time, in Unix seconds; -1 if not updated.
content.deleteAt integer Deletion time, in Unix seconds; -1 if not deleted.
content.notifyTargetsInfos array<object> Resolved notification target information. Invalid or no longer existing targets may not be returned, and fields vary by the three types: account, notification target, and email.
content.notifyTargetsInfos[].uuid string Account/notification target UUID; for email targets, the email address itself is used as the UUID.
content.notifyTargetsInfos[].name string Target display name; for email targets, the email address.
content.notifyTargetsInfos[].status integer Record status of the account or notification target; email targets do not include this field.
content.notifyTargetsInfos[].type string Only provided for notification targets; target type.
content.notifyTargetsInfos[].wsAccountStatus integer Only provided for accounts; account status in the workspace.
content.notifyTargetsInfos[].username string Only provided for accounts; login username.
content.notifyTargetsInfos[].iconUrl string Only provided for accounts; avatar URL.
content.notifyTargetsInfos[].email string Account email or email target address; notification targets may not provide this.
content.notifyTargetsInfos[].mobile string Only provided for accounts; mobile number; can be empty.
content.notifyTargetsInfos[].countryCode string Only provided for accounts; country/region code of the mobile number.
content.notifyTargetsInfos[].acntWsNickname string Only provided for accounts; workspace nickname.
content.issueNotificationPolicyInfos array<object> Linked notification policies and the channels that reference the policies; empty when there are no links.
content.issueNotificationPolicyInfos[].id integer Policy record ID.
content.issueNotificationPolicyInfos[].uuid string Notification policy UUID.
content.issueNotificationPolicyInfos[].workspaceUUID string Workspace to which the policy belongs.
content.issueNotificationPolicyInfos[].name string Policy name.
content.issueNotificationPolicyInfos[].extend object Notification scope and escalation configuration; for the complete configuration meaning, see Notification Policy List.
content.issueNotificationPolicyInfos[].extend.notifyTypes array<string> List of event types that trigger notifications; can be omitted.
content.issueNotificationPolicyInfos[].extend.notifyTypes[] string For example, issue.add, issue.modify, issueReply.add, or dailySummary.
content.issueNotificationPolicyInfos[].extend.upgradeCfg object Configuration stored by escalation trigger type; can be omitted.
content.issueNotificationPolicyInfos[].extend.upgradeCfg.dynamic key object Configured escalation trigger types such as noManager, processTimeout, openProcessTimeout, and eventStorm.
content.issueNotificationPolicyInfos[].extend.upgradeCfg.dynamic key.duration integer Wait or evaluation time, in seconds; provided according to the actual trigger type.
content.issueNotificationPolicyInfos[].extend.upgradeCfg.dynamic key.other fields number, boolean, string, array, or object Additional rules for different trigger types; refer to the notification policy details and their parameter table.
content.issueNotificationPolicyInfos[].status integer Active status is 0.
content.issueNotificationPolicyInfos[].creator string Identity that created the record.
content.issueNotificationPolicyInfos[].updator string Identity of the updater.
content.issueNotificationPolicyInfos[].createAt integer Creation time in Unix seconds.
content.issueNotificationPolicyInfos[].updateAt integer Update time in Unix seconds; -1 if not updated.
content.issueNotificationPolicyInfos[].deleteAt integer Deletion time in Unix seconds; -1 if not deleted.
content.issueNotificationPolicyInfos[].channelInfos array<object> List of channel entities that reference this notification policy.
content.issueNotificationPolicyInfos[].channelInfos[].id integer Database record ID. Use uuid to operate on the channel.
content.issueNotificationPolicyInfos[].channelInfos[].uuid string Channel UUID, used for modification, deletion, or subscription.
content.issueNotificationPolicyInfos[].channelInfos[].workspaceUUID string Workspace to which the channel belongs.
content.issueNotificationPolicyInfos[].channelInfos[].name string Channel name. default indicates the default channel.
content.issueNotificationPolicyInfos[].channelInfos[].description string Channel description.
content.issueNotificationPolicyInfos[].channelInfos[].notifyTarget array<string> Notification target UUIDs configured directly for this channel.
content.issueNotificationPolicyInfos[].channelInfos[].notifyTarget[] string A single notification target UUID.
content.issueNotificationPolicyInfos[].channelInfos[].notifyUpgradeCfg object Escalation notification configuration; an empty object when not configured.
content.issueNotificationPolicyInfos[].channelInfos[].notifyUpgradeCfg.triggerTime integer Wait duration before triggering an escalation notification, in seconds.
content.issueNotificationPolicyInfos[].channelInfos[].notifyUpgradeCfg.notifyTarget array<string> List of escalation notification target UUIDs.
content.issueNotificationPolicyInfos[].channelInfos[].notifyUpgradeCfg.notifyTarget[] string Escalation notification target UUID.
content.issueNotificationPolicyInfos[].channelInfos[].status integer Record status; 0 means normal.
content.issueNotificationPolicyInfos[].channelInfos[].creator string Identity that created the record.
content.issueNotificationPolicyInfos[].channelInfos[].updator string Identity of the last updater; can be an empty string if not updated.
content.issueNotificationPolicyInfos[].channelInfos[].createAt integer Creation time, in Unix seconds.
content.issueNotificationPolicyInfos[].channelInfos[].updateAt integer Update time, in Unix seconds; -1 if not updated.
content.issueNotificationPolicyInfos[].channelInfos[].deleteAt integer Deletion time, in Unix seconds; -1 if not deleted.
content.declaration object or null Workspace public declaration.
{
  "code": 200,
  "content": {
    "id": 42,
    "uuid": "nsche_example",
    "workspaceUUID": "wksp_example",
    "name": "Production On-Call",
    "timezone": "Asia/Shanghai",
    "start": "09:00",
    "end": "18:00",
    "notifyTargets": [
      "notify_example"
    ],
    "extend": {
      "enableRotateNotification": false
    },
    "rotationUpdateAt": 1785427200,
    "status": 0,
    "creator": "wsak_example",
    "updator": "",
    "createAt": 1785427200,
    "updateAt": -1,
    "deleteAt": -1,
    "notifyTargetsInfos": [
      {
        "uuid": "notify_example",
        "name": "Production On-Call Group",
        "status": 0,
        "type": "dingtalk"
      }
    ],
    "issueNotificationPolicyInfos": [],
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
404 ft.ObjectNotExists The schedule does not exist, has been deleted, or does not belong to the current workspace The specified object does not exist Copy a valid UUID again from the Schedule List.
500 ft.InternalServerError Database query or historical configuration data read exception Internal error Retain the traceId and retry; if the failure persists, contact support with the schedule UUID and a redacted response.

Feedback

Is this page helpful?