JiwaAPI

<back to all web services

DeliveryRunPUTRequest

Requires Authentication
The following routes are available for this service:
PUT/Delivery/Runs/{RunID}Adds or replaces a delivery run with its cycle starts and stops.
DeliveryRunPUTRequest Parameters:
NameParameterData TypeRequiredDescription
RunIDpathstringNo
Createbodybool?No
RouteIDbodystringNo
DayOfWeekbodyint?No
LabelbodystringNo
VehicleTypeIDbodystringNo
FrequencyWeeksbodyint?No
IsActivebodybool?No
CycleStartsbodyList<string>No
StopsbodyList<DeliveryStopBody>No
DeliveryStopBody Parameters:
NameParameterData TypeRequiredDescription
TownIDformstringNo
StopTypeformint?No
Sequenceformint?No
MinutesOffRouteformint?No
DirectionsformstringNo
DeliveryWriteResponse Parameters:
NameParameterData TypeRequiredDescription
IDformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /Delivery/Runs/{RunID} HTTP/1.1 
Host: api.redpoint.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"RunID":"String","Create":false,"RouteID":"String","DayOfWeek":0,"Label":"String","VehicleTypeID":"String","FrequencyWeeks":0,"IsActive":false,"CycleStarts":["String"],"Stops":[{"TownID":"String","StopType":0,"Sequence":0,"MinutesOffRoute":0,"Directions":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ID":"String"}