POST Api/BulkTrait/LoadExcel

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of TraitUpload
NameDescriptionTypeAdditional information
TrackingName

string

None.

TraitId

integer

None.

CropCode

string

None.

Value

decimal number

None.

xCoord

integer

None.

Response

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TrackingName": "sample string 1",
    "TraitId": 2,
    "CropCode": "sample string 3",
    "Value": 1.1,
    "xCoord": 1,
    "Response": "sample string 4"
  },
  {
    "TrackingName": "sample string 1",
    "TraitId": 2,
    "CropCode": "sample string 3",
    "Value": 1.1,
    "xCoord": 1,
    "Response": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTraitUpload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pioneer.Trials.Domain.Model">
  <TraitUpload>
    <CropCode>sample string 3</CropCode>
    <Response>sample string 4</Response>
    <TrackingName>sample string 1</TrackingName>
    <TraitId>2</TraitId>
    <Value>1.1</Value>
    <xCoord>1</xCoord>
  </TraitUpload>
  <TraitUpload>
    <CropCode>sample string 3</CropCode>
    <Response>sample string 4</Response>
    <TrackingName>sample string 1</TrackingName>
    <TraitId>2</TraitId>
    <Value>1.1</Value>
    <xCoord>1</xCoord>
  </TraitUpload>
</ArrayOfTraitUpload>