/developers
Developer docsAtom Files ↗
← API referenceWrite & track · API access unavailable
API REFERENCE / WRITE & TRACK

POST /v1/uploads/{operation_id}/cancel

Ask Atom to cancel an upload that has not committed.

Request fields

LocationFieldTypeRequiredDescription
HeaderAuthorizationstringYesCredential scoped to the authorized resource.
Pathoperation_idstringYesExisting upload operation.
HeaderIdempotency-KeystringYesStable retry identity for cancellation.

Request example

Example request
POST /v1/uploads/op_456/cancel
Authorization: Bearer <scoped token>
Idempotency-Key: cancel-8427

HTTP status codes

StatusMeaning
202 AcceptedSuccess response shown below.
401 UnauthorizedMissing, expired, or invalid credential.
403 ForbiddenCredential is valid but lacks the required scope or role.
404 Not FoundOperation is not visible.
409 ConflictOperation is already committed or terminal.
429 Too Many RequestsRate limit reached; honor Retry-After when provided.
503 Service UnavailableService temporarily unavailable; retry safely.

Response fields

FieldTypeExample
operation_idstringop_456
statusstringcancelled

Response example

Example response
202 Accepted
Content-Type: application/json

{
  "operation_id": "op_456",
  "status": "cancelled"
}

How it works

Cancellation is retry-safe. It cannot undo a version already committed at the destination. Clients inspect the operation after an ambiguous acknowledgement.