POST TraitTrials/Base/SaveAll

Request Information

URI Parameters

None.

Body Parameters

Collection of TraitTrials
NameDescriptionTypeAdditional information
TraitId

integer

None.

CropCode

string

None.

Name

string

None.

Description

string

None.

UnitOfMeasureId

integer

None.

LowerBound

decimal number

None.

UpperBound

decimal number

None.

ValueSetId

integer

None.

ValueSetType

string

None.

LastMaintenanceName

string

None.

LastMaintenanceDate

date

None.

ChangeTracker

ObjectChangeTracker

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "TraitId": 1,
    "CropCode": "sample string 2",
    "Name": "sample string 3",
    "Description": "sample string 4",
    "UnitOfMeasureId": 5,
    "LowerBound": 1.1,
    "UpperBound": 1.1,
    "ValueSetId": 1,
    "ValueSetType": "sample string 6",
    "LastMaintenanceName": "sample string 7",
    "LastMaintenanceDate": "2024-12-09T18:06:39.9256195+00:00",
    "ChangeTracker": {
      "$id": "2",
      "State": 2,
      "ObjectsRemovedFromCollectionProperties": {},
      "OriginalValues": {},
      "ExtendedProperties": {},
      "ObjectsAddedToCollectionProperties": {}
    }
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTraitTrials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <TraitTrials z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <ChangeTracker z:Id="i2">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties />
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <CropCode>sample string 2</CropCode>
    <Description>sample string 4</Description>
    <LastMaintenanceDate>2024-12-09T18:06:39.9256195+00:00</LastMaintenanceDate>
    <LastMaintenanceName>sample string 7</LastMaintenanceName>
    <LowerBound>1.1</LowerBound>
    <Name>sample string 3</Name>
    <TraitId>1</TraitId>
    <UnitOfMeasureId>5</UnitOfMeasureId>
    <UpperBound>1.1</UpperBound>
    <ValueSetId>1</ValueSetId>
    <ValueSetType>sample string 6</ValueSetType>
  </TraitTrials>
  <TraitTrials z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfTraitTrials>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of TraitTrials
NameDescriptionTypeAdditional information
TraitId

integer

None.

CropCode

string

None.

Name

string

None.

Description

string

None.

UnitOfMeasureId

integer

None.

LowerBound

decimal number

None.

UpperBound

decimal number

None.

ValueSetId

integer

None.

ValueSetType

string

None.

LastMaintenanceName

string

None.

LastMaintenanceDate

date

None.

ChangeTracker

ObjectChangeTracker

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "TraitId": 1,
    "CropCode": "sample string 2",
    "Name": "sample string 3",
    "Description": "sample string 4",
    "UnitOfMeasureId": 5,
    "LowerBound": 1.1,
    "UpperBound": 1.1,
    "ValueSetId": 1,
    "ValueSetType": "sample string 6",
    "LastMaintenanceName": "sample string 7",
    "LastMaintenanceDate": "2024-12-09T18:06:39.9256195+00:00",
    "ChangeTracker": {
      "$id": "2",
      "State": 2,
      "ObjectsRemovedFromCollectionProperties": {},
      "OriginalValues": {},
      "ExtendedProperties": {},
      "ObjectsAddedToCollectionProperties": {}
    }
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTraitTrials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <TraitTrials z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <ChangeTracker z:Id="i2">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties />
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <CropCode>sample string 2</CropCode>
    <Description>sample string 4</Description>
    <LastMaintenanceDate>2024-12-09T18:06:39.9256195+00:00</LastMaintenanceDate>
    <LastMaintenanceName>sample string 7</LastMaintenanceName>
    <LowerBound>1.1</LowerBound>
    <Name>sample string 3</Name>
    <TraitId>1</TraitId>
    <UnitOfMeasureId>5</UnitOfMeasureId>
    <UpperBound>1.1</UpperBound>
    <ValueSetId>1</ValueSetId>
    <ValueSetType>sample string 6</ValueSetType>
  </TraitTrials>
  <TraitTrials z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfTraitTrials>