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"Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- batchIdstringrequired
Header parameters
- 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.
Responses
Success
- dataobjectrequired
- batchIdstringrequired
- outcomestringrequiredAllowed valuesinterrupteddiscarded
Response example
{
"data": {
"batchId": "string",
"outcome": "interrupted"
}
}Servershttps://api.embodiflow.io/v1