Complete a chunked upload
POST/uploads/:id/complete
Assembles the uploaded chunks into one stored file. Every chunk must have arrived; GET /api/v1/uploads/{id}/status lists any that are missing. For a session opened with purpose "private_apk" the body may be empty: the server computes the file's SHA-256, refuses it with SHA256_MISMATCH when a declared sha256 (at init or here) differs, reads the APK (APK_UNREADABLE, APK_UNSIGNED), and creates the private APK content item, returned under content. The same bytes uploaded again return the existing item with created false, and repeating the call returns the same item.
Request
Responses
- 200
- 400
- 404
- 409
- 503
Upload completed; content is present for a private-APK upload
No chunks uploaded, or for a private-APK upload SHA256_MISMATCH, APK_UNREADABLE or APK_UNSIGNED
Upload session not found
Upload session cancelled (a refused private-APK upload is cancelled), or bound to a different content record
SERVICE_UNAVAILABLE: Private APK uploads are not available on this deployment