POST UnitOfMeasureConversion/GetCachedUnitOfMeasureConversions

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of UnitOfMeasureConversion
NameDescriptionTypeAdditional information
FromUnitOfMeasureId

integer

None.

ToUnitOfMeasureId

integer

None.

ConversionFactor

decimal number

None.

ConversionFormula

string

None.

LastMaintenanceName

string

None.

LastMaintenanceDate

date

None.

UnitOfMeasure

UnitOfMeasure

None.

UnitOfMeasure1

UnitOfMeasure

None.

ChangeTracker

ObjectChangeTracker

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "FromUnitOfMeasureId": 1,
    "ToUnitOfMeasureId": 1,
    "ConversionFactor": 3.0,
    "ConversionFormula": "sample string 4",
    "LastMaintenanceName": "sample string 5",
    "LastMaintenanceDate": "2024-12-10T17:04:04.9923689+00:00",
    "UnitOfMeasure1": {
      "$id": "2",
      "UnitOfMeasureId": 1,
      "Name": "sample string 2",
      "Type": "sample string 3",
      "Description": "sample string 4",
      "LastMaintenanceName": "sample string 5",
      "LastMaintenanceDate": "2024-12-10T17:04:05.0034678+00:00",
      "Trait": [
        {
          "$id": "3",
          "TraitId": 5,
          "CropCode": "sample string 6",
          "Name": "sample string 3",
          "Description": "sample string 4",
          "UnitOfMeasureId": 1,
          "LowerBound": 1.1,
          "UpperBound": 1.1,
          "ValueSetId": 1,
          "ValueSetType": "sample string 6",
          "LastMaintenanceName": "sample string 7",
          "LastMaintenanceDate": "2024-12-10T17:04:05.0034678+00:00",
          "UnitOfMeasure": {
            "$ref": "2"
          },
          "TraitDetail": {
            "$id": "4",
            "DefaultUnitOfMeasureId": 1,
            "CurrentUnitOfMeasureId": 2,
            "ValidUnitsOfMeasure": [
              {
                "$ref": "2"
              },
              {
                "$ref": "2"
              }
            ],
            "PreferredUnitOfMeasure": {
              "$ref": "2"
            },
            "TraitId": 5,
            "CropCode": "sample string 6",
            "TraitDescription": "sample string 7",
            "LowerBound": 1.1,
            "UpperBound": 1.1,
            "IsCustom": true,
            "IsBrandProduct": true,
            "IsStripLongList": true,
            "IsStripShortList": true,
            "IsStripDefault": true,
            "IsLocationLongList": true,
            "IsLocationShortList": true,
            "IsLocationDefault": true,
            "IsFactor": true,
            "LastMaintenanceName": "sample string 17",
            "LastMaintenanceDate": "2024-12-10T17:04:05.0034678+00:00",
            "UnitOfMeasureId": 1,
            "IsFactorDefault": true,
            "TDERequired": true,
            "HarvestMeasurement": 1.1,
            "DefaultSortOrder": 1,
            "IsObservationReplicated": true,
            "IsReadOnly": true,
            "Precision": 1,
            "IsASC": true,
            "IsActive": true,
            "TraitOwner": "sample string 21",
            "IsUsedTrials": true,
            "IsUsedPE": true,
            "Category": "sample string 22",
            "IsSeries": true,
            "UnitOfMeasure": {
              "$ref": "2"
            },
            "Trait": {
              "$ref": "3"
            },
            "ChangeTracker": {
              "$id": "5",
              "State": 2,
              "ObjectsRemovedFromCollectionProperties": {},
              "OriginalValues": {},
              "ExtendedProperties": {},
              "ObjectsAddedToCollectionProperties": {}
            }
          },
          "ChangeTracker": {
            "$ref": "5"
          }
        }
      ],
      "TraitDetail": [
        {
          "$ref": "4"
        }
      ],
      "UnitOfMeasureConversion": [],
      "UnitOfMeasureConversion1": [
        {
          "$ref": "1"
        }
      ],
      "ChangeTracker": {
        "$id": "6",
        "State": 2,
        "ObjectsRemovedFromCollectionProperties": {},
        "OriginalValues": {},
        "ExtendedProperties": {},
        "ObjectsAddedToCollectionProperties": {
          "Trait": [
            {
              "$ref": "3"
            }
          ],
          "TraitDetail": [
            {
              "$ref": "4"
            }
          ],
          "UnitOfMeasureConversion1": [
            {
              "$ref": "1"
            }
          ]
        }
      }
    },
    "ChangeTracker": {
      "$ref": "5"
    }
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUnitOfMeasureConversion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <UnitOfMeasureConversion z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <ChangeTracker z:Id="i2">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties />
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <ConversionFactor>3</ConversionFactor>
    <ConversionFormula>sample string 4</ConversionFormula>
    <FromUnitOfMeasureId>1</FromUnitOfMeasureId>
    <LastMaintenanceDate>2024-12-10T17:04:04.9923689+00:00</LastMaintenanceDate>
    <LastMaintenanceName>sample string 5</LastMaintenanceName>
    <ToUnitOfMeasureId>1</ToUnitOfMeasureId>
    <UnitOfMeasure i:nil="true" />
    <UnitOfMeasure1 z:Id="i3">
      <ChangeTracker z:Id="i4">
        <ExtendedProperties />
        <ObjectsAddedToCollectionProperties>
          <AddedObjectsForProperty>
            <CollectionPropertyName>Trait</CollectionPropertyName>
            <AddedObjects>
              <ObjectValue z:Id="i5" i:type="Trait">
                <ChangeTracker z:Ref="i2" />
                <CropCode>sample string 6</CropCode>
                <Description>sample string 4</Description>
                <LastMaintenanceDate>2024-12-10T17:04:05.0034678+00:00</LastMaintenanceDate>
                <LastMaintenanceName>sample string 7</LastMaintenanceName>
                <LowerBound>1.1</LowerBound>
                <Name>sample string 3</Name>
                <TraitDetail z:Id="i6">
                  <Category>sample string 22</Category>
                  <ChangeTracker z:Ref="i2" />
                  <CropCode>sample string 6</CropCode>
                  <CurrentUnitOfMeasureId>2</CurrentUnitOfMeasureId>
                  <DefaultSortOrder>1</DefaultSortOrder>
                  <DefaultUnitOfMeasureId>1</DefaultUnitOfMeasureId>
                  <HarvestMeasurement>1.1</HarvestMeasurement>
                  <IsASC>true</IsASC>
                  <IsActive>true</IsActive>
                  <IsBrandProduct>true</IsBrandProduct>
                  <IsCustom>true</IsCustom>
                  <IsFactor>true</IsFactor>
                  <IsFactorDefault>true</IsFactorDefault>
                  <IsLocationDefault>true</IsLocationDefault>
                  <IsLocationLongList>true</IsLocationLongList>
                  <IsLocationShortList>true</IsLocationShortList>
                  <IsObservationReplicated>true</IsObservationReplicated>
                  <IsReadOnly>true</IsReadOnly>
                  <IsSeries>true</IsSeries>
                  <IsStripDefault>true</IsStripDefault>
                  <IsStripLongList>true</IsStripLongList>
                  <IsStripShortList>true</IsStripShortList>
                  <IsUsedPE>true</IsUsedPE>
                  <IsUsedTrials>true</IsUsedTrials>
                  <LastMaintenanceDate>2024-12-10T17:04:05.0034678+00:00</LastMaintenanceDate>
                  <LastMaintenanceName>sample string 17</LastMaintenanceName>
                  <LowerBound>1.1</LowerBound>
                  <Precision>1</Precision>
                  <PreferredUnitOfMeasure z:Ref="i3" />
                  <TDERequired>true</TDERequired>
                  <Trait z:Ref="i5" />
                  <TraitDescription>sample string 7</TraitDescription>
                  <TraitId>5</TraitId>
                  <TraitOwner>sample string 21</TraitOwner>
                  <UnitOfMeasure z:Ref="i3" />
                  <UnitOfMeasureId>1</UnitOfMeasureId>
                  <UpperBound>1.1</UpperBound>
                  <ValidUnitsOfMeasure>
                    <UnitOfMeasure z:Ref="i3" />
                    <UnitOfMeasure z:Ref="i3" />
                  </ValidUnitsOfMeasure>
                </TraitDetail>
                <TraitId>5</TraitId>
                <UnitOfMeasure z:Ref="i3" />
                <UnitOfMeasureId>1</UnitOfMeasureId>
                <UpperBound>1.1</UpperBound>
                <ValueSetId>1</ValueSetId>
                <ValueSetType>sample string 6</ValueSetType>
              </ObjectValue>
            </AddedObjects>
          </AddedObjectsForProperty>
          <AddedObjectsForProperty>
            <CollectionPropertyName>TraitDetail</CollectionPropertyName>
            <AddedObjects>
              <ObjectValue z:Ref="i6" />
            </AddedObjects>
          </AddedObjectsForProperty>
          <AddedObjectsForProperty>
            <CollectionPropertyName>UnitOfMeasureConversion1</CollectionPropertyName>
            <AddedObjects>
              <ObjectValue z:Ref="i1" />
            </AddedObjects>
          </AddedObjectsForProperty>
        </ObjectsAddedToCollectionProperties>
        <ObjectsRemovedFromCollectionProperties />
        <OriginalValues />
        <State>Added</State>
      </ChangeTracker>
      <Description>sample string 4</Description>
      <LastMaintenanceDate>2024-12-10T17:04:05.0034678+00:00</LastMaintenanceDate>
      <LastMaintenanceName>sample string 5</LastMaintenanceName>
      <Name>sample string 2</Name>
      <Trait>
        <Trait z:Ref="i5" />
      </Trait>
      <TraitDetail>
        <TraitDetail z:Ref="i6" />
      </TraitDetail>
      <Type>sample string 3</Type>
      <UnitOfMeasureConversion />
      <UnitOfMeasureConversion1>
        <UnitOfMeasureConversion z:Ref="i1" />
      </UnitOfMeasureConversion1>
      <UnitOfMeasureId>1</UnitOfMeasureId>
    </UnitOfMeasure1>
  </UnitOfMeasureConversion>
  <UnitOfMeasureConversion z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfUnitOfMeasureConversion>