POST api/Cargo/EditDriverShipmentDetail

Request Information

URI Parameters

None.

Body Parameters

EditDriverShipmentDetailsViewModel
NameDescriptionTypeAdditional information
DriverShipmentId

integer

None.

Driver_Shipment_Details_ID

integer

None.

Transaction_ID

integer

None.

QNT

integer

None.

Shipment_Notes

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DriverShipmentId": 1,
  "Driver_Shipment_Details_ID": 2,
  "Transaction_ID": 3,
  "QNT": 4,
  "Shipment_Notes": "sample string 5"
}

application/xml, text/xml

Sample:
<EditDriverShipmentDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels">
  <DriverShipmentId>1</DriverShipmentId>
  <Driver_Shipment_Details_ID>2</Driver_Shipment_Details_ID>
  <QNT>4</QNT>
  <Shipment_Notes>sample string 5</Shipment_Notes>
  <Transaction_ID>3</Transaction_ID>
</EditDriverShipmentDetailsViewModel>

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 'EditDriverShipmentDetailsViewModel'.

Response Information

Resource Description

ResultModel
NameDescriptionTypeAdditional information
Success

string

None.

ErrorText

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": "sample string 1",
  "ErrorText": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.Models">
  <Data />
  <ErrorText>sample string 2</ErrorText>
  <Success>sample string 1</Success>
</ResultModel>