Schedule proposals¶
Schedule proposals are "preview" of what tasks and routes will be created at the specified date range.
API actions¶
API base path: /task/schedule/proposal.
list¶
Get all tasks and routes that will be created by schedule.
parameters¶
| name | description | type | 
|---|---|---|
| trackers | Optional. Ids of the trackers to which task is assigned. | array of int | 
| from | Show tasks that will be created AFTER this date, e.g. "2014-07-01 00:00:00", should not before now | string date/time | 
| to | Show tasks will be created BEFORE this date, e.g. "2014-07-01 00:00:00", should not before from | string date/time | 
| filter | Optional. Filter for task schedule label and description. | string | 
| types | Optional. Tasks or routes. For example: ["task", "route"] | array of string enum | 
- If trackers,filter,fromortois not passed or null then appropriate condition not used to filter results.
example¶
curl -X POST 'https://api.navixy.com/v2/fsm/task/schedule/proposal/list' \
    -H 'Content-Type: application/json' \ 
    -d '{"hash": "22eac1c27af4be7b9d04da2ce1af111b", "from": "2020-11-24 00:00:00", "to": "2020-11-25 00:00:00"}'
response¶
{
    "success": true,
    "list": [{
         "id": 111,
         "user_id": 3,
         "tracker_id": 22,
         "location": {
             "lat": 56.5,
             "lng": 60.5,
             "address": "Fichtenstrasse 11",
             "radius": 150
         },
         "label": "Deliver parcels",
         "description": "Quickly",
         "creation_date": "2014-01-02 03:04:05",
         "from": "2014-02-03 04:05:06",
         "to": "2014-03-04 05:06:07",
         "external_id": null,
         "status": "assigned",
         "status_change_date": "2014-01-02 03:04:05",
         "max_delay" : 5,
         "min_stay_duration": 0,
         "arrival_date": "2014-01-02 03:04:05",
         "stay_duration": 0,
         "origin": "imported",
         "tags": [1, 2]
         "type": "task",
         "form": <form_object>
    }]
}
errors¶
General types only.
  Last update: November 25, 2020