POST api/Drivers?id_driver={id_driver}&client_code={client_code}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id_driver | integer |
Default value is 0 |
|
client_code | string |
Default value is |
Body Parameters
driverName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
id_saler | integer |
None. |
|
id_saler_branch | integer |
None. |
|
id_server | integer |
None. |
|
name | string |
None. |
|
phone | string |
None. |
|
plate | string |
None. |
|
id_client | integer |
None. |
|
clientCode | string |
None. |
|
active | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "id_saler": 2, "id_saler_branch": 3, "id_server": 4, "name": "sample string 5", "phone": "sample string 6", "plate": "sample string 7", "id_client": 8, "clientCode": "sample string 9", "active": true }
application/xml, text/xml
Sample:
<driver xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSalesServer.Models"> <active>true</active> <clientCode>sample string 9</clientCode> <id>1</id> <id_client>8</id_client> <id_saler>2</id_saler> <id_saler_branch>3</id_saler_branch> <id_server>4</id_server> <name>sample string 5</name> <phone>sample string 6</phone> <plate>sample string 7</plate> </driver>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |