Get Download
GET/optimize/:request_id/download
A link to a completed run's response as a file, for a response too large to fetch from GET /optimize/{request_id}. Any run, sent inline or from a file.
download_url serves response-{request_id}.json, gzipped, for 15 minutes:
curl --compressed -o "response-$request_id.json" "$download_url"
The file follows the schema of GET /optimize/{request_id} and holds what it answers, without asis_distance_warning. Each call makes a new link. A run that is still going, ended in an error or failed gets what GET /optimize/{request_id} answers for it.
Request
Responses
- 200
- 202
- 400
- 403
- 404
- 422
- 500
Successful Response
optimize.still_processing: the run has not finished yet.
optimize.invalid_request_id: the id is not a request id.
common.permission_denied: the credential holds no optimisation_api.run.
optimize.request_not_found. A request in a warehouse the credential's optimisation_api.run does not reach is not found.
The run ended in an error, or stopped before it finished (task.timeout, task.worker_lost, task.crashed, task.never_started): the result, with its error.
optimize.task_failed: the run stopped and nothing was recorded.