Skip to content

Delete



GET /api/v1/workspace/member_group/{group_uuid}/delete

Overview

Delete the associations between a team, members, and roles, and invalidate the collection Tokens that lose their last team authorization as a result.

Before You Call and Usage Steps

This API method is GET but performs an actual team deletion; it cannot be used for read-only probing or automatic replay. First use Team Details to confirm the target, and check the collection Tokens authorized by this team and the data collection currently using these Tokens. Only custom Tokens authorized by this team are invalidated; Tokens still authorized by other teams are retained. After the team and related associations are deleted, the cache and asynchronous permissions are refreshed; Token synchronization may fail after commit. Repeated deletion of a team that no longer exists returns an error; idempotent success is not guaranteed.

Route Parameters

Parameter Type Required Description
group_uuid string Y UUID of the target team; it must belong to the current Workspace.
Example: group_example
How to obtain or enter: Obtain the team UUID from content[].uuid in the Team List.

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

Additional Parameter Notes

The message for a 409 error varies by failure stage. content may contain committed, syncStatus, syncFailureReason, syncRequiresVerification, tokenRecordUUID, and isDefault; fields that do not appear must not be treated as false. Existing Token values do not need to be included in tickets or logs.

Request Example

curl --get 'https://openapi.guance.com/api/v1/workspace/member_group/group_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 when team deletion processing is complete; Token impact details are not returned.
{
  "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
400 ft.WorkspaceTokenInvalidGroups The pre-deletion check finds that the target team does not exist, has been deleted, or does not belong to the current Workspace Team does not exist or does not belong to the current Workspace Verify the active team UUID from the Team List; do not repeatedly delete a target that no longer exists.
404 ft.MemberGroupNoExists The target team does not exist, has been deleted, or is not in this Workspace Team does not exist Copy the active team UUID again from the Team List.
401 ft.WKSPNotExistOrReleased The target Workspace no longer exists or is unavailable Workspace does not exist or has been released Check the current Workspace status; do not retry against a released Workspace.
409 ft.WorkspaceTokenOperationBusy Another lifecycle operation is in progress in the same Workspace Another operation is in progress in the current Workspace. This operation was not saved. Please try again later. When committed=false, wait and retry to avoid concurrent deletion.
409 ft.WorkspaceTokenSyncPending The Workspace already has an incomplete Token synchronization, or this deletion has been saved but the subsequent Token synchronization has not yet completed The change has been saved, but synchronization has not yet completed. Please resolve the synchronization issue first; there is no need to resubmit this operation. You must read content.committed: if true, first verify the deleted team and Token synchronization, and do not delete again; if false, complete the existing synchronization first and then retry. If syncRequiresVerification=true, verify the result first and do not blindly replay.
500 ft.InternalServerError Token transaction database operation, deletion commit, cache, or subsequent audit fails Internal error First check the current state of the team and Tokens to confirm whether the change has been committed, then decide whether to retry and retain the traceId.
{
  "code": 409,
  "content": {
    "committed": true,
    "syncStatus": "pending",
    "syncRequiresVerification": true,
    "tokenRecordUUID": "wst_example",
    "isDefault": false
  },
  "errorCode": "ft.WorkspaceTokenSyncPending",
  "message": "变更已保存,但上次同步结果尚未确认,请先核验同步结果,无需重复提交本次操作。",
  "success": false,
  "traceId": "TRACE-EXAMPLE"
}

Feedback

Is this page helpful?