Skip to content

Delete



GET /api/v1/notes/{notes_uuid}/delete

Overview

Delete a specified legacy note through the existing GET route.

Before Calling and Usage Steps

First, confirm the note to delete from Note Details and, as needed, use Export Note to save a template. Deleting a note also soft-deletes the charts referenced by the note order list. The calling identity must have scenario management permissions or be the identity that created the note. This URL writes state. The client should call it only after confirming deletion; do not use it for previews or polling.

Route Parameters

Parameter Type Required Description
notes_uuid string Y UUID of the target legacy note.
Example: note_example
How to obtain or enter: Obtain it from content.data[].uuid in Note List, or use content.uuid from the creation response.

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: From API Key Management in the target workspace, obtain an OpenAPI Key with permission for this operation.

Additional Parameter Notes

This is a legacy-compatible GET deletion endpoint. After a timeout, first check whether the note is still in the list, and then proceed to the next step.

Request Example

curl --get 'https://openapi.guance.com/api/v1/notes/note_example/delete' \
  -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.noteName string Name of the deleted note.
content.declaration object or null Public declaration of the workspace.
{
  "code": 200,
  "content": {
    "noteName": "生产巡检笔记",
    "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.NotFoundNote The UUID has been deleted, does not exist, or is not in the workspace of the current API Key The specified note was not found Verify the UUID using the note list of the same workspace.
403 ft.Forbidden The calling identity neither has scenario management permissions nor is the identity that created the note You do not have permission to perform this operation Use the Key used when the note was created or a calling identity with scenario management permissions.

Feedback

Is this page helpful?