POST api/Booking/Cargo/AddToBooking

Request Information

URI Parameters

None.

Body Parameters

AddToBookingInputModel
NameDescriptionTypeAdditional information
Package_IDs

Collection of globally unique identifier

None.

Booking_ID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Package_IDs": [
    "d21e381d-3c9b-4d3a-8b9f-2d91edb3b5ac",
    "50c1eb53-4b57-4e2d-8a73-a3098f352fbc"
  ],
  "Booking_ID": "5f9e7112-480f-489c-ba58-d8e029a4cba6"
}

application/xml, text/xml

Sample:
<AddToBookingInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyzerg.Model.WMS.InputOutputModels">
  <Booking_ID>5f9e7112-480f-489c-ba58-d8e029a4cba6</Booking_ID>
  <Package_IDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>d21e381d-3c9b-4d3a-8b9f-2d91edb3b5ac</d2p1:guid>
    <d2p1:guid>50c1eb53-4b57-4e2d-8a73-a3098f352fbc</d2p1:guid>
  </Package_IDs>
</AddToBookingInputModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"Package_IDs":["d21e381d-3c9b-4d3a-8b9f-2d91edb3b5ac","50c1eb53-4b57-4e2d-8a73-a3098f352fbc"],"Booking_ID":"5f9e7112-480f-489c-ba58-d8e029a4cba6"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.