PUT api/clients/{clientId}/trips/{bookingId}/subtype
Updates the booking subtype of 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 to update. |
integer |
Required |
Body Parameters
The trip's new booking subtype code.
BookingSubtypeName | Description | Type | Additional information |
---|---|---|---|
Code |
Gets or sets the code that can be used to identify the subtype. |
string |
None. |
Name |
Gets or sets the friendly name of the subtype. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "code": "sample string 1", "name": "sample string 2" }
application/xml, text/xml
Sample:
<BookingSubtype xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources"> <Code>sample string 1</Code> <Name>sample string 2</Name> </BookingSubtype>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns NoContent if the trip's subtype was successfully updated, or an InternalServerError otherwise.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.