JiwaAPI

<back to all web services

DeliveryShortWeekPUTRequest

Requires Authentication
The following routes are available for this service:
PUT/Delivery/ShortWeeks/{ShortWeekID}Adds or replaces a short week plan with its changes.
DeliveryShortWeekPUTRequest Parameters:
NameParameterData TypeRequiredDescription
ShortWeekIDpathstringNo
Createbodybool?No
IN_PhysicalIDbodystringNo
WeekStartingbodystringNo
TitlebodystringNo
NotesbodystringNo
Statusbodyint?No
NoRunsbodybool?No
ChangesbodyList<DeliveryChangeBody>No
DeliveryChangeBody Parameters:
NameParameterData TypeRequiredDescription
RunIDformstringNo
OccurrenceDateformstringNo
TownIDformstringNo
Actionformint?No
NewDateformstringNo
VehicleTypeIDformstringNo
NotesformstringNo
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/ShortWeeks/{ShortWeekID} HTTP/1.1 
Host: api.redpoint.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ShortWeekID":"String","Create":false,"IN_PhysicalID":"String","WeekStarting":"String","Title":"String","Notes":"String","Status":0,"NoRuns":false,"Changes":[{"RunID":"String","OccurrenceDate":"String","TownID":"String","Action":0,"NewDate":"String","VehicleTypeID":"String","Notes":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ID":"String"}