POST api/Coding/InsertOfficeSector?officeId={officeId}&userid={userid}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
officeId | integer |
Required |
|
userid | integer |
Default value is 0 |
Body Parameters
Collection of OfficeSectorModelName | Description | Type | Additional information |
---|---|---|---|
OfficeID | integer |
None. |
|
SectorId | integer |
None. |
|
SectorName | string |
None. |
|
TownID | integer |
None. |
|
TownName | string |
None. |
|
Alloted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[ { "OfficeID": 1, "SectorId": 2, "SectorName": "sample string 3", "TownID": 4, "TownName": "sample string 5", "Alloted": true }, { "OfficeID": 1, "SectorId": 2, "SectorName": "sample string 3", "TownID": 4, "TownName": "sample string 5", "Alloted": true } ]
application/xml, text/xml
Sample:
<ArrayOfOfficeSectorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models"> <OfficeSectorModel> <Alloted>true</Alloted> <OfficeID>1</OfficeID> <SectorId>2</SectorId> <SectorName>sample string 3</SectorName> <TownID>4</TownID> <TownName>sample string 5</TownName> </OfficeSectorModel> <OfficeSectorModel> <Alloted>true</Alloted> <OfficeID>1</OfficeID> <SectorId>2</SectorId> <SectorName>sample string 3</SectorName> <TownID>4</TownID> <TownName>sample string 5</TownName> </OfficeSectorModel> </ArrayOfOfficeSectorModel>
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. |