Complete upload
POST
https://api.openai.com/v1/uploads/upload_abc123/completeCompletes the Upload.
Within the returned Upload object, there is a nested File object that is ready to use in the rest of the platform.
You can specify the order of the Parts by passing in an ordered list of the Part IDs.
The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.
Request
Body Params application/x-www-form-urlencoded
{
"part_ids": ["part_def456", "part_ghi789"]
}
string
required
The ordered list of Part IDs.
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
id
string
required
object
string
required
bytes
integer
required
created_at
integer
required
filename
string
required
purpose
string
required
status
string
required
expires_at
integer
required
file
object
required
id
string
required
object
string
required
bytes
integer
required
created_at
integer
required
filename
string
required
purpose
string
required
Example
{
"id": "upload_abc123",
"object": "upload",
"bytes": 2147483648,
"created_at": 1719184911,
"filename": "training_examples.jsonl",
"purpose": "fine-tune",
"status": "completed",
"expires_at": 1719127296,
"file": {
"id": "file-xyz321",
"object": "file",
"bytes": 2147483648,
"created_at": 1719186911,
"filename": "training_examples.jsonl",
"purpose": "fine-tune",
}
}
Last modified: 2 months ago