POST api/Truck
Request Information
URI Parameters
None.
Body Parameters
TruckDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Description | string |
String length: inclusive between 0 and 100 |
|
| Code | string |
Required String length: inclusive between 0 and 10 |
|
| ApiClientId | integer |
None. |
|
| ExternalId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Description": "sample string 1",
"Code": "sample string 2",
"ApiClientId": 3,
"ExternalId": 4
}
application/xml, text/xml
Sample:
<TruckDto xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Description>sample string 1</Description> <Code>sample string 2</Code> <ApiClientId>3</ApiClientId> <ExternalId>4</ExternalId> </TruckDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiTruckResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| Result | string |
None. |
|
| Id | string |
None. |
|
| Warning | string |
None. |
|
| Error | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"Result": "sample string 2",
"Id": "sample string 3",
"Warning": "sample string 4",
"Error": "sample string 5"
}
application/xml, text/xml
Sample:
<ApiTruckResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <success>true</success> <Result>sample string 2</Result> <Id>sample string 3</Id> <Warning>sample string 4</Warning> <Error>sample string 5</Error> </ApiTruckResponse>