Start Upload
POST/optimize/files/:upload_id/start
Runs the uploaded file as the same request sent to POST /optimize?synchronous=false: the same checks, the same refusals with the same codes, the same stored request. Answers 202 with the run's request_id; follow it with GET /optimize/{request_id}/status or the optimize.completed webhook. Starting the same upload twice runs it twice, as posting the same body twice does. Besides the refusals listed here, every refusal POST /optimize lists applies, with the same code.
Request
Responses
- 202
- 400
- 403
- 404
- 413
- 422
Successful Response
request.invalid_gzip: the uploaded file is not valid gzip.
common.permission_denied: the credential holds no optimisation_api.run.
optimize.upload_not_found: no file at this upload id, because it was never uploaded, never created, or has expired.
request.gzip_too_large: the file decompresses past the size limit.
Validation Error