Cancel upload
POSThttps:/api.openai.com/v1/uploads/{upload_id}/cancel
Cancels the Upload. No Parts may be added after an Upload is cancelled.
Path parameters
upload_id
string
Required
The ID of the Upload.
Response
The Upload object with status cancelled
.
Example request
1 curl https://api.openai.com/v1/uploads/upload_abc123/cancel
Example response
1 {2 "id": "upload_abc123",3 "object": "upload",4 "bytes": 2147483648,5 "created_at": 1719184911,6 "filename": "training_examples.jsonl",7 "purpose": "fine-tune",8 "status": "cancelled",9 "expires_at": 171912729610 }
Built with