POST api/Industry/Save
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
Industry| Name | Description | Type | Additional information |
|---|---|---|---|
| IndustryId | integer |
None. |
|
| IndustryName | string |
None. |
|
| CompanyAlphaSet | string |
None. |
|
| LongTitle | string |
None. |
|
| InheritSectorsFrom | integer |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{
"IndustryId": 1,
"IndustryName": "sample string 2",
"CompanyAlphaSet": "sample string 3",
"LongTitle": "sample string 4",
"InheritSectorsFrom": 5
}
application/xml, text/xml
Sample:
<Industry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers"> <CompanyAlphaSet>sample string 3</CompanyAlphaSet> <IndustryId>1</IndustryId> <IndustryName>sample string 2</IndustryName> <InheritSectorsFrom>5</InheritSectorsFrom> <LongTitle>sample string 4</LongTitle> </Industry>
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>