POST api/Coding/InsertTowns?isOpen={isOpen}&userId={userId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| isOpen | boolean |
Default value is False |
|
| userId | integer |
Default value is 0 |
Body Parameters
TownModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TownId | integer |
None. |
|
| TownName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"TownId": 1,
"TownName": "sample string 2"
}
application/xml, text/xml
Sample:
<TownModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models"> <TownId>1</TownId> <TownName>sample string 2</TownName> </TownModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | 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. |