POST api/ReferenceData/PriceInstrument/CreateOrUpdate

Request Information

URI Parameters

None.

Body Parameters

Collection of PriceInstrumentEntityModel
NameDescriptionTypeAdditional information
Abbreviation

string

None.

BookId

integer

None.

CounterPartyId

integer

None.

CurrencyId

integer

None.

ExchangeSymbol

string

None.

ExternalReferenceNumber

string

None.

ExtractPrices

boolean

None.

IndexPriceInstrumentId

integer

None.

IndexPriceTypeCvid

integer

None.

IsActive

boolean

None.

LocationId

integer

None.

Name

string

None.

PriceInstrumentId

integer

None.

PricePublisherId

integer

None.

ProductId

integer

None.

PropertyListId

integer

None.

SourceExtractedDateTime

date

None.

SourceId

integer

None.

SourceVerb

string

None.

ToCurrencyId

integer

None.

UnitofMeasureId

integer

None.

Extras

Dictionary of string [key] and Object [value]

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Abbreviation": "sample string 1",
    "BookId": 1,
    "CounterPartyId": 1,
    "CurrencyId": 1,
    "ExchangeSymbol": "sample string 2",
    "ExternalReferenceNumber": "sample string 3",
    "ExtractPrices": true,
    "IndexPriceInstrumentId": 1,
    "IndexPriceTypeCvid": 1,
    "IsActive": true,
    "LocationId": 1,
    "Name": "sample string 6",
    "PriceInstrumentId": 7,
    "PricePublisherId": 8,
    "ProductId": 1,
    "PropertyListId": 1,
    "SourceExtractedDateTime": "2025-12-10T08:28:13.9028194-06:00",
    "SourceId": 1,
    "SourceVerb": "sample string 9",
    "ToCurrencyId": 1,
    "UnitofMeasureId": 1,
    "Extras": {
      "sample string 1": {},
      "sample string 3": {}
    }
  },
  {
    "Abbreviation": "sample string 1",
    "BookId": 1,
    "CounterPartyId": 1,
    "CurrencyId": 1,
    "ExchangeSymbol": "sample string 2",
    "ExternalReferenceNumber": "sample string 3",
    "ExtractPrices": true,
    "IndexPriceInstrumentId": 1,
    "IndexPriceTypeCvid": 1,
    "IsActive": true,
    "LocationId": 1,
    "Name": "sample string 6",
    "PriceInstrumentId": 7,
    "PricePublisherId": 8,
    "ProductId": 1,
    "PropertyListId": 1,
    "SourceExtractedDateTime": "2025-12-10T08:28:13.9028194-06:00",
    "SourceId": 1,
    "SourceVerb": "sample string 9",
    "ToCurrencyId": 1,
    "UnitofMeasureId": 1,
    "Extras": {
      "sample string 1": {},
      "sample string 3": {}
    }
  }
]

text/html

Sample:
[{"Abbreviation":"sample string 1","BookId":1,"CounterPartyId":1,"CurrencyId":1,"ExchangeSymbol":"sample string 2","ExternalReferenceNumber":"sample string 3","ExtractPrices":true,"IndexPriceInstrumentId":1,"IndexPriceTypeCvid":1,"IsActive":true,"LocationId":1,"Name":"sample string 6","PriceInstrumentId":7,"PricePublisherId":8,"ProductId":1,"PropertyListId":1,"SourceExtractedDateTime":"2025-12-10T08:28:13.9028194-06:00","SourceId":1,"SourceVerb":"sample string 9","ToCurrencyId":1,"UnitofMeasureId":1,"Extras":{"sample string 1":{},"sample string 3":{}}},{"Abbreviation":"sample string 1","BookId":1,"CounterPartyId":1,"CurrencyId":1,"ExchangeSymbol":"sample string 2","ExternalReferenceNumber":"sample string 3","ExtractPrices":true,"IndexPriceInstrumentId":1,"IndexPriceTypeCvid":1,"IsActive":true,"LocationId":1,"Name":"sample string 6","PriceInstrumentId":7,"PricePublisherId":8,"ProductId":1,"PropertyListId":1,"SourceExtractedDateTime":"2025-12-10T08:28:13.9028194-06:00","SourceId":1,"SourceVerb":"sample string 9","ToCurrencyId":1,"UnitofMeasureId":1,"Extras":{"sample string 1":{},"sample string 3":{}}}]

application/xml, text/xml

Sample:
<ArrayOfPriceInstrumentEntityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.Domain.CoreModel.DtoClasses">
  <PriceInstrumentEntityModel>
    <Extras xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.Domain.CoreModel.Extensibility">
      <d3p1:KeyValueOfstringanyType>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value />
      </d3p1:KeyValueOfstringanyType>
      <d3p1:KeyValueOfstringanyType>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value />
      </d3p1:KeyValueOfstringanyType>
    </Extras>
    <Abbreviation>sample string 1</Abbreviation>
    <BookId>1</BookId>
    <CounterPartyId>1</CounterPartyId>
    <CurrencyId>1</CurrencyId>
    <ExchangeSymbol>sample string 2</ExchangeSymbol>
    <ExternalReferenceNumber>sample string 3</ExternalReferenceNumber>
    <ExtractPrices>true</ExtractPrices>
    <IndexPriceInstrumentId>1</IndexPriceInstrumentId>
    <IndexPriceTypeCvid>1</IndexPriceTypeCvid>
    <IsActive>true</IsActive>
    <LocationId>1</LocationId>
    <Name>sample string 6</Name>
    <PriceInstrumentId>7</PriceInstrumentId>
    <PricePublisherId>8</PricePublisherId>
    <ProductId>1</ProductId>
    <PropertyListId>1</PropertyListId>
    <SourceExtractedDateTime>2025-12-10T08:28:13.9028194-06:00</SourceExtractedDateTime>
    <SourceId>1</SourceId>
    <SourceVerb>sample string 9</SourceVerb>
    <ToCurrencyId>1</ToCurrencyId>
    <UnitofMeasureId>1</UnitofMeasureId>
  </PriceInstrumentEntityModel>
  <PriceInstrumentEntityModel>
    <Extras xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.Domain.CoreModel.Extensibility">
      <d3p1:KeyValueOfstringanyType>
        <d3p1:Key>sample string 1</d3p1:Key>
        <d3p1:Value />
      </d3p1:KeyValueOfstringanyType>
      <d3p1:KeyValueOfstringanyType>
        <d3p1:Key>sample string 3</d3p1:Key>
        <d3p1:Value />
      </d3p1:KeyValueOfstringanyType>
    </Extras>
    <Abbreviation>sample string 1</Abbreviation>
    <BookId>1</BookId>
    <CounterPartyId>1</CounterPartyId>
    <CurrencyId>1</CurrencyId>
    <ExchangeSymbol>sample string 2</ExchangeSymbol>
    <ExternalReferenceNumber>sample string 3</ExternalReferenceNumber>
    <ExtractPrices>true</ExtractPrices>
    <IndexPriceInstrumentId>1</IndexPriceInstrumentId>
    <IndexPriceTypeCvid>1</IndexPriceTypeCvid>
    <IsActive>true</IsActive>
    <LocationId>1</LocationId>
    <Name>sample string 6</Name>
    <PriceInstrumentId>7</PriceInstrumentId>
    <PricePublisherId>8</PricePublisherId>
    <ProductId>1</ProductId>
    <PropertyListId>1</PropertyListId>
    <SourceExtractedDateTime>2025-12-10T08:28:13.9028194-06:00</SourceExtractedDateTime>
    <SourceId>1</SourceId>
    <SourceVerb>sample string 9</SourceVerb>
    <ToCurrencyId>1</ToCurrencyId>
    <UnitofMeasureId>1</UnitofMeasureId>
  </PriceInstrumentEntityModel>
</ArrayOfPriceInstrumentEntityModel>

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 'IEnumerable`1'.

Response Information

Resource Description

integer

Response 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>