PUT api/clients/{clientId}/trips/{bookingId}/status

Updates the current status of the trip.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

The ID of the client to get trips for.

integer

Required

bookingId

The ID of the booking that we're looking for.

integer

Required

Body Parameters

The booking's new status.

TripStatus
NameDescriptionTypeAdditional information
Status

TripStatusCode

None.

InternalCode

string

None.

Notes

string

None.

Request Formats

application/json, text/json

Sample:
{
  "status": 0,
  "internalCode": "sample string 1",
  "notes": "sample string 2"
}

application/xml, text/xml

Sample:
<TripStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources">
  <InternalCode>sample string 1</InternalCode>
  <Notes>sample string 2</Notes>
  <Status>Unscheduled</Status>
</TripStatus>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns NoContent if the trip's status was successfully updated, or an InternalServerError otherwise.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.