POST api/Drivers/Insert
Request Information
URI Parameters
None.
Body Parameters
DriverDtoInName | Description | Type | Additional information |
---|---|---|---|
DriverId | integer |
None. |
|
Name | string |
Max length: 30 |
|
DriverRoleId | integer |
None. |
|
DriverSpId | integer |
None. |
|
StockingPointId | integer |
None. |
|
LinkedRouteIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "driverId": 1, "name": "sample string 2", "driverRoleId": 3, "driverSpId": 4, "stockingPointId": 5, "linkedRouteIds": [ 1, 2 ] }
text/html
Sample:
{"driverId":1,"name":"sample string 2","driverRoleId":3,"driverSpId":4,"stockingPointId":5,"linkedRouteIds":[1,2]}
application/xml, text/xml
Sample:
<DriverDtoIn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryTrackingSystem.Common.Dtos.Dto.Drivers"> <DriverId>1</DriverId> <DriverRoleId>3</DriverRoleId> <DriverSpId>4</DriverSpId> <LinkedRouteIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </LinkedRouteIds> <Name>sample string 2</Name> <StockingPointId>5</StockingPointId> </DriverDtoIn>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.