POST api/DeliveryAgent/Agents/SaveDeliveryAgentVehicleDtls
Request Information
URI Parameters
None.
Body Parameters
VehicleAddPostModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VehicleID | integer |
None. |
|
| DeliveryAgentID | string |
Required |
|
| VehicleType | string |
Required |
|
| VehicleMake | string |
Required |
|
| VehicleModel | string |
Required |
|
| YearOfManufacture | integer |
Required |
|
| RegistrationNumber | string |
Required |
|
| DeliveryAgentAddedDocuments | Collection of DeliveryAgentDocumentPostModel |
None. |
|
| IPAddress | string |
None. |
|
| UserID | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"VehicleID": 1,
"DeliveryAgentID": "sample string 2",
"VehicleType": "sample string 3",
"VehicleMake": "sample string 4",
"VehicleModel": "sample string 5",
"YearOfManufacture": 6,
"RegistrationNumber": "sample string 7",
"DeliveryAgentAddedDocuments": [
{
"DocTypeID": "sample string 1",
"Document": "sample string 2",
"DocumentDescription": "sample string 3",
"OldDocumentID": 4,
"OldDocument": "sample string 5",
"ValidityDate": "2025-12-07T09:58:03.3091089+05:30"
},
{
"DocTypeID": "sample string 1",
"Document": "sample string 2",
"DocumentDescription": "sample string 3",
"OldDocumentID": 4,
"OldDocument": "sample string 5",
"ValidityDate": "2025-12-07T09:58:03.3091089+05:30"
}
],
"IPAddress": "sample string 8",
"UserID": "sample string 9"
}
application/xml, text/xml
Sample:
<VehicleAddPostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryAgent.Operations.CustomModels">
<DeliveryAgentAddedDocuments>
<DeliveryAgentDocumentPostModel>
<DocTypeID>sample string 1</DocTypeID>
<Document>sample string 2</Document>
<DocumentDescription>sample string 3</DocumentDescription>
<OldDocument>sample string 5</OldDocument>
<OldDocumentID>4</OldDocumentID>
<ValidityDate>2025-12-07T09:58:03.3091089+05:30</ValidityDate>
</DeliveryAgentDocumentPostModel>
<DeliveryAgentDocumentPostModel>
<DocTypeID>sample string 1</DocTypeID>
<Document>sample string 2</Document>
<DocumentDescription>sample string 3</DocumentDescription>
<OldDocument>sample string 5</OldDocument>
<OldDocumentID>4</OldDocumentID>
<ValidityDate>2025-12-07T09:58:03.3091089+05:30</ValidityDate>
</DeliveryAgentDocumentPostModel>
</DeliveryAgentAddedDocuments>
<DeliveryAgentID>sample string 2</DeliveryAgentID>
<IPAddress>sample string 8</IPAddress>
<RegistrationNumber>sample string 7</RegistrationNumber>
<UserID>sample string 9</UserID>
<VehicleID>1</VehicleID>
<VehicleMake>sample string 4</VehicleMake>
<VehicleModel>sample string 5</VehicleModel>
<VehicleType>sample string 3</VehicleType>
<YearOfManufacture>6</YearOfManufacture>
</VehicleAddPostModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>