The uploader says its upload stopped (the page was left or reloaded). A plan preview with no file session is discarded (`outcome: discarded`: nothing was uploaded). A batch with file sessions reads as idle at once (`outcome: interrupted`): discardable, and resumable until the next sign of life makes it live again. Only the batch's uploader may call it (403 PERMISSION_DENIED). 409 UPLOAD_BATCH_NOT_DISCARDABLE once the batch is submitted, closed or an import.
POST
/v1/upload-batches/{batchId}/interruption-requestscurl -X POST 'https://api.embodiflow.io/v1/upload-batches/{batchId}/interruption-requests' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- batchIdstring必填
请求头参数
- Idempotency-Keystring
Optional idempotency key, at most 255 characters (UUIDv4 recommended). A repeated key returns the first response byte-for-byte; a 5xx is not stored, so the same key runs the request again. The same key with a different body, or a second in-flight request, returns 409 IDEMPOTENCY_CONFLICT. Keys are unique per tenant and retained for 24 hours.
响应
Success
- dataobject必填
- batchIdstring必填
- outcomestring必填可选值interrupteddiscarded
响应示例
{
"data": {
"batchId": "string",
"outcome": "interrupted"
}
}服务器https://api.embodiflow.io/v1