POST api/Coding/InsertSector?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
SectorModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SectorId | integer |
None. |
|
| TownId | integer |
None. |
|
| SectorOrder | integer |
None. |
|
| SectorName | string |
None. |
|
| RegionId | integer |
None. |
|
| AreaId | integer |
None. |
|
| Selected | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"SectorId": 1,
"TownId": 2,
"SectorOrder": 3,
"SectorName": "sample string 4",
"RegionId": 5,
"AreaId": 6,
"Selected": true
}
application/xml, text/xml
Sample:
<SectorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models"> <AreaId>6</AreaId> <RegionId>5</RegionId> <SectorId>1</SectorId> <SectorName>sample string 4</SectorName> <SectorOrder>3</SectorOrder> <Selected>true</Selected> <TownId>2</TownId> </SectorModel>
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. |