Skip to content

Delete



POST /api/v1/notification_schedule/delete

Overview

Batch soft delete the notification schedules and their schedule history in the current Workspace.

Before Calling and Usage Steps

First verify the UUIDs to delete in the schedule list. Before deletion, adjust references in the notification policy list to avoid dependencies on deleted schedules. Pass an explicit array of UUID strings; an empty array or no matching records can still return true. A successful call clears the current day's On-Call cache; repeated calls do not mean that usable schedules still exist.

Request Headers

Parameter Name 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.

Body Request Parameters

Parameter Name Type Required Description
notificationScheduleUUIDs[*] string A single schedule UUID string.
Example: nsche_example
How to obtain or enter: Copy a single uuid from the schedule list.
notificationScheduleUUIDs array Y Array of UUIDs to delete, applies only to the current Workspace.
Allowed null: False
Example: ["nsche_example"]
How to obtain or enter: Select the schedules to delete from content.data[].uuid in the schedule list.

Additional Parameter Notes

Do not infer from a true return that all passed UUIDs originally existed. Deletion does not guarantee automatic unbinding of notification policies; verify references in advance.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/notification_schedule/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"notificationScheduleUUIDs":["nsche_example"]}'

Response

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

Field Type Description
content boolean true when deletion processing is complete, including when no records match.
{
  "code": 200,
  "content": true,
  "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
406 ft.ParameterValidationFailed Request field missing, or field value violates declared validation conditions Parameter parsing failed Check parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Request JSON syntax is invalid Invalid request JSON format Fix the JSON according to content.reason, line, column.
400 ft.JsonFormatError JSON top level is not an object Some JSON file format error Submit a single JSON object.
500 ft.InternalServerError Exception in deletion processing, historical configuration reading, On-Call cache clearing, or auditing Internal error First confirm from the list whether the target schedule still exists, then decide whether to retry; retain traceId and the target UUID.

Feedback

Is this page helpful?