Parts
Add upload part
$ openai uploads:parts create
post /uploads/{upload_id}/parts
Add upload part
Parameters
-
--upload-id: stringThe ID of the Upload.
-
--data: stringThe chunk of bytes for this Part.
Returns
-
upload_part: object { id, created_at, object, upload_id }The upload Part represents a chunk of bytes we can add to an Upload object.
-
id: stringThe upload Part unique identifier, which can be referenced in API endpoints.
-
created_at: numberThe Unix timestamp (in seconds) for when the Part was created.
-
object: "upload.part"The object type, which is always
upload.part. -
upload_id: stringThe ID of the Upload object that this Part was added to.
-
Example
openai uploads:parts create \
--api-key 'My API Key' \
--upload-id upload_abc123 \
--data 'Example data'
Response
{
"id": "id",
"created_at": 0,
"object": "upload.part",
"upload_id": "upload_id"
}
Domain Types
Upload Part
-
upload_part: object { id, created_at, object, upload_id }The upload Part represents a chunk of bytes we can add to an Upload object.
-
id: stringThe upload Part unique identifier, which can be referenced in API endpoints.
-
created_at: numberThe Unix timestamp (in seconds) for when the Part was created.
-
object: "upload.part"The object type, which is always
upload.part. -
upload_id: stringThe ID of the Upload object that this Part was added to.
-