POST api/Subsegment/SaveSubsegments
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
SubsegmentsName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
DisplayName | string |
None. |
|
SegmentId | integer |
None. |
|
Comparable | boolean |
None. |
|
SortOrder | integer |
None. |
|
Display | boolean |
None. |
|
SectorIdReference | string |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "Id": 1, "Name": "sample string 2", "DisplayName": "sample string 3", "SegmentId": 4, "Comparable": true, "SortOrder": 6, "Display": true, "SectorIdReference": "sample string 8" }
application/xml, text/xml
Sample:
<Subsegments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers"> <Comparable>true</Comparable> <Display>true</Display> <DisplayName>sample string 3</DisplayName> <Id>1</Id> <Name>sample string 2</Name> <SectorIdReference>sample string 8</SectorIdReference> <SegmentId>4</SegmentId> <SortOrder>6</SortOrder> </Subsegments>
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>