List Requests
GET/operational/requests
Every optimization request POST /optimize accepted, oldest first, a page at a time. Requests still processing and requests that failed are listed too; GET /optimize/{request_id} answers how each one ended. The picking walks WOMS routes for its orders are not requests and are left out.
Pass a page's next_cursor as cursor to read the next one. A page shorter than limit is the last, and a full page can be followed by an empty one. Requests accepted in the last few seconds can still appear behind a cursor already read, because ids order by second and then by the server process that minted them: to follow new requests, re-read from a few seconds before your last item's created_at and drop the request_ids you already have.
start_date and end_date bound when a request was accepted. Both are inclusive and count whole seconds, and a time without a timezone is UTC. Without warehouse_name the list covers every warehouse the credential's operational.view reaches.
Request
Responses
- 200
- 400
- 403
- 404
- 413
- 422
Successful Response
history.invalid_cursor: the cursor is not a request id.
common.permission_denied: the credential holds no operational.view.
warehouse.not_found_by_name. A warehouse the credential's operational.view does not reach is not found.
common.response_too_large: the response would not fit the size limit. The message says how many rows would have fitted.
operational.invalid_date_range: end_date is before start_date. A malformed parameter is refused with 422 too.