Complete an upload
POST /Platform/uploads/{upload_id}/complete
Complete an upload.
Finishes synchronously: assembles the parts, stores the file, detects its real content type from the first bytes and re-checks it against a form field's accepted types. Idempotent -- a client that timed out calls it again and every step resumes where it stopped.
Path parameters
upload_id: str. The session frominit_upload.
Returns
UploadCompleteResponse
hash: optional str or null. Stored dtype handle.dtype: optional str or null. Detected dtype class name.size: optional int or null. Stored byte length.content_type: optional str or null. Detected media type.filename: optional str or null. Original filename.deduped: optional bool. Whether existing content was reused.upload_id: str. Upload session identifier.status: "done". The upload is complete.
Example request
curl -X POST "https://api.hilus.ai/Platform/uploads/{upload_id}/complete" \
-H "Authorization: Bearer $HILUS_API_KEY"