POST TraitDetail/Base/Save
Request Information
URI Parameters
None.
Body Parameters
TraitDetailName | Description | Type | Additional information |
---|---|---|---|
DefaultUnitOfMeasureId | integer |
None. |
|
CurrentUnitOfMeasureId | integer |
None. |
|
ValidUnitsOfMeasure | Collection of UnitOfMeasure |
None. |
|
PreferredUnitOfMeasure | UnitOfMeasure |
None. |
|
TraitId | integer |
None. |
|
CropCode | string |
None. |
|
TraitDescription | string |
None. |
|
LowerBound | decimal number |
None. |
|
UpperBound | decimal number |
None. |
|
IsCustom | boolean |
None. |
|
IsBrandProduct | boolean |
None. |
|
IsStripLongList | boolean |
None. |
|
IsStripShortList | boolean |
None. |
|
IsStripDefault | boolean |
None. |
|
IsLocationLongList | boolean |
None. |
|
IsLocationShortList | boolean |
None. |
|
IsLocationDefault | boolean |
None. |
|
IsFactor | boolean |
None. |
|
LastMaintenanceName | string |
None. |
|
LastMaintenanceDate | date |
None. |
|
UnitOfMeasureId | integer |
None. |
|
IsFactorDefault | boolean |
None. |
|
TDERequired | boolean |
None. |
|
HarvestMeasurement | decimal number |
None. |
|
DefaultSortOrder | integer |
None. |
|
IsObservationReplicated | boolean |
None. |
|
IsReadOnly | boolean |
None. |
|
Precision | integer |
None. |
|
IsASC | boolean |
None. |
|
IsActive | boolean |
None. |
|
TraitOwner | string |
None. |
|
IsUsedTrials | boolean |
None. |
|
IsUsedPE | boolean |
None. |
|
Category | string |
None. |
|
IsSeries | boolean |
None. |
|
UnitOfMeasure | UnitOfMeasure |
None. |
|
Trait | Trait |
None. |
|
ChangeTracker | ObjectChangeTracker |
None. |
Request Formats
application/json, text/json
Sample:
{ "DefaultUnitOfMeasureId": 1, "CurrentUnitOfMeasureId": 2, "ValidUnitsOfMeasure": [ null, { "$id": "2", "UnitOfMeasureId": 1, "Name": "sample string 2", "Type": "sample string 3", "Description": "sample string 4", "LastMaintenanceName": "sample string 5", "LastMaintenanceDate": "2024-12-09T21:39:33.859028+00:00", "Trait": [ { "$id": "3", "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-09T21:39:33.859028+00:00", "UnitOfMeasure": { "$ref": "2" }, "TraitDetail": { "$ref": "1" }, "ChangeTracker": { "$id": "4", "State": 2, "ObjectsRemovedFromCollectionProperties": {}, "OriginalValues": {}, "ExtendedProperties": {}, "ObjectsAddedToCollectionProperties": {} } } ], "TraitDetail": [ { "$ref": "1" } ], "UnitOfMeasureConversion": [], "UnitOfMeasureConversion1": [], "ChangeTracker": { "$id": "5", "State": 2, "ObjectsRemovedFromCollectionProperties": {}, "OriginalValues": {}, "ExtendedProperties": {}, "ObjectsAddedToCollectionProperties": { "Trait": [ { "$ref": "3" } ], "TraitDetail": [ { "$ref": "1" } ] } } } ], "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-09T21:39:33.8745771+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": { "$ref": "4" } }
application/xml, text/xml
Sample:
<TraitDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model"> <Category>sample string 22</Category> <ChangeTracker z:Id="i2"> <ExtendedProperties /> <ObjectsAddedToCollectionProperties /> <ObjectsRemovedFromCollectionProperties /> <OriginalValues /> <State>Added</State> </ChangeTracker> <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-09T21:39:33.8745771+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 17</LastMaintenanceName> <LowerBound>1.1</LowerBound> <Precision>1</Precision> <PreferredUnitOfMeasure 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 i:nil="true" /> <Description>sample string 4</Description> <LastMaintenanceDate>2024-12-09T21:39:33.859028+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 7</LastMaintenanceName> <LowerBound>1.1</LowerBound> <Name>sample string 3</Name> <TraitDetail z:Ref="i1" /> <TraitId>0</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="i1" /> </AddedObjects> </AddedObjectsForProperty> </ObjectsAddedToCollectionProperties> <ObjectsRemovedFromCollectionProperties /> <OriginalValues /> <State>Added</State> </ChangeTracker> <Description>sample string 4</Description> <LastMaintenanceDate>2024-12-09T21:39:33.859028+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 5</LastMaintenanceName> <Name>sample string 2</Name> <Trait> <Trait z:Ref="i5" /> </Trait> <TraitDetail> <TraitDetail z:Ref="i1" /> </TraitDetail> <Type>sample string 3</Type> <UnitOfMeasureConversion /> <UnitOfMeasureConversion1 /> <UnitOfMeasureId>1</UnitOfMeasureId> </PreferredUnitOfMeasure> <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 i:nil="true" /> <UnitOfMeasure z:Ref="i3" /> </ValidUnitsOfMeasure> </TraitDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TraitDetailName | Description | Type | Additional information |
---|---|---|---|
DefaultUnitOfMeasureId | integer |
None. |
|
CurrentUnitOfMeasureId | integer |
None. |
|
ValidUnitsOfMeasure | Collection of UnitOfMeasure |
None. |
|
PreferredUnitOfMeasure | UnitOfMeasure |
None. |
|
TraitId | integer |
None. |
|
CropCode | string |
None. |
|
TraitDescription | string |
None. |
|
LowerBound | decimal number |
None. |
|
UpperBound | decimal number |
None. |
|
IsCustom | boolean |
None. |
|
IsBrandProduct | boolean |
None. |
|
IsStripLongList | boolean |
None. |
|
IsStripShortList | boolean |
None. |
|
IsStripDefault | boolean |
None. |
|
IsLocationLongList | boolean |
None. |
|
IsLocationShortList | boolean |
None. |
|
IsLocationDefault | boolean |
None. |
|
IsFactor | boolean |
None. |
|
LastMaintenanceName | string |
None. |
|
LastMaintenanceDate | date |
None. |
|
UnitOfMeasureId | integer |
None. |
|
IsFactorDefault | boolean |
None. |
|
TDERequired | boolean |
None. |
|
HarvestMeasurement | decimal number |
None. |
|
DefaultSortOrder | integer |
None. |
|
IsObservationReplicated | boolean |
None. |
|
IsReadOnly | boolean |
None. |
|
Precision | integer |
None. |
|
IsASC | boolean |
None. |
|
IsActive | boolean |
None. |
|
TraitOwner | string |
None. |
|
IsUsedTrials | boolean |
None. |
|
IsUsedPE | boolean |
None. |
|
Category | string |
None. |
|
IsSeries | boolean |
None. |
|
UnitOfMeasure | UnitOfMeasure |
None. |
|
Trait | Trait |
None. |
|
ChangeTracker | ObjectChangeTracker |
None. |
Response Formats
application/json, text/json
Sample:
{ "DefaultUnitOfMeasureId": 1, "CurrentUnitOfMeasureId": 2, "ValidUnitsOfMeasure": [ null, { "$id": "2", "UnitOfMeasureId": 1, "Name": "sample string 2", "Type": "sample string 3", "Description": "sample string 4", "LastMaintenanceName": "sample string 5", "LastMaintenanceDate": "2024-12-09T21:39:33.9058286+00:00", "Trait": [ { "$id": "3", "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-09T21:39:33.9058286+00:00", "UnitOfMeasure": { "$ref": "2" }, "TraitDetail": { "$ref": "1" }, "ChangeTracker": { "$id": "4", "State": 2, "ObjectsRemovedFromCollectionProperties": {}, "OriginalValues": {}, "ExtendedProperties": {}, "ObjectsAddedToCollectionProperties": {} } } ], "TraitDetail": [ { "$ref": "1" } ], "UnitOfMeasureConversion": [], "UnitOfMeasureConversion1": [], "ChangeTracker": { "$id": "5", "State": 2, "ObjectsRemovedFromCollectionProperties": {}, "OriginalValues": {}, "ExtendedProperties": {}, "ObjectsAddedToCollectionProperties": { "Trait": [ { "$ref": "3" } ], "TraitDetail": [ { "$ref": "1" } ] } } } ], "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-09T21:39:33.9058286+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": { "$ref": "4" } }
application/xml, text/xml
Sample:
<TraitDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model"> <Category>sample string 22</Category> <ChangeTracker z:Id="i2"> <ExtendedProperties /> <ObjectsAddedToCollectionProperties /> <ObjectsRemovedFromCollectionProperties /> <OriginalValues /> <State>Added</State> </ChangeTracker> <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-09T21:39:33.9058286+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 17</LastMaintenanceName> <LowerBound>1.1</LowerBound> <Precision>1</Precision> <PreferredUnitOfMeasure 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 i:nil="true" /> <Description>sample string 4</Description> <LastMaintenanceDate>2024-12-09T21:39:33.9058286+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 7</LastMaintenanceName> <LowerBound>1.1</LowerBound> <Name>sample string 3</Name> <TraitDetail z:Ref="i1" /> <TraitId>0</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="i1" /> </AddedObjects> </AddedObjectsForProperty> </ObjectsAddedToCollectionProperties> <ObjectsRemovedFromCollectionProperties /> <OriginalValues /> <State>Added</State> </ChangeTracker> <Description>sample string 4</Description> <LastMaintenanceDate>2024-12-09T21:39:33.9058286+00:00</LastMaintenanceDate> <LastMaintenanceName>sample string 5</LastMaintenanceName> <Name>sample string 2</Name> <Trait> <Trait z:Ref="i5" /> </Trait> <TraitDetail> <TraitDetail z:Ref="i1" /> </TraitDetail> <Type>sample string 3</Type> <UnitOfMeasureConversion /> <UnitOfMeasureConversion1 /> <UnitOfMeasureId>1</UnitOfMeasureId> </PreferredUnitOfMeasure> <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 i:nil="true" /> <UnitOfMeasure z:Ref="i3" /> </ValidUnitsOfMeasure> </TraitDetail>