Schedules
The schedule object is used to specify whether providers should Arrive at a specific date and time, Complete work between specific hours, or Complete work anytime over a date range. You can set these options using the schedule > service_window object.
Note: When you use UTC dates and times, the Field Nation Platform will automatically assign the correct time zone. Your local time zone information is included in the schedule Response. Passing UTC dates and times will also ensure the correct time zone when you're using a Remote Location.
Below is a list of the service_window parameters, along with a JSON example for each option.
Arrive at a specific date and time
Parameter | Type | Example | Mapping/Notes |
---|---|---|---|
mode | string | "mode":"exact" | Arrive at start date and time. |
start | object | "start":{ "utc":"2018-11-07 13:00:00" } |
UTC date and time in the format of YYYY-MM-DD HH:MM:SS. |
Exact Date/Time Examples
Complete work between specific hours
Parameter | Type | Example | Mapping/Notes |
---|---|---|---|
mode | string | "mode":"hours" | Complete work from start date to end date, only between the hours of start time and end time. |
start | object | "start":{ "utc":"2018-11-07 13:00:00" } |
Start date and earliest time. UTC date and time in the format of YYYY-MM-DD HH:MM:SS. |
end | object | "end":{ "utc":"2018-11-08 15:00:00" } |
End date and latest time for each day. The end date can be the same as the start date. UTC date and time in the format of YYYY-MM-DD HH:MM:SS. |
Between Specific Hours Examples
Complete work anytime over a date range
Parameter | Type | Example | Mapping/Notes |
---|---|---|---|
mode | string | "mode":"between" | Complete work from start date/time to end date/time. |
start | object | "start":{ "utc":"2018-11-07 13:00:00" } |
Start date and time. UTC date and time in the format of YYYY-MM-DD HH:MM:SS. |
end | object | "end":{ "utc":"2018-11-08 22:00:00" } |
End date and time. UTC date and time in the format of YYYY-MM-DD HH:MM:SS. |
Anytime Over Date Range Examples
Work Order Schedule Response
You can locate schedule information in the work order > schedule object.
"schedule": { }