POST v1/Sublines

Insert or Update a Subline

Request Information

URI Parameters

None.

Body Parameters

Subline to be upserted

SublineDTO
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

IsSystem

boolean

None.

CodeValue

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "IsSystem": true,
  "CodeValue": "sample string 4"
}

application/xml, text/xml

Sample:
<SublineDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <CodeValue>sample string 4</CodeValue>
  <ID>1</ID>
  <IsSystem>true</IsSystem>
  <Name>sample string 2</Name>
</SublineDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SublineDTO'.

Response Information

Resource Description

Updated subline

SublineDTO
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

IsSystem

boolean

None.

CodeValue

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "IsSystem": true,
  "CodeValue": "sample string 4"
}

application/xml, text/xml

Sample:
<SublineDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <CodeValue>sample string 4</CodeValue>
  <ID>1</ID>
  <IsSystem>true</IsSystem>
  <Name>sample string 2</Name>
</SublineDTO>