POST api/user/bookings/{bookingId}/services-request

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bookingId

globally unique identifier

Required

Body Parameters

UserBookingServicesRequestDTO
NameDescriptionTypeAdditional information
Services

Collection of UserBookingServicePurchaseLineRequestDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "services": [
    {
      "orderVehicleId": 1,
      "serviceId": 2,
      "customerNotes": "sample string 3"
    },
    {
      "orderVehicleId": 1,
      "serviceId": 2,
      "customerNotes": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<UserBookingServicesRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <Services>
    <UserBookingServicePurchaseLineRequestDTO>
      <CustomerNotes>sample string 3</CustomerNotes>
      <OrderVehicleId>1</OrderVehicleId>
      <ServiceId>2</ServiceId>
    </UserBookingServicePurchaseLineRequestDTO>
    <UserBookingServicePurchaseLineRequestDTO>
      <CustomerNotes>sample string 3</CustomerNotes>
      <OrderVehicleId>1</OrderVehicleId>
      <ServiceId>2</ServiceId>
    </UserBookingServicePurchaseLineRequestDTO>
  </Services>
</UserBookingServicesRequestDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserBookingServicesRequestDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.