Docs menu
GET
/addons/route-optimization/jobs/plan-counts
Finished plans per planning date, for a week strip
One row per date from date_from to date_to, 0 included: how many SUCCEEDED or PARTIAL jobs that are not hidden plan that date, optionally for one portal (a workspace). Every plan counts, whatever its origin.
Path
GET
/api/v1/partners/addons/route-optimization/jobs/plan-countsAuthentication required
api-keycurl example
curl -X GET "https://api.route4green.com/api/v1/partners/addons/route-optimization/jobs/plan-counts" \
-H "api-key: YOUR_API_KEY"Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| portal_id | query | integer | No | A workspace: only this portal of the key's client |
| date_from | query | string | Yes | First date (YYYY-MM-DD) |
| date_to | query | string | Yes | Last date (YYYY-MM-DD), at most 62 days after date_from |
Request body
This endpoint takes no request body.
Responses
200data.items: [{ date: "YYYY-MM-DD", plan_count }], wrapped in the success envelope400ROUTE_OPT_VALIDATION_ERROR: a date that is not YYYY-MM-DD, or a range that is backwards or longer than 62 days