Complete File
POST/v1/files/:file_id/complete
Check the uploaded bytes and make the file ready.
The type is read from the bytes and replaces the declared one. Bytes that
are too large, of a type a file may not have (SVG, HTML, any markup), or an
archive that inflates past 20 MB are deleted and the file becomes
failed (422, with failureReason). Nothing uploaded yet: 409. A file
that is already ready or failed is answered as it is.
Request
Responses
- 200
- 403
- 404
- 422
Successful Response
error is feature_not_offered: files are not included for this account (feature is files), or the target is the account's capture folder and capture is not included (feature is capture). An account admin can switch either on.
Not found
Validation Error