Sample - OpenAI API
POST/uploads/{upload_id}/parts

Add a part to an upload

Adds a byte chunk as a part of an upload. Send the chunk in the data multipart field, then use the returned part identifier when completing the upload.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 1 body field
upload_idstringrequired
The identifier of the upload to which the part is added.

Multipart form data containing one upload part.

datastringrequired
The chunk of bytes for this Part.

1 status code
200Returns the upload-part object with its identifier, creation timestamp, parent `upload_id`, and object type.
idstringrequired
The upload Part unique identifier, which can be referenced in API endpoints.
created_atintegerrequired
The Unix timestamp (in seconds) for when the Part was created.
upload_idstringrequired
The ID of the Upload object that this Part was added to.
objectstringrequired
The object type, which is always `upload.part`.
Allowed:upload.part

Error handling

data is required and must contain the binary bytes for the part. upload_id must identify the upload receiving the part, and each part can contain at most 64 MB while the complete upload can contain at most 8 GB.