| PUT | /Delivery/Runs/{RunID} | Adds or replaces a delivery run with its cycle starts and stops. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RunID | path | string | No | |
| Create | body | bool? | No | |
| RouteID | body | string | No | |
| DayOfWeek | body | int? | No | |
| Label | body | string | No | |
| VehicleTypeID | body | string | No | |
| FrequencyWeeks | body | int? | No | |
| IsActive | body | bool? | No | |
| CycleStarts | body | List<string> | No | |
| Stops | body | List<DeliveryStopBody> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TownID | form | string | No | |
| StopType | form | int? | No | |
| Sequence | form | int? | No | |
| MinutesOffRoute | form | int? | No | |
| Directions | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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: testapi.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"}