PATCH api/clients/{clientId}/trips/{bookingId}
Updates an existing trip.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
clientId |
The ID of the client that the trip belongs to. |
integer |
Required |
bookingId |
The ID of the trip. |
integer |
Required |
Body Parameters
Contains instructions on how to update the trip.
TripPatchName | Description | Type | Additional information |
---|---|---|---|
Operations | Collection of PatchOperation |
None. |
Request Formats
application/json, text/json
Sample:
[]
application/xml, text/xml
Sample:
<TripPatch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources" />
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns validation results.
ValidationResultName | Description | Type | Additional information |
---|---|---|---|
ValidationItems |
Gets the list of validation items. |
Collection of ValidationItem |
None. |
HasErrors |
Determines whether there are any validation errors. |
boolean |
None. |
HasErrorsOrWarnings |
Determines whether there are any validation errors. |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "validationItems": [], "hasErrors": false, "hasErrorsOrWarnings": false }
application/xml, text/xml
Sample:
<ValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources"> <ValidationItems /> </ValidationResult>