POST api/ReferenceData/CounterParty/CreateOrUpdate

Request Information

URI Parameters

None.

Body Parameters

Collection of CounterPartyEntityModel
NameDescriptionTypeAdditional information
SourceString

string

None.

Abbreviation

string

None.

CategoryCvId

integer

None.

CounterPartyId

integer

None.

Domain

string

None.

HasCustomerPortal

boolean

None.

HasCustomerPortalModifiedDateTime

date

None.

HasTradeRelationship

boolean

None.

IsActive

boolean

None.

Name

string

None.

NeedsFullSync

boolean

None.

ParentCounterPartyId

integer

None.

PrimaryColleagueId

integer

None.

PrimaryInternalCounterpartyId

integer

None.

PropertyListId

integer

None.

SourceExtractedDateTime

date

None.

SourceId

integer

None.

SourceId2

integer

None.

SourceId3

integer

None.

SourceSystemId

integer

None.

SourceVerb

string

None.

Extras

Dictionary of string [key] and Object [value]

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "SourceString": "sample string 1",
    "Abbreviation": "sample string 2",
    "CategoryCvId": 1,
    "CounterPartyId": 3,
    "Domain": "sample string 4",
    "HasCustomerPortal": true,
    "HasCustomerPortalModifiedDateTime": "2025-12-10T08:23:10.674837-06:00",
    "HasTradeRelationship": true,
    "IsActive": true,
    "Name": "sample string 8",
    "NeedsFullSync": true,
    "ParentCounterPartyId": 1,
    "PrimaryColleagueId": 1,
    "PrimaryInternalCounterpartyId": 1,
    "PropertyListId": 1,
    "SourceExtractedDateTime": "2025-12-10T08:23:10.674837-06:00",
    "SourceId": 1,
    "SourceId2": 1,
    "SourceId3": 1,
    "SourceSystemId": 1,
    "SourceVerb": "sample string 10",
    "Extras": {
      "sample string 1": {},
      "sample string 3": {}
    }
  },
  {
    "SourceString": "sample string 1",
    "Abbreviation": "sample string 2",
    "CategoryCvId": 1,
    "CounterPartyId": 3,
    "Domain": "sample string 4",
    "HasCustomerPortal": true,
    "HasCustomerPortalModifiedDateTime": "2025-12-10T08:23:10.674837-06:00",
    "HasTradeRelationship": true,
    "IsActive": true,
    "Name": "sample string 8",
    "NeedsFullSync": true,
    "ParentCounterPartyId": 1,
    "PrimaryColleagueId": 1,
    "PrimaryInternalCounterpartyId": 1,
    "PropertyListId": 1,
    "SourceExtractedDateTime": "2025-12-10T08:23:10.674837-06:00",
    "SourceId": 1,
    "SourceId2": 1,
    "SourceId3": 1,
    "SourceSystemId": 1,
    "SourceVerb": "sample string 10",
    "Extras": {
      "sample string 1": {},
      "sample string 3": {}
    }
  }
]

text/html

Sample:
[{"SourceString":"sample string 1","Abbreviation":"sample string 2","CategoryCvId":1,"CounterPartyId":3,"Domain":"sample string 4","HasCustomerPortal":true,"HasCustomerPortalModifiedDateTime":"2025-12-10T08:23:10.674837-06:00","HasTradeRelationship":true,"IsActive":true,"Name":"sample string 8","NeedsFullSync":true,"ParentCounterPartyId":1,"PrimaryColleagueId":1,"PrimaryInternalCounterpartyId":1,"PropertyListId":1,"SourceExtractedDateTime":"2025-12-10T08:23:10.674837-06:00","SourceId":1,"SourceId2":1,"SourceId3":1,"SourceSystemId":1,"SourceVerb":"sample string 10","Extras":{"sample string 1":{},"sample string 3":{}}},{"SourceString":"sample string 1","Abbreviation":"sample string 2","CategoryCvId":1,"CounterPartyId":3,"Domain":"sample string 4","HasCustomerPortal":true,"HasCustomerPortalModifiedDateTime":"2025-12-10T08:23:10.674837-06:00","HasTradeRelationship":true,"IsActive":true,"Name":"sample string 8","NeedsFullSync":true,"ParentCounterPartyId":1,"PrimaryColleagueId":1,"PrimaryInternalCounterpartyId":1,"PropertyListId":1,"SourceExtractedDateTime":"2025-12-10T08:23:10.674837-06:00","SourceId":1,"SourceId2":1,"SourceId3":1,"SourceSystemId":1,"SourceVerb":"sample string 10","Extras":{"sample string 1":{},"sample string 3":{}}}]

application/xml, text/xml

Sample:
<ArrayOfCounterPartyEntityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.Domain.CoreModel.DtoClasses">
  <CounterPartyEntityModel>
    <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 2</Abbreviation>
    <CategoryCvId>1</CategoryCvId>
    <CounterPartyId>3</CounterPartyId>
    <Domain>sample string 4</Domain>
    <HasCustomerPortal>true</HasCustomerPortal>
    <HasCustomerPortalModifiedDateTime>2025-12-10T08:23:10.674837-06:00</HasCustomerPortalModifiedDateTime>
    <HasTradeRelationship>true</HasTradeRelationship>
    <IsActive>true</IsActive>
    <Name>sample string 8</Name>
    <NeedsFullSync>true</NeedsFullSync>
    <ParentCounterPartyId>1</ParentCounterPartyId>
    <PrimaryColleagueId>1</PrimaryColleagueId>
    <PrimaryInternalCounterpartyId>1</PrimaryInternalCounterpartyId>
    <PropertyListId>1</PropertyListId>
    <SourceExtractedDateTime>2025-12-10T08:23:10.674837-06:00</SourceExtractedDateTime>
    <SourceId>1</SourceId>
    <SourceId2>1</SourceId2>
    <SourceId3>1</SourceId3>
    <SourceString>sample string 1</SourceString>
    <SourceSystemId>1</SourceSystemId>
    <SourceVerb>sample string 10</SourceVerb>
  </CounterPartyEntityModel>
  <CounterPartyEntityModel>
    <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 2</Abbreviation>
    <CategoryCvId>1</CategoryCvId>
    <CounterPartyId>3</CounterPartyId>
    <Domain>sample string 4</Domain>
    <HasCustomerPortal>true</HasCustomerPortal>
    <HasCustomerPortalModifiedDateTime>2025-12-10T08:23:10.674837-06:00</HasCustomerPortalModifiedDateTime>
    <HasTradeRelationship>true</HasTradeRelationship>
    <IsActive>true</IsActive>
    <Name>sample string 8</Name>
    <NeedsFullSync>true</NeedsFullSync>
    <ParentCounterPartyId>1</ParentCounterPartyId>
    <PrimaryColleagueId>1</PrimaryColleagueId>
    <PrimaryInternalCounterpartyId>1</PrimaryInternalCounterpartyId>
    <PropertyListId>1</PropertyListId>
    <SourceExtractedDateTime>2025-12-10T08:23:10.674837-06:00</SourceExtractedDateTime>
    <SourceId>1</SourceId>
    <SourceId2>1</SourceId2>
    <SourceId3>1</SourceId3>
    <SourceString>sample string 1</SourceString>
    <SourceSystemId>1</SourceSystemId>
    <SourceVerb>sample string 10</SourceVerb>
  </CounterPartyEntityModel>
</ArrayOfCounterPartyEntityModel>

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>