Files
Complete an upload
After the PUT, makes the upload a file with the same ID, ready to pass in a model's input. Send a JSON body, even an empty one ({}). The file's type and length are read from its bytes.
Needs an API key with the generations:write scope.
post/v1/uploads/{id}/complete
Request
- Base URL: https://api.tryleap.ai
- URL: https://api.tryleap.ai/v1/uploads/{id}/complete
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Path parameters
idstring required
The upload's ID, file_....
Request body
Response
The stored file.
Changes
No recorded changes to this operation across all 1 revision of this API.