POST api/Sector/SaveSector2Company
Passing in a 0 value for c.Id will create a new record, while a c.Id > 0 will update an existing record if a match exists
Request Information
URI Parameters
None.
Body Parameters
CompanySectorsName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
CompanyId | integer |
None. |
|
SectorId | integer |
None. |
|
Value | string |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "Id": 1, "CompanyId": 2, "SectorId": 3, "Value": "sample string 4" }
application/xml, text/xml
Sample:
<CompanySectors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers"> <CompanyId>2</CompanyId> <Id>1</Id> <SectorId>3</SectorId> <Value>sample string 4</Value> </CompanySectors>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
new id of newly created record or id of record updated
integerResponse Formats
application/json, text/json, text/html
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>