POST UnitOfMeasure/GetCachedUnitOfMeasures
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of UnitOfMeasureName | Description | Type | Additional information |
---|---|---|---|
UnitOfMeasureId | integer |
None. |
|
Name | string |
None. |
|
Type | string |
None. |
|
Description | string |
None. |
|
LastMaintenanceName | string |
None. |
|
LastMaintenanceDate | date |
None. |
|
Trait | Collection of Trait |
None. |
|
TraitDetail | Collection of TraitDetail |
None. |
|
UnitOfMeasureConversion | Collection of UnitOfMeasureConversion |
None. |
|
UnitOfMeasureConversion1 | Collection of UnitOfMeasureConversion |
None. |
|
ChangeTracker | ObjectChangeTracker |
None. |
Response Formats
application/json, text/json
Sample:
[ null, { "$id": "1", "UnitOfMeasureId": 1, "Name": "sample string 2", "Type": "sample string 3", "Description": "sample string 4", "LastMaintenanceName": "sample string 5", "LastMaintenanceDate": "2024-12-08T15:22:46.124447+00:00", "Trait": [ { "$id": "2", "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-08T15:22:46.124447+00:00", "UnitOfMeasure": { "$ref": "1" }, "TraitDetail": { "$id": "3", "DefaultUnitOfMeasureId": 1, "CurrentUnitOfMeasureId": 2, "ValidUnitsOfMeasure": [ { "$ref": "1" }, { "$ref": "1" } ], "PreferredUnitOfMeasure": { "$ref": "1" }, "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-08T15:22:46.124447+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": "1" }, "Trait": { "$ref": "2" }, "ChangeTracker": { "$id": "4", "State": 2, "ObjectsRemovedFromCollectionProperties": {}, "OriginalValues": {}, "ExtendedProperties": {}, "ObjectsAddedToCollectionProperties": {} } }, "ChangeTracker": { "$ref": "4" } } ], "TraitDetail": [ { "$ref": "3" } ], "UnitOfMeasureConversion": [], "UnitOfMeasureConversion1": [], "ChangeTracker": { "$id": "5", "State": 2, "ObjectsRemovedFromCollectionProperties": {}, "OriginalValues": {}, "ExtendedProperties": {}, "ObjectsAddedToCollectionProperties": { "Trait": [ { "$ref": "2" } ], "TraitDetail": [ { "$ref": "3" } ] } } } ]
application/xml, text/xml
Sample:
<ArrayOfUnitOfMeasure xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model"> <UnitOfMeasure i:nil="true" /> <UnitOfMeasure z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"> <ChangeTracker z:Id="i2"> <ExtendedProperties /> <ObjectsAddedToCollectionProperties> <AddedObjectsForProperty> <CollectionPropertyName>Trait</CollectionPropertyName> <AddedObjects> <ObjectValue z:Id="i3" i:type="Trait"> <ChangeTracker z:Id="i4"> <ExtendedProperties /> <ObjectsAddedToCollectionProperties /> <ObjectsRemovedFromCollectionProperties /> <OriginalValues /> <State>Added</State> </ChangeTracker> <CropCode>sample string 6</CropCode> <Description>sample string 4</Description> <LastMaintenanceDate>2024-12-08T15:22:46.124447+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 7</LastMaintenanceName> <LowerBound>1.1</LowerBound> <Name>sample string 3</Name> <TraitDetail z:Id="i5"> <Category>sample string 22</Category> <ChangeTracker z:Ref="i4" /> <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-08T15:22:46.124447+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 17</LastMaintenanceName> <LowerBound>1.1</LowerBound> <Precision>1</Precision> <PreferredUnitOfMeasure z:Ref="i1" /> <TDERequired>true</TDERequired> <Trait z:Ref="i3" /> <TraitDescription>sample string 7</TraitDescription> <TraitId>5</TraitId> <TraitOwner>sample string 21</TraitOwner> <UnitOfMeasure z:Ref="i1" /> <UnitOfMeasureId>1</UnitOfMeasureId> <UpperBound>1.1</UpperBound> <ValidUnitsOfMeasure> <UnitOfMeasure z:Ref="i1" /> <UnitOfMeasure z:Ref="i1" /> </ValidUnitsOfMeasure> </TraitDetail> <TraitId>5</TraitId> <UnitOfMeasure z:Ref="i1" /> <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="i5" /> </AddedObjects> </AddedObjectsForProperty> </ObjectsAddedToCollectionProperties> <ObjectsRemovedFromCollectionProperties /> <OriginalValues /> <State>Added</State> </ChangeTracker> <Description>sample string 4</Description> <LastMaintenanceDate>2024-12-08T15:22:46.124447+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 5</LastMaintenanceName> <Name>sample string 2</Name> <Trait> <Trait z:Ref="i3" /> </Trait> <TraitDetail> <TraitDetail z:Ref="i5" /> </TraitDetail> <Type>sample string 3</Type> <UnitOfMeasureConversion /> <UnitOfMeasureConversion1 /> <UnitOfMeasureId>1</UnitOfMeasureId> </UnitOfMeasure> </ArrayOfUnitOfMeasure>