Skip to content

Delete



GET /api/v1/wksp_share/delete

Overview

Batch soft delete authorizations issued by the current workspace by authorization configuration UUID.

Prerequisites and Usage Steps

To create/modify/delete, use the API Key of the data authorizer workspace; for reads, operate according to the authorization direction of the current Key workspace. This group authorizes data query capabilities between workspaces; it does not invite members, grant account roles, or copy data. In responses, workspaceUUID is the authorizer and toWorkspaceUUID is the authorized party; only Body.workspaceUUID in a Create request indicates the target authorized workspace, whose direction differs from the same-named response field. Whether a query takes effect is also limited by the data domain, Log Index, filter conditions, actual authorization status, and source workspace status.

Create/modify/delete requires dataRightsManage.workspaceConfigManage. First use the Authorization List with type=grant to read records issued by the current workspace itself and obtain content.data[].uuid; do not treat UUIDs of other source workspaces in the authorized list as configurations that you can modify. When the result is unknown, read the configuration back first to avoid duplicate authorization or mistakenly assuming that a failure executed nothing.

This is a legacy GET endpoint with deletion side effects and must not be used as a read-only query, prefetch, or health check. deleteUUIDs is filled with authorization configuration UUIDs joined by English commas; these are not authorized workspace UUIDs. It soft deletes only matching records issued by the current workspace. Unknown, other source workspace, already deleted, or empty sets may succeed with true and no operation; do not use true to count the number of deleted records.

Each configuration is submitted independently; cross-site records are marked as revoked and the local site access cache is cleared. No request is actively sent to the old remote end for deletion, and a cached remote list does not mean the source authorization is still valid. This endpoint does not actively disable all referencing Monitors, nor does it delete raw data. A failure in subsequent cache/site notification preparation after a deletion batch may leave earlier entries already deleted; on error, reread the authorization list to verify the remaining items before deciding whether to retry. Internal notification errors may only be recorded, and delivery is not guaranteed.

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 this operation permission from API Key Management in the target workspace.

Query Request Parameters

Parameter Type Required Description
deleteUUIDs commaArray Y Required comma-separated string; leading and trailing whitespace is removed from each item. Unknown/no-match items may succeed with no operation. Do not pass workspace UUIDs, the uppercase key DeleteUUIDs, or a JSON array.
Allowed null: False
Example: grant_example
How to obtain or enter: Obtain each item from content.data[].uuid in the Authorization List with type=grant.

Request Example

curl --get 'https://openapi.guance.com/api/v1/wksp_share/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode deleteUUIDs=grant_example

Response

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

Field Type Description
content boolean Always true when the route succeeds; there is no affected count. This does not mean all inputs exist or all associations have converged.
{
  "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.

Only model records with status=0 in the current source workspace are matched; it does not guarantee that both workspaces in the authorization are active. No match does not always return 404, and the batch is not an all-or-nothing transaction.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Using an undeclared Query parameter or a parameter that violates the rules Parameter parsing failed Check the Query parameter table and example.
500 ft.InternalServerError Storage, cache invalidation after per-item submission, or site notification preparation exception Internal error First read the type=grant list to verify which items have been deleted, then retry the remaining targets; retain the traceId.

Feedback

Is this page helpful?