POST v1/Sublines

Insert or Update a Subline

Request Information

URI Parameters

None.

Body Parameters

Subline to be upserted

SublineDTO
NameDescriptionTypeAdditional information
ID

Id of the subline

integer

None.

Name

Name of the subline

string

None.

IsSystem

Signifies whether the subline is system

boolean

None.

CodeValue

CodeValue of the subline

string

None.

Request Formats

application/json, text/json

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

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'.

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>

Response Information

Resource Description

Updated subline

SublineDTO
NameDescriptionTypeAdditional information
ID

Id of the subline

integer

None.

Name

Name of the subline

string

None.

IsSystem

Signifies whether the subline is system

boolean

None.

CodeValue

CodeValue of the subline

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>