POST api/Demeter/saveworkorder

Request Information

URI Parameters

None.

Body Parameters

ChemicalMeasuresModel
NameDescriptionTypeAdditional information
DeviceID

string

None.

TreatmentTime

date

None.

TreatmentProduct

string

None.

TreatmentActiveSupstances

string

None.

TotalHectars

decimal number

None.

TotalChemicalsUsed

decimal number

None.

Unit

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceID": "sample string 1",
  "TreatmentTime": "2026-10-30T14:39:59.9828247+00:00",
  "TreatmentProduct": "sample string 3",
  "TreatmentActiveSupstances": "sample string 4",
  "TotalHectars": 5.0,
  "TotalChemicalsUsed": 6.0,
  "Unit": "sample string 7"
}

text/html

Sample:
{"DeviceID":"sample string 1","TreatmentTime":"2026-10-30T14:39:59.9828247+00:00","TreatmentProduct":"sample string 3","TreatmentActiveSupstances":"sample string 4","TotalHectars":5.0,"TotalChemicalsUsed":6.0,"Unit":"sample string 7"}

application/xml, text/xml

Sample:
<ChemicalMeasuresModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EkoNET.WebAPI.Models">
  <DeviceID>sample string 1</DeviceID>
  <TotalChemicalsUsed>6</TotalChemicalsUsed>
  <TotalHectars>5</TotalHectars>
  <TreatmentActiveSupstances>sample string 4</TreatmentActiveSupstances>
  <TreatmentProduct>sample string 3</TreatmentProduct>
  <TreatmentTime>2026-10-30T14:39:59.9828247+00:00</TreatmentTime>
  <Unit>sample string 7</Unit>
</ChemicalMeasuresModel>

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 'ChemicalMeasuresModel'.

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>