uploads

Cancel an upload

Aborts the underlying multipart upload and marks the session cancelled. Idempotent — already-completed or already-cancelled sessions return 404.

post/v1/uploads/{id}/cancel

Request

  • Base URL: https://api.aiand.com
  • URL: https://api.aiand.com/v1/uploads/{id}/cancel
  • Auth: HTTP bearer

Path parameters

idstring required

Response

The cancelled upload

idstring required

Stable upload session id with upload- prefix

object'upload' required
bytesinteger required

Declared total size of the file being uploaded

created_atinteger required

Unix timestamp

expires_atinteger required

Unix timestamp (1 hour from creation by default)

filenamestring nullable required
purpose'vision' | 'video' | 'audio' | 'document' required
status'pending' | 'completed' | 'cancelled' | 'expired' | 'failed' required

Changes

No recorded changes to this operation across all 1 revision of this API.