POST Experiment/ValidateSave_3

Request Information

URI Parameters

None.

Body Parameters

Collection of Experiment
NameDescriptionTypeAdditional information
ExperimentId

globally unique identifier

None.

Title

string

None.

Name

string

None.

CropId

integer

None.

ExperimentTypeId

integer

None.

GrowingYear

integer

None.

TotalPlannedLocations

integer

None.

AgreementRequired

boolean

None.

Description

string

None.

NumberOfReplications

integer

None.

AddName

string

None.

AddDate

date

None.

LastMaintenanceName

string

None.

LastMaintenanceDate

date

None.

IsSeedLocallySourced

boolean

None.

IsSeedTreatmentFactor

boolean

None.

ParentExperimentId

globally unique identifier

None.

IsAvailableInTDE

boolean

None.

IsLocalExperiment

boolean

None.

ExperimentSubTypeId

integer

None.

SalesSeason

integer

None.

Region

string

None.

Country

string

None.

CompanyCode

string

None.

Crop

Crop

None.

ExperimentBusinessUnitArea

Collection of ExperimentBusinessUnitArea

None.

ExperimentFactor

Collection of ExperimentFactor

None.

ExperimentGrouping

Collection of ExperimentGrouping

None.

ExperimentLayout

Collection of ExperimentLayout

None.

ExperimentLocation

Collection of ExperimentLocation

None.

ExperimentType

ExperimentType

None.

Protocol

Collection of Protocol

None.

Strip

Collection of Strip

None.

ExperimentMeasurement

Collection of ExperimentMeasurement

None.

ExperimentPartnerAssignment

Collection of ExperimentPartnerAssignment

None.

ChangeTracker

ObjectChangeTracker

None.

Request Formats

application/json, text/json

Sample:
[
  null,
  {
    "$id": "1",
    "ExperimentId": "519a758b-f100-43f4-bde1-f2810b9faf46",
    "Title": "sample string 2",
    "Name": "sample string 3",
    "CropId": 4,
    "ExperimentTypeId": 5,
    "GrowingYear": 6,
    "TotalPlannedLocations": 7,
    "AgreementRequired": true,
    "Description": "sample string 9",
    "NumberOfReplications": 1,
    "AddName": "sample string 10",
    "AddDate": "2024-09-12T04:45:20.2700516+00:00",
    "LastMaintenanceName": "sample string 12",
    "LastMaintenanceDate": "2024-09-12T04:45:20.2700516+00:00",
    "IsSeedLocallySourced": true,
    "IsSeedTreatmentFactor": true,
    "ParentExperimentId": "d0f4357b-f47f-464b-b9d7-dc906bb24617",
    "IsAvailableInTDE": true,
    "IsLocalExperiment": true,
    "ExperimentSubTypeId": 1,
    "SalesSeason": 1,
    "Region": "sample string 17",
    "Country": "sample string 18",
    "CompanyCode": "sample string 19",
    "ExperimentBusinessUnitArea": [
      {
        "$id": "2",
        "ExperimentId": "519a758b-f100-43f4-bde1-f2810b9faf46",
        "BusinessUnitCode": "sample string 2",
        "AddName": "sample string 3",
        "AddDate": "2024-09-12T04:45:20.2882616+00:00",
        "DistrictCode": "sample string 5",
        "Experiment": {
          "$ref": "1"
        },
        "ChangeTracker": {
          "$id": "3",
          "State": 2,
          "ObjectsRemovedFromCollectionProperties": {},
          "OriginalValues": {},
          "ExtendedProperties": {},
          "ObjectsAddedToCollectionProperties": {}
        }
      }
    ],
    "ExperimentFactor": [],
    "ExperimentGrouping": [
      {
        "$id": "4",
        "ExperimentId": "519a758b-f100-43f4-bde1-f2810b9faf46",
        "ExperimentGroupId": "277c90bc-c874-47bf-9866-7d0b6b796e8d",
        "LastMaintenanceName": "sample string 3",
        "LastMaintenanceDate": "2024-09-12T04:45:20.2700516+00:00",
        "Experiment": {
          "$ref": "1"
        },
        "ExperimentGroup": {
          "$id": "5",
          "ExperimentGroupId": "277c90bc-c874-47bf-9866-7d0b6b796e8d",
          "GroupName": "sample string 2",
          "Year": 3,
          "CropId": 1,
          "AddName": "sample string 5",
          "AddDate": "2024-09-12T04:45:20.2700516+00:00",
          "LastMaintenanceName": "sample string 7",
          "LastMaintenanceDate": "2024-09-12T04:45:20.2700516+00:00",
          "Crop": {
            "$id": "6",
            "CropId": 1,
            "Name": "sample string 2",
            "ProductLineCode": "sample string 3",
            "Genus": "sample string 4",
            "Code": "sample string 5",
            "TrackingCode": "sample string 6",
            "LastMaintenanceName": "sample string 7",
            "LastMaintenanceDate": "2024-09-12T04:45:20.2700516+00:00",
            "IsOnlySourcedLocally": true,
            "ExperimentGroup": [
              {
                "$ref": "5"
              }
            ],
            "Experiment": [],
            "ChangeTracker": {
              "$id": "7",
              "State": 2,
              "ObjectsRemovedFromCollectionProperties": {},
              "OriginalValues": {},
              "ExtendedProperties": {},
              "ObjectsAddedToCollectionProperties": {
                "ExperimentGroup": [
                  {
                    "$ref": "5"
                  }
                ]
              }
            }
          },
          "ExperimentGrouping": [
            {
              "$ref": "4"
            }
          ],
          "ChangeTracker": {
            "$id": "8",
            "State": 2,
            "ObjectsRemovedFromCollectionProperties": {},
            "OriginalValues": {},
            "ExtendedProperties": {},
            "ObjectsAddedToCollectionProperties": {
              "ExperimentGrouping": [
                {
                  "$ref": "4"
                }
              ]
            }
          }
        },
        "ChangeTracker": {
          "$ref": "3"
        }
      }
    ],
    "ExperimentLayout": [],
    "ExperimentLocation": [],
    "Protocol": [],
    "Strip": [],
    "ExperimentMeasurement": [],
    "ExperimentPartnerAssignment": [],
    "ChangeTracker": {
      "$id": "9",
      "State": 2,
      "ObjectsRemovedFromCollectionProperties": {},
      "OriginalValues": {},
      "ExtendedProperties": {},
      "ObjectsAddedToCollectionProperties": {
        "ExperimentGrouping": [
          {
            "$ref": "4"
          }
        ],
        "ExperimentBusinessUnitArea": [
          {
            "$ref": "2"
          }
        ]
      }
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfExperiment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <Experiment i:nil="true" />
  <Experiment z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <AddDate>2024-09-12T04:45:20.2700516+00:00</AddDate>
    <AddName>sample string 10</AddName>
    <AgreementRequired>true</AgreementRequired>
    <ChangeTracker z:Id="i2">
      <ExtendedProperties />
      <ObjectsAddedToCollectionProperties>
        <AddedObjectsForProperty>
          <CollectionPropertyName>ExperimentGrouping</CollectionPropertyName>
          <AddedObjects>
            <ObjectValue z:Id="i3" i:type="ExperimentGrouping">
              <ChangeTracker z:Id="i4">
                <ExtendedProperties />
                <ObjectsAddedToCollectionProperties />
                <ObjectsRemovedFromCollectionProperties />
                <OriginalValues />
                <State>Added</State>
              </ChangeTracker>
              <Experiment z:Ref="i1" />
              <ExperimentGroup z:Id="i5">
                <AddDate>2024-09-12T04:45:20.2700516+00:00</AddDate>
                <AddName>sample string 5</AddName>
                <ChangeTracker z:Id="i6">
                  <ExtendedProperties />
                  <ObjectsAddedToCollectionProperties>
                    <AddedObjectsForProperty>
                      <CollectionPropertyName>ExperimentGrouping</CollectionPropertyName>
                      <AddedObjects>
                        <ObjectValue z:Ref="i3" />
                      </AddedObjects>
                    </AddedObjectsForProperty>
                  </ObjectsAddedToCollectionProperties>
                  <ObjectsRemovedFromCollectionProperties />
                  <OriginalValues />
                  <State>Added</State>
                </ChangeTracker>
                <Crop z:Id="i7">
                  <ChangeTracker z:Id="i8">
                    <ExtendedProperties />
                    <ObjectsAddedToCollectionProperties>
                      <AddedObjectsForProperty>
                        <CollectionPropertyName>ExperimentGroup</CollectionPropertyName>
                        <AddedObjects>
                          <ObjectValue z:Ref="i5" />
                        </AddedObjects>
                      </AddedObjectsForProperty>
                    </ObjectsAddedToCollectionProperties>
                    <ObjectsRemovedFromCollectionProperties />
                    <OriginalValues />
                    <State>Added</State>
                  </ChangeTracker>
                  <Code>sample string 5</Code>
                  <CropId>1</CropId>
                  <Experiment />
                  <ExperimentGroup>
                    <ExperimentGroup z:Ref="i5" />
                  </ExperimentGroup>
                  <Genus>sample string 4</Genus>
                  <IsOnlySourcedLocally>true</IsOnlySourcedLocally>
                  <LastMaintenanceDate>2024-09-12T04:45:20.2700516+00:00</LastMaintenanceDate>
                  <LastMaintenanceName>sample string 7</LastMaintenanceName>
                  <Name>sample string 2</Name>
                  <ProductLineCode>sample string 3</ProductLineCode>
                  <TrackingCode>sample string 6</TrackingCode>
                </Crop>
                <CropId>1</CropId>
                <ExperimentGroupId>277c90bc-c874-47bf-9866-7d0b6b796e8d</ExperimentGroupId>
                <ExperimentGrouping>
                  <ExperimentGrouping z:Ref="i3" />
                </ExperimentGrouping>
                <GroupName>sample string 2</GroupName>
                <LastMaintenanceDate>2024-09-12T04:45:20.2700516+00:00</LastMaintenanceDate>
                <LastMaintenanceName>sample string 7</LastMaintenanceName>
                <Year>3</Year>
              </ExperimentGroup>
              <ExperimentGroupId>277c90bc-c874-47bf-9866-7d0b6b796e8d</ExperimentGroupId>
              <ExperimentId>519a758b-f100-43f4-bde1-f2810b9faf46</ExperimentId>
              <LastMaintenanceDate>2024-09-12T04:45:20.2700516+00:00</LastMaintenanceDate>
              <LastMaintenanceName>sample string 3</LastMaintenanceName>
            </ObjectValue>
          </AddedObjects>
        </AddedObjectsForProperty>
        <AddedObjectsForProperty>
          <CollectionPropertyName>ExperimentBusinessUnitArea</CollectionPropertyName>
          <AddedObjects>
            <ObjectValue z:Id="i9" i:type="ExperimentBusinessUnitArea">
              <AddDate>2024-09-12T04:45:20.2882616+00:00</AddDate>
              <AddName>sample string 3</AddName>
              <BusinessUnit i:nil="true" />
              <BusinessUnitCode>sample string 2</BusinessUnitCode>
              <ChangeTracker z:Ref="i4" />
              <DistrictCode>sample string 5</DistrictCode>
              <Experiment z:Ref="i1" />
              <ExperimentId>519a758b-f100-43f4-bde1-f2810b9faf46</ExperimentId>
            </ObjectValue>
          </AddedObjects>
        </AddedObjectsForProperty>
      </ObjectsAddedToCollectionProperties>
      <ObjectsRemovedFromCollectionProperties />
      <OriginalValues />
      <State>Added</State>
    </ChangeTracker>
    <CompanyCode>sample string 19</CompanyCode>
    <Country>sample string 18</Country>
    <Crop i:nil="true" />
    <CropId>4</CropId>
    <Description>sample string 9</Description>
    <ExperimentBusinessUnitArea>
      <ExperimentBusinessUnitArea z:Ref="i9" />
    </ExperimentBusinessUnitArea>
    <ExperimentFactor />
    <ExperimentGrouping>
      <ExperimentGrouping z:Ref="i3" />
    </ExperimentGrouping>
    <ExperimentId>519a758b-f100-43f4-bde1-f2810b9faf46</ExperimentId>
    <ExperimentLayout />
    <ExperimentLocation />
    <ExperimentMeasurement />
    <ExperimentPartnerAssignment />
    <ExperimentSubTypeId>1</ExperimentSubTypeId>
    <ExperimentType i:nil="true" />
    <ExperimentTypeId>5</ExperimentTypeId>
    <GrowingYear>6</GrowingYear>
    <IsAvailableInTDE>true</IsAvailableInTDE>
    <IsLocalExperiment>true</IsLocalExperiment>
    <IsSeedLocallySourced>true</IsSeedLocallySourced>
    <IsSeedTreatmentFactor>true</IsSeedTreatmentFactor>
    <LastMaintenanceDate>2024-09-12T04:45:20.2700516+00:00</LastMaintenanceDate>
    <LastMaintenanceName>sample string 12</LastMaintenanceName>
    <Name>sample string 3</Name>
    <NumberOfReplications>1</NumberOfReplications>
    <ParentExperimentId>d0f4357b-f47f-464b-b9d7-dc906bb24617</ParentExperimentId>
    <Protocol />
    <Region>sample string 17</Region>
    <SalesSeason>1</SalesSeason>
    <Strip />
    <Title>sample string 2</Title>
    <TotalPlannedLocations>7</TotalPlannedLocations>
  </Experiment>
</ArrayOfExperiment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>