POST api/agronetmobile/savephenophasedata

Request Information

URI Parameters

None.

Body Parameters

PhenophaseListModel
NameDescriptionTypeAdditional information
StationId

integer

None.

CropId

integer

None.

phenrops

Collection of PhenophaseItem

None.

Request Formats

application/json, text/json

Sample:
{
  "StationId": 1,
  "CropId": 2,
  "phenrops": [
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "PhenophaseId": 3,
      "ripeningTimeId": 1,
      "PhenophaseDate": "2026-10-30T14:38:06.8088645+00:00"
    },
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "PhenophaseId": 3,
      "ripeningTimeId": 1,
      "PhenophaseDate": "2026-10-30T14:38:06.8088645+00:00"
    }
  ]
}

text/html

Sample:
{"StationId":1,"CropId":2,"phenrops":[{"Name":"sample string 1","Description":"sample string 2","PhenophaseId":3,"ripeningTimeId":1,"PhenophaseDate":"2026-10-30T14:38:06.8088645+00:00"},{"Name":"sample string 1","Description":"sample string 2","PhenophaseId":3,"ripeningTimeId":1,"PhenophaseDate":"2026-10-30T14:38:06.8088645+00:00"}]}

application/xml, text/xml

Sample:
<PhenophaseListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EkoNET.WebAPI.Models">
  <CropId>2</CropId>
  <StationId>1</StationId>
  <phenrops>
    <PhenophaseItem>
      <Description>sample string 2</Description>
      <Name>sample string 1</Name>
      <PhenophaseDate>2026-10-30T14:38:06.8088645+00:00</PhenophaseDate>
      <PhenophaseId>3</PhenophaseId>
      <ripeningTimeId>1</ripeningTimeId>
    </PhenophaseItem>
    <PhenophaseItem>
      <Description>sample string 2</Description>
      <Name>sample string 1</Name>
      <PhenophaseDate>2026-10-30T14:38:06.8088645+00:00</PhenophaseDate>
      <PhenophaseId>3</PhenophaseId>
      <ripeningTimeId>1</ripeningTimeId>
    </PhenophaseItem>
  </phenrops>
</PhenophaseListModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PhenophaseListModel'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

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