Cancels the Upload. No Parts may be added after an Upload is cancelled.
POST /uploads/{upload_id}/cancel
Authorizations
Parameters
Path Parameters
The ID of the Upload.
Responses
200
OK
The Upload object can accept byte chunks in the form of Parts.
object
The Upload unique identifier, which can be referenced in API endpoints.
The Unix timestamp (in seconds) for when the Upload was created.
The name of the file to be uploaded.
The intended number of bytes to be uploaded.
The intended purpose of the file. Please refer here for acceptable values.
The status of the Upload.
The Unix timestamp (in seconds) for when the Upload was created.
The object type, which is always “upload”.
The ready File object after the Upload is completed.
object
The file identifier, which can be referenced in the API endpoints.
The size of the file, in bytes.
The Unix timestamp (in seconds) for when the file was created.
The name of the file.
The object type, which is always file
.
The intended purpose of the file. Supported values are assistants
, assistants_output
, batch
, batch_output
, fine-tune
, fine-tune-results
and vision
.
Deprecated. The current status of the file, which can be either uploaded
, processed
, or error
.
Deprecated. For details on why a fine-tuning training file failed validation, see the error
field on fine_tuning.job
.