Confirm that a version upload completed
POST/api/v1/buckets/:bucketId/files/:fileId/versions/:versionId/confirm
Requires contributor role or above on this bucket. Completes a pending upload and makes it the current version of the file. Required for multipart uploads, and for every upload on storage providers without bucket notifications. Confirming an upload that is already complete has no effect.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 409
Upload confirmed
Uploaded parts do not match the declared size (MULTIPART_SIZE_MISMATCH)
Not authenticated. Note: a missing or invalid token is rejected with 403 FORBIDDEN (not 401); 401 is returned when the token's session has been revoked (SESSION_REVOKED).
Insufficient bucket role, or the file has expired (FORBIDDEN, FILE_EXPIRED)
File or version not found, or the object is missing from storage (FILE_NOT_FOUND, FILE_VERSION_NOT_FOUND, FILE_NOT_IN_STORAGE)
The version is not awaiting confirmation (INVALID_FILE_STATUS_TRANSITION)