POST StateProvince/GetStatesByCountryCode

Request Information

URI Parameters

None.

Body Parameters

string

Request Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of StateProvince
NameDescriptionTypeAdditional information
Code

string

None.

Name

string

None.

CountryCode

string

None.

AOIId

string

None.

ChangeTracker

ObjectChangeTracker

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Code": "sample string 1",
    "Name": "sample string 2",
    "CountryCode": "sample string 3",
    "AOIId": "sample string 4",
    "ChangeTracker": {
      "$id": "2",
      "State": 2,
      "ObjectsRemovedFromCollectionProperties": {},
      "OriginalValues": {},
      "ExtendedProperties": {},
      "ObjectsAddedToCollectionProperties": {}
    }
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStateProvince xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <StateProvince z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <AOIId>sample string 4</AOIId>
    <ChangeTracker z:Id="i2">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties />
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <Code>sample string 1</Code>
    <CountryCode>sample string 3</CountryCode>
    <Name>sample string 2</Name>
  </StateProvince>
  <StateProvince z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfStateProvince>