Optimize
POST/optimize
Optimize
Request
Responses
- 200
- 202
- 400
- 403
- 404
- 413
- 422
- 429
- 500
Successful Response
With synchronous=false: the run is accepted. Follow its request_id with GET /optimize/{request_id}/status or the optimize.completed webhook.
request.invalid_gzip: a body sent with Content-Encoding: gzip is not valid gzip. integration.api_config_not_found: config_id names no API config of the warehouse.
common.permission_denied: the credential holds no optimisation_api.run.
warehouse.not_found_by_name, warehouse.version_not_found_by_name or warehouse.no_production_version. optimize.preprocessing_step_not_found or optimize.postprocessing_step_not_found: a processor the request names does not exist. optimize.stop_condition_not_found: custom_stop_condition_id names no stop condition of the warehouse. A warehouse the credential's optimisation_api.run does not reach is not found.
request.gzip_too_large: the body decompresses past the size limit. A body larger than about 4.5 MB as sent is refused before it reaches the API, with a 413 and no code: send it as a file with POST /optimize/files.
A synchronous run that ended in an error: the result, with its error. algo.hierarchical_order_limit_exceeded: more orders than the organization's limit for OPTIMIZED_MAX. A malformed request is also a 422, with a code per field in detail.
algo.task_limit_exceeded: the organization already has as many runs going as its limit allows. The message says the limit.
integration.processor_execution_failed: a pre-processor failed. The message says why.