POST api/process/add

Request Information

URI Parameters

None.

Body Parameters

ProcessViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceId

string

None.

FarmId

integer

None.

ISinform

integer

None.

Rainfall

decimal number

None.

Temperature

decimal number

None.

Soil

string

None.

HeatunitAverage

decimal number

None.

SeedingDate

date

None.

SessionId

integer

None.

IsActive

boolean

None.

FarmName

string

None.

Lattitude

decimal number

None.

Longitude

decimal number

None.

CreatedDateTime

date

None.

CreatedById

integer

None.

UpdatedDateTime

date

None.

UpdatedById

integer

None.

ErrorMessage

Collection of ErrorModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceId": "sample string 2",
  "FarmId": 3,
  "ISinform": 4,
  "Rainfall": 5.0,
  "Temperature": 6.0,
  "Soil": "sample string 7",
  "HeatunitAverage": 8.0,
  "SeedingDate": "2020-02-21T14:38:17.2424189-07:00",
  "SessionId": 10,
  "IsActive": true,
  "FarmName": "sample string 12",
  "Lattitude": 13.0,
  "Longitude": 14.0,
  "CreatedDateTime": "2020-02-21T14:38:17.2424189-07:00",
  "CreatedById": 16,
  "UpdatedDateTime": "2020-02-21T14:38:17.2424189-07:00",
  "UpdatedById": 18,
  "ErrorMessage": [
    {
      "ErrorCode": "sample string 1",
      "Status": 0,
      "Message": "sample string 2"
    },
    {
      "ErrorCode": "sample string 1",
      "Status": 0,
      "Message": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ProcessViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ICAC.SeepSoil.ViewModels">
  <CreatedById>16</CreatedById>
  <CreatedDateTime>2020-02-21T14:38:17.2424189-07:00</CreatedDateTime>
  <ErrorMessage>
    <ErrorModel>
      <ErrorCode>sample string 1</ErrorCode>
      <Message>sample string 2</Message>
      <Status>FAILED</Status>
    </ErrorModel>
    <ErrorModel>
      <ErrorCode>sample string 1</ErrorCode>
      <Message>sample string 2</Message>
      <Status>FAILED</Status>
    </ErrorModel>
  </ErrorMessage>
  <UpdatedById>18</UpdatedById>
  <UpdatedDateTime>2020-02-21T14:38:17.2424189-07:00</UpdatedDateTime>
  <DeviceId>sample string 2</DeviceId>
  <FarmId>3</FarmId>
  <FarmName>sample string 12</FarmName>
  <HeatunitAverage>8</HeatunitAverage>
  <ISinform>4</ISinform>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <Lattitude>13</Lattitude>
  <Longitude>14</Longitude>
  <Rainfall>5</Rainfall>
  <SeedingDate>2020-02-21T14:38:17.2424189-07:00</SeedingDate>
  <SessionId>10</SessionId>
  <Soil>sample string 7</Soil>
  <Temperature>6</Temperature>
</ProcessViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.