POST api/v1/general/instrumentPriceList

Request Information

URI Parameters

None.

Body Parameters

InstrumentsPriceListModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

Max length: 100

InstrumentPriceListId

integer

None.

DiscountOnPriceList

decimal number

None.

IsDefaultPriceList

boolean

Required

YearId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "InstrumentPriceListId": 1,
  "DiscountOnPriceList": 1.0,
  "IsDefaultPriceList": true,
  "YearId": 1
}

application/xml, text/xml

Sample:
<InstrumentsPriceListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <DiscountOnPriceList>1</DiscountOnPriceList>
  <Id>1</Id>
  <InstrumentPriceListId>1</InstrumentPriceListId>
  <IsDefaultPriceList>true</IsDefaultPriceList>
  <Name>sample string 2</Name>
  <YearId>1</YearId>
</InstrumentsPriceListModel>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>