retry_team_task
const url = 'https://example.com/api/v1/teams/1/tasks/1/retry';const options = {method: 'POST', 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 reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/v1/teams/1/tasks/1/retry";
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.post(url) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request POST \ --url https://example.com/api/v1/teams/1/tasks/1/retry \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Team ID
Task ID
Responses
Section titled “Responses”Team task reset for retry
统一 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
object
object
object
object
object
object
统一媒体处理器类型(system_config / storage_policy.options)
object
统一媒体处理器类型(system_config / storage_policy.options)
object
object
object
object
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.
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" } ] }}Task is not retryable
Unauthorized
Forbidden
Task not found