Delete¶
POST /api/v1/notify_object/delete
Overview¶
Delete a workspace notification target.
Before Calling and Usage Steps¶
First, verify the UUID from the Notification Target List and adjust the alert or notification policies that reference the target. The operation soft-deletes the matching target in the current workspace and clears the alert policy cache; it does not guarantee automatic unbinding of all references. If no target matches, the API still returns true, and repeated calls do not report that the target does not exist. For batch requests, if any target lacks operation permissions, the request fails. After a service exception, query the result again before retrying.
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 the required operation permissions from API Key Management in the target workspace. |
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| notifyObjectUUID | string | Y | UUID of the single notification target to delete. Allow null: False Example: notify_exampleHow to obtain or enter: Copy the notification target UUID for the current workspace from content.data[].uuid returned by the Notification Target List. |
Additional Parameter Notes¶
Only undeleted targets in the current workspace are processed. The return value does not provide the number of deleted targets.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/notify_object/delete' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"notifyObjectUUID":"notify_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 target matches. |
{
"code": 200,
"content": true,
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
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 | A request field is missing, or a field value violates the declared validation rules | Parameter parsing failed | Verify the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Invalid request JSON syntax | Request JSON format error | Correct the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | The JSON top level is not an object | Some JSON file format error | Submit a single JSON object. |
| 403 | ft.ForbiddenNotifyObjOperation | The target has custom permissions enabled, and the current identity is outside the allowed operation scope | You do not have operation permissions for notification target [{}] | An identity with management permissions should verify the object's permissionSet and the workspace's advanced permission configuration. |
| 500 | ft.InternalServerError | Deletion submission, cache cleanup, or subsequent auditing failed | Internal error | First check the list to confirm whether the target still exists, avoid treating a 500 as not deleted, then retry with the traceId or contact support. |