delete_team_folder
const url = 'https://example.com/api/v1/teams/1/folders/1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}use std::str::FromStr;use reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/v1/teams/1/folders/1";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request DELETE \ --url https://example.com/api/v1/teams/1/folders/1 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Team ID
Folder ID
Responses
Section titled “Responses”Team folder deleted
Team folder deletion queued
统一 API 响应格式
成功: { "code": "success", "msg": "", "data": {...} }
失败: { "code": "auth.credentials_failed", "msg": "Invalid Credentials" }
object
object
Lightweight user identity for embedding in admin list/detail responses.
object
object
object
用户头像来源
后台任务类型
object
object
Archive entry filename decoding strategy.
object
object
统一媒体处理器类型(system_config / storage_policy.options)
object
统一媒体处理器类型(system_config / storage_policy.options)
object
object
object
object
object
Migration behavior selected when the immutable task plan was created.
Read-only source evidence required for recovery-mode tasks.
object
Whether the current evidence permits a recovery migration to start.
Digest binding task creation to the policy revision, counts, and sample evidence.
Source policy selected by the administrator.
Source policy revision that must still match when a recovery task is created.
Deterministic sample results, bounded by the service sample limit.
Secret-free result for one stored blob sampled during policy recovery preflight.
object
Sampled blob ID used to correlate the result with admin blob observability.
Secret-free administrator diagnostic.
Whether retrying the sample may reasonably produce a different result.
Stable object probe status.
Aggregate recoverability classification.
Number of stored blob rows under the source policy.
Logical bytes represented by stored blob rows.
Number of virtual-empty blob rows that need only metadata migration.
object
Digest binding this task to the previewed files, revisions, blobs, and blockers.
Storage policy whose remaining content references must be removed.
Policy name embedded in the high-risk confirmation phrase.
Policy revision observed when the impact preview was confirmed.
Administrator-provided reason retained as task evidence and audit context.
object
object
object
object
object
object
object
统一媒体处理器类型(system_config / storage_policy.options)
object
统一媒体处理器类型(system_config / storage_policy.options)
object
object
object
object
object
Blob rows that still reference the source policy after task execution.
object
Number of source-policy blob metadata rows removed after reference checks.
Logical quota bytes released through canonical file purge transactions.
Confirms that the final guarded policy deletion completed.
Source policy removed after all destructive cleanup checks passed.
Number of file histories permanently purged.
object
object
Final imported content length in bytes.
Actual engine used for the final successful transfer. Legacy task results may not have this field.
Final SHA-256 digest in lowercase hexadecimal.
Redacted display URL derived from the payload or source URL. This value is always safe to render in task detail views.
object
object
object
Structured diagnostic detail attached to a component report.
object
Stable detail key.
Human-facing text such as a backend, driver, region, or mode.
object
Human-facing text such as a backend, driver, region, or mode.
Signed integer value.
object
Signed integer value.
Unsigned counter or depth value.
object
Unsigned counter or depth value.
Boolean flag.
object
Boolean flag.
Duration value in milliseconds for latency, age, lag, or timeout diagnostics.
object
Duration value in milliseconds for latency, age, lag, or timeout diagnostics.
后台任务状态
Serialized task step shown in task APIs.
object
Optional detail text.
Step finish time.
Stable step key.
Current progress amount.
Total progress amount.
Step start time.
Current step status.
Human-readable step title.
object
object
Connector-owned field that caused a configuration validation failure.
This is intentionally optional so existing diagnostics remain wire-compatible.
Connector field scope, for example connector_config or static_credential.
Example
{ "code": "success", "data": { "creator": { "profile": { "avatar": { "source": "none" } } }, "kind": "archive_extract", "payload": { "kind": "archive_compress" }, "presentation": { "status": { "code": "blob_maintenance_integrity_check_name" }, "title": { "code": "blob_maintenance_integrity_check_name" } }, "result": { "kind": "archive_compress" }, "status": "pending", "steps": [ { "status": "pending" } ] }}Unauthorized
Forbidden
Folder not found