GET Territory/Base/All

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Territory
NameDescriptionTypeAdditional information
TerritoryCode

string

None.

Name

string

None.

AreaCode

string

None.

BusinessUnitCode

string

None.

LastMaintenanceName

string

None.

LastMaintenanceDate

date

None.

Region

string

None.

ManagerName

string

None.

DistrictCode

string

None.

CountryCode

string

None.

CompanyCode

string

None.

Area

Area

None.

BusinessUnit

BusinessUnit

None.

ChangeTracker

ObjectChangeTracker

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "TerritoryCode": "sample string 1",
    "Name": "sample string 2",
    "AreaCode": "sample string 3",
    "BusinessUnitCode": "sample string 1",
    "LastMaintenanceName": "sample string 5",
    "LastMaintenanceDate": "2024-12-09T17:24:30.5653723+00:00",
    "Region": "sample string 7",
    "ManagerName": "sample string 8",
    "DistrictCode": "sample string 9",
    "CountryCode": "sample string 10",
    "CompanyCode": "sample string 11",
    "BusinessUnit": {
      "$id": "2",
      "BusinessUnitCode": "sample string 1",
      "Name": "sample string 2",
      "LastMaintenanceName": "sample string 3",
      "LastMaintenanceDate": "2024-12-09T17:24:30.5761648+00:00",
      "LegalEntityId": 1.0,
      "SortOrder": 1,
      "CompanyCode": "sample string 5",
      "CountryCode": "sample string 6",
      "Area": [],
      "ExperimentBusinessUnitArea": [],
      "SeedRequest": [],
      "Territory": [
        {
          "$ref": "1"
        }
      ],
      "ChangeTracker": {
        "$id": "3",
        "State": 2,
        "ObjectsRemovedFromCollectionProperties": {},
        "OriginalValues": {},
        "ExtendedProperties": {},
        "ObjectsAddedToCollectionProperties": {
          "Territory": [
            {
              "$ref": "1"
            }
          ]
        }
      }
    },
    "ChangeTracker": {
      "$id": "4",
      "State": 2,
      "ObjectsRemovedFromCollectionProperties": {},
      "OriginalValues": {},
      "ExtendedProperties": {},
      "ObjectsAddedToCollectionProperties": {}
    }
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTerritory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <Territory z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <Area i:nil="true" />
    <AreaCode>sample string 3</AreaCode>
    <BusinessUnit z:Id="i2">
      <Area />
      <BusinessUnitCode>sample string 1</BusinessUnitCode>
      <ChangeTracker z:Id="i3">
        <ExtendedProperties />
        <ObjectsAddedToCollectionProperties>
          <AddedObjectsForProperty>
            <CollectionPropertyName>Territory</CollectionPropertyName>
            <AddedObjects>
              <ObjectValue z:Ref="i1" />
            </AddedObjects>
          </AddedObjectsForProperty>
        </ObjectsAddedToCollectionProperties>
        <ObjectsRemovedFromCollectionProperties />
        <OriginalValues />
        <State>Added</State>
      </ChangeTracker>
      <CompanyCode>sample string 5</CompanyCode>
      <CountryCode>sample string 6</CountryCode>
      <ExperimentBusinessUnitArea />
      <LastMaintenanceDate>2024-12-09T17:24:30.5761648+00:00</LastMaintenanceDate>
      <LastMaintenanceName>sample string 3</LastMaintenanceName>
      <LegalEntityId>1</LegalEntityId>
      <Name>sample string 2</Name>
      <SeedRequest />
      <SortOrder>1</SortOrder>
      <Territory>
        <Territory z:Ref="i1" />
      </Territory>
    </BusinessUnit>
    <BusinessUnitCode>sample string 1</BusinessUnitCode>
    <ChangeTracker z:Id="i4">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties />
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <CompanyCode>sample string 11</CompanyCode>
    <CountryCode>sample string 10</CountryCode>
    <DistrictCode>sample string 9</DistrictCode>
    <LastMaintenanceDate>2024-12-09T17:24:30.5653723+00:00</LastMaintenanceDate>
    <LastMaintenanceName>sample string 5</LastMaintenanceName>
    <ManagerName>sample string 8</ManagerName>
    <Name>sample string 2</Name>
    <Region>sample string 7</Region>
    <TerritoryCode>sample string 1</TerritoryCode>
  </Territory>
  <Territory z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfTerritory>