POST api/Cargo/EditDriverShipment
Request Information
URI Parameters
None.
Body Parameters
DriverShipmentViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Driver_Shipment_ID | integer |
None. |
|
| Driver_ID | integer |
None. |
|
| Driver_Shipment_Date | string |
None. |
|
| Shipped | boolean |
None. |
|
| IsActive | boolean |
None. |
|
| Notes | string |
None. |
|
| Details | Collection of DriverShipmentDetailsViewModel |
None. |
|
| Temp_Payment_ID | integer |
None. |
|
| Voucher_ID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Driver_Shipment_ID": 1,
"Driver_ID": 2,
"Driver_Shipment_Date": "sample string 3",
"Shipped": true,
"IsActive": true,
"Notes": "sample string 6",
"Details": [
{
"Driver_Shipment_Details_ID": 1,
"Transaction_ID": 2,
"QNT": 3,
"Shipment_Notes": "sample string 4"
},
{
"Driver_Shipment_Details_ID": 1,
"Transaction_ID": 2,
"QNT": 3,
"Shipment_Notes": "sample string 4"
}
],
"Temp_Payment_ID": 7,
"Voucher_ID": 8
}
application/xml, text/xml
Sample:
<DriverShipmentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Layan_Cargo_API.ViewModels">
<Details>
<DriverShipmentDetailsViewModel>
<Driver_Shipment_Details_ID>1</Driver_Shipment_Details_ID>
<QNT>3</QNT>
<Shipment_Notes>sample string 4</Shipment_Notes>
<Transaction_ID>2</Transaction_ID>
</DriverShipmentDetailsViewModel>
<DriverShipmentDetailsViewModel>
<Driver_Shipment_Details_ID>1</Driver_Shipment_Details_ID>
<QNT>3</QNT>
<Shipment_Notes>sample string 4</Shipment_Notes>
<Transaction_ID>2</Transaction_ID>
</DriverShipmentDetailsViewModel>
</Details>
<Driver_ID>2</Driver_ID>
<Driver_Shipment_Date>sample string 3</Driver_Shipment_Date>
<Driver_Shipment_ID>1</Driver_Shipment_ID>
<IsActive>true</IsActive>
<Notes>sample string 6</Notes>
<Shipped>true</Shipped>
<Temp_Payment_ID>7</Temp_Payment_ID>
<Voucher_ID>8</Voucher_ID>
</DriverShipmentViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultModel| Name | Description | Type | Additional 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>