Skip to content

Delete



POST /api/v1/snapshots/{snapshot_uuid}/delete

Overview

Soft-delete the specified page snapshot.

Before Calling and Usage Steps

The current Key requires snapshot.delete. The UUID should be obtained from the snapshot list visible to the current Key, and management permission should be verified; the current deletion implementation locates by UUID and does not reliably apply Workspace/creator filters. Callers must submit only targets that they are authorized for and have confirmed belong to the current Workspace, and must not rely on the server to reject a mistakenly selected UUID. Unknown or already deleted snapshots still return true, with no match count.

This public endpoint does not pass deleteShareCfg and does not concurrently cancel the share configuration, revoke the first-hop code, or clear the share cache. After the snapshot is soft-deleted, reads of associated resources will fail, but the share configuration may still exist. To stop sharing, first obtain the share_ UUIDs from Share Management in the console and cancel them one by one; do not pass snap_ to cancel sharing. It does not delete the source telemetry, original dashboard, or application; there is no public restore API, so retain the configuration in advance.

Route Parameters

Parameter Name Type Required Description
snapshot_uuid string Y Not the share configuration share_ UUID, token/authCode first-hop code, or dashboard UUID.
Example: snap_example
How to obtain or fill in: Get content.data[].uuid from the snapshot list, and operate only on snap_ UUIDs that the current Key is confirmed to have permission to manage.

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 fill in: Obtain an OpenAPI Key with permission for this operation from API Key Management in the target Workspace.

Additional Parameter Notes

A snapshot stores the page configuration and server-side query scope; internet sharing requires creating a separate share configuration. snap_, share_, the first-hop code, and the second-stage token are different identifiers.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/snapshots/snap_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 boolean True on success, including when there is no match; does not include declaration or a match count.
{
  "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 Handling
500 ft.InternalServerError An unhandled exception occurs during snapshot soft deletion or transaction commit Internal error First check the snapshot list to verify whether it has been deleted; do not treat a failure as not taking effect. Retain the traceId, and verify/cancel associated shares separately.

Feedback

Is this page helpful?