NAME
OpenAPI::Client::OpenAI::Path::uploads-upload_id-complete - Documentation for the /uploads/{upload_id}/complete path.
OPERATIONS
POST /uploads/{upload_id}/complete
completeUpload
$client->complete_upload({
body => { ... },
});
Completes 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. Returns the Upload object with status completed , including an additional file property containing the created usable File object.
Path/query parameters
upload_id(in path, required, string) - The ID of the Upload.
Responses
200 - OK
Content-Type: application/json
Example:
"{\n \"id\": \"upload_abc123\",\n \"object\": \"upload\",\n \"bytes\": 2147483648,\n \"created_at\": 1719184911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n \"status\": \"completed\",\n \"expires_at\": 1719127296,\n \"file\": {\n \"id\": \"file-xyz321\",\n \"object\": \"file\",\n \"bytes\": 2147483648,\n \"created_at\": 1719186911,\n \"filename\": \"training_examples.jsonl\",\n \"purpose\": \"fine-tune\",\n }\n}\n"
SCHEMAS
CompleteUploadRequest
Properties:
md5(string) - The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.part_ids(array of string, required) - The ordered list of Part IDs.
Upload
Properties:
bytes(integer, required) - The intended number of bytes to be uploaded.created_at(integer, required) - The Unix timestamp (in seconds) for when the Upload was created.expires_at(integer, required) - The Unix timestamp (in seconds) for when the Upload will expire.file(allOf)filename(string, required) - The name of the file to be uploaded.id(string, required) - The Upload unique identifier, which can be referenced in API endpoints.object(string) - The object type, which is always "upload".Allowed values: upload
purpose(string, required) - The intended purpose of the file. Please refer here for acceptable values.status(string, required) - The status of the Upload.Allowed values: pending, completed, cancelled, expired
SEE ALSO
COPYRIGHT AND LICENSE
Copyright (C) 2023-2026 by Nelson Ferraz
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.0 or, at your option, any later version of Perl 5 you may have available.