POST api/clients/{clientId}/trips/unschedule
Unshedules provided bookingIds against client
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
clientId |
Client Id for which booking(s) are to be cancelled |
integer |
Required |
Body Parameters
Booking Id(s) to be cancelled
Collection of integerRequest Formats
application/json, text/json
Sample:
[ 1, 2 ]
application/xml, text/xml
Sample:
<ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <int>1</int> <int>2</int> </ArrayOfint>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns where key is the booking Id and value is the flag for successful cancellation status
Dictionary of integer [key] and boolean [value]Response Formats
application/json, text/json
Sample:
{ "1": true, "3": true }
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfintboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <KeyValueOfintboolean> <Key>1</Key> <Value>true</Value> </KeyValueOfintboolean> <KeyValueOfintboolean> <Key>3</Key> <Value>true</Value> </KeyValueOfintboolean> </ArrayOfKeyValueOfintboolean>