POST api/ReferenceData/Location/CreateOrUpdate

Request Information

URI Parameters

None.

Body Parameters

Collection of LocationEntityModel
NameDescriptionTypeAdditional information
SourceString

string

None.

Abbreviation

string

None.

BookId

integer

None.

ContactInfoId

integer

None.

CountryCode

string

None.

IsActive

boolean

None.

IsPricingLocation

boolean

None.

Latitude

decimal number

None.

LocationId

integer

None.

LocationTypeCvId

integer

None.

Longitude

decimal number

None.

Name

string

None.

PropertyListId

integer

None.

SourceExtractedDateTime

date

None.

SourceId

integer

None.

SourceId2

integer

None.

SourceId3

integer

None.

SourceSystemId

integer

None.

SourceVerb

string

None.

StateProvince

string

None.

TerminalName

string

None.

TimeZoneId

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",
    "BookId": 1,
    "ContactInfoId": 1,
    "CountryCode": "sample string 3",
    "IsActive": true,
    "IsPricingLocation": true,
    "Latitude": 1.0,
    "LocationId": 6,
    "LocationTypeCvId": 1,
    "Longitude": 1.0,
    "Name": "sample string 7",
    "PropertyListId": 1,
    "SourceExtractedDateTime": "2025-12-10T08:23:10.0797002-06:00",
    "SourceId": 1,
    "SourceId2": 1,
    "SourceId3": 1,
    "SourceSystemId": 1,
    "SourceVerb": "sample string 8",
    "StateProvince": "sample string 9",
    "TerminalName": "sample string 10",
    "TimeZoneId": "sample string 11",
    "Extras": {
      "sample string 1": {},
      "sample string 3": {}
    }
  },
  {
    "SourceString": "sample string 1",
    "Abbreviation": "sample string 2",
    "BookId": 1,
    "ContactInfoId": 1,
    "CountryCode": "sample string 3",
    "IsActive": true,
    "IsPricingLocation": true,
    "Latitude": 1.0,
    "LocationId": 6,
    "LocationTypeCvId": 1,
    "Longitude": 1.0,
    "Name": "sample string 7",
    "PropertyListId": 1,
    "SourceExtractedDateTime": "2025-12-10T08:23:10.0797002-06:00",
    "SourceId": 1,
    "SourceId2": 1,
    "SourceId3": 1,
    "SourceSystemId": 1,
    "SourceVerb": "sample string 8",
    "StateProvince": "sample string 9",
    "TerminalName": "sample string 10",
    "TimeZoneId": "sample string 11",
    "Extras": {
      "sample string 1": {},
      "sample string 3": {}
    }
  }
]

text/html

Sample:
[{"SourceString":"sample string 1","Abbreviation":"sample string 2","BookId":1,"ContactInfoId":1,"CountryCode":"sample string 3","IsActive":true,"IsPricingLocation":true,"Latitude":1.0,"LocationId":6,"LocationTypeCvId":1,"Longitude":1.0,"Name":"sample string 7","PropertyListId":1,"SourceExtractedDateTime":"2025-12-10T08:23:10.0797002-06:00","SourceId":1,"SourceId2":1,"SourceId3":1,"SourceSystemId":1,"SourceVerb":"sample string 8","StateProvince":"sample string 9","TerminalName":"sample string 10","TimeZoneId":"sample string 11","Extras":{"sample string 1":{},"sample string 3":{}}},{"SourceString":"sample string 1","Abbreviation":"sample string 2","BookId":1,"ContactInfoId":1,"CountryCode":"sample string 3","IsActive":true,"IsPricingLocation":true,"Latitude":1.0,"LocationId":6,"LocationTypeCvId":1,"Longitude":1.0,"Name":"sample string 7","PropertyListId":1,"SourceExtractedDateTime":"2025-12-10T08:23:10.0797002-06:00","SourceId":1,"SourceId2":1,"SourceId3":1,"SourceSystemId":1,"SourceVerb":"sample string 8","StateProvince":"sample string 9","TerminalName":"sample string 10","TimeZoneId":"sample string 11","Extras":{"sample string 1":{},"sample string 3":{}}}]

application/xml, text/xml

Sample:
<ArrayOfLocationEntityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gravitate.Domain.CoreModel.DtoClasses">
  <LocationEntityModel>
    <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>
    <BookId>1</BookId>
    <ContactInfoId>1</ContactInfoId>
    <CountryCode>sample string 3</CountryCode>
    <IsActive>true</IsActive>
    <IsPricingLocation>true</IsPricingLocation>
    <Latitude>1</Latitude>
    <LocationId>6</LocationId>
    <LocationTypeCvId>1</LocationTypeCvId>
    <Longitude>1</Longitude>
    <Name>sample string 7</Name>
    <PropertyListId>1</PropertyListId>
    <SourceExtractedDateTime>2025-12-10T08:23:10.0797002-06:00</SourceExtractedDateTime>
    <SourceId>1</SourceId>
    <SourceId2>1</SourceId2>
    <SourceId3>1</SourceId3>
    <SourceString>sample string 1</SourceString>
    <SourceSystemId>1</SourceSystemId>
    <SourceVerb>sample string 8</SourceVerb>
    <StateProvince>sample string 9</StateProvince>
    <TerminalName>sample string 10</TerminalName>
    <TimeZoneId>sample string 11</TimeZoneId>
  </LocationEntityModel>
  <LocationEntityModel>
    <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>
    <BookId>1</BookId>
    <ContactInfoId>1</ContactInfoId>
    <CountryCode>sample string 3</CountryCode>
    <IsActive>true</IsActive>
    <IsPricingLocation>true</IsPricingLocation>
    <Latitude>1</Latitude>
    <LocationId>6</LocationId>
    <LocationTypeCvId>1</LocationTypeCvId>
    <Longitude>1</Longitude>
    <Name>sample string 7</Name>
    <PropertyListId>1</PropertyListId>
    <SourceExtractedDateTime>2025-12-10T08:23:10.0797002-06:00</SourceExtractedDateTime>
    <SourceId>1</SourceId>
    <SourceId2>1</SourceId2>
    <SourceId3>1</SourceId3>
    <SourceString>sample string 1</SourceString>
    <SourceSystemId>1</SourceSystemId>
    <SourceVerb>sample string 8</SourceVerb>
    <StateProvince>sample string 9</StateProvince>
    <TerminalName>sample string 10</TerminalName>
    <TimeZoneId>sample string 11</TimeZoneId>
  </LocationEntityModel>
</ArrayOfLocationEntityModel>

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>