POST v1/watering/create-watering-event

Request Information

URI Parameters

None.

Body Parameters

Collection of WateringEventModel
NameDescriptionTypeAdditional information
system_id

integer

None.

start_date

date

None.

duration

time interval

None.

cause

WateringTransmissionCause

None.

error

WateringTransmissionError

None.

description

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "system_id": 1,
    "start_date": "2025-12-09T18:09:19.6418238+00:00",
    "duration": "00:00:00.1234567",
    "cause": 0,
    "error": 0,
    "description": "sample string 4"
  },
  {
    "system_id": 1,
    "start_date": "2025-12-09T18:09:19.6418238+00:00",
    "duration": "00:00:00.1234567",
    "cause": 0,
    "error": 0,
    "description": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfWateringEventModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/I9P.SmartCity.API.Models.Watering">
  <WateringEventModel>
    <cause>WateringNotNeeded</cause>
    <description>sample string 4</description>
    <duration>PT0.1234567S</duration>
    <error>NoErrors</error>
    <start_date>2025-12-09T18:09:19.6418238+00:00</start_date>
    <system_id>1</system_id>
  </WateringEventModel>
  <WateringEventModel>
    <cause>WateringNotNeeded</cause>
    <description>sample string 4</description>
    <duration>PT0.1234567S</duration>
    <error>NoErrors</error>
    <start_date>2025-12-09T18:09:19.6418238+00:00</start_date>
    <system_id>1</system_id>
  </WateringEventModel>
</ArrayOfWateringEventModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

None.