POST api/Regions
Request Information
URI Parameters
None.
Body Parameters
regionName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
id_server | integer |
None. |
|
name | string |
None. |
|
price | decimal number |
None. |
|
kilometer_min | decimal number |
None. |
|
kilometer_max | decimal number |
None. |
|
id_saler | integer |
None. |
|
id_saler_branch | integer |
None. |
|
country | string |
None. |
|
country_state | string |
None. |
|
active | boolean |
None. |
|
primary_currency | boolean |
None. |
|
exchange_rate | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "id_server": 2, "name": "sample string 3", "price": 4.1, "kilometer_min": 5.1, "kilometer_max": 6.1, "id_saler": 7, "id_saler_branch": 8, "country": "sample string 9", "country_state": "sample string 10", "active": true, "primary_currency": true, "exchange_rate": 13.1 }
application/xml, text/xml
Sample:
<region xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSalesServer.Models"> <active>true</active> <country>sample string 9</country> <country_state>sample string 10</country_state> <exchange_rate>13.1</exchange_rate> <id>1</id> <id_saler>7</id_saler> <id_saler_branch>8</id_saler_branch> <id_server>2</id_server> <kilometer_max>6.1</kilometer_max> <kilometer_min>5.1</kilometer_min> <name>sample string 3</name> <price>4.1</price> <primary_currency>true</primary_currency> </region>
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. |