NAV
cURL

Copyright Agreement

Copyright (c) 2016 ET Water Systems, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at:

http://www.eclipse.org/legal/epl-v10.html

Contributors: ET Water Systems, Inc. - initial API and implementation

CONTRIBUTION POLICY:

(The following paragraph is not intended to limit the rights granted to you to modify and distribute these APIs under the terms of licenses that may apply to the API.)

Contributions to this API are subject to your understanding and acceptance of the terms and conditions of the ET Water Systems, Inc. Contributor Agreement, which can be found online at:

http://www.etwater.com/legal/contributoragreement/

Introducing the Unity API

ET Unity is a powerful, highly scalable open platform for water management and a wealth of other environmental services. We have built a sophisticated set of data from many different sources, and used years of experience to transform and analyze this information. Through a growing set of REST APIs you can directly gain access to the platform's services and insights for easy integration.

Access Environmental Insights:

We have made the Unity APIs available under an open source access and distribution model. As a result, it is a simple process to start using the platform services to enable your development efforts, and to start enriching your applications and services.

All you need to do:

API Interaction

Any tool for making HTTP requests is suitable to work with the Unity API. Unity API is a REST-like API and following most of the common agreements on HTTP Methods usage. Communication is done in JSON format so any request to the API should be a valid JSON document.

Requests

Any request to the API should be sent via HTTP protocol using corresponding HTTP Method. Requests that contain a request body should have a HTTP header “Content-Type” with a description of content being sent. Also every request should be singed with a personal access token placed in a header.

Header Example:

Authorization: Bearer MWQzMjQ2NjU1NjgxMGQwMzI3MzY0OTE5NmU0ZTQ2NzE3YzYxNmVkZGYxNGE1MWVjOGVkMjZlNjVjMzQ1NDY1NQ

HTTP Methods

Method Usage
GET Used for information retrieval. Any request using the GET method is read-only and will not affect any of the objects you are querying
DELETE This method is used to remove any object or collection of objects
POST Used for objects creation. Request should contain all the required fields for an object that being created. Also could be used for performing an actions. For instance, “Force irrigation” action
PUT Used for updating the object.
PATCH Used for bulk operations on multiple objects.

HTTP Statuses

Each API response contains a corresponding HTTP Status Code. Codes in a range 200..300 indicate a successful action and means that no error was encountered. Codes in a range 400..500 indicate that there was an issue with the request that was sent. Codes in a range 400..500 indicate a server side problem and it means that we are having an issue on our end and cannot fulfill your request currently.

Responses

Typically every response contains a response body as a JSON document. An exception to this are DELETE requests. They always are responded with HTTP status 204 No Content end empty response body. Most of the responses contain a requested object or a list of object, but in some cases results are wrapped in a structure that included pagination info.

Example of response with pagination:

{
    "controllerList": [
        {
            "id": "example string value",
            "serialNumber": "example string value",
            "activated": true,
            "projectId": "example string value"
        }
    ],
    "page": 843,
    "size": 213,
    "total": 525
}

HTTP Clients

cURL

cURL is installed by default in most popular *nix distributives. It is a widely spread tool and a library for making HTTP requests. cURL is a command line utility and does not have a any UI.

Simple request example:

curl 'https://developer-api.etwater.com/api/v1/hello-unity'

Response:

{
    "greetings": "Hello from Unity platform",
    "requestMethod: "GET"
}

Request method should be set through -X console parameter.

PUT request method example:

curl -X PUT 'https://developer-api.etwater.com/api/v1/hello-unity'

Response:

{
    "greetings": "Hello from Unity platform",
    "requestMethod: "PUT"
}

Request headers should be added should be set through -H console parameter.

Content-Type and Authorization headers example:

curl -X PUT -H'Content-Type: application/json' -H'Authorization:  Bearer $ACCESS_TOKEN' 'https://developer-api.etwater.com/api/v1/hello-unity/auth'

Response:

{
    "greetings": "Hello from Unity platform",
    "requestMethod: "PUT",
    "isAuthenticated": true
}

In last example $ACCESS_TOKEN placeholder should be replaced by real access token.

POSTMAN

On of the most popular UI application to interact with the HTTP web services is a POSTMAN application (https://www.getpostman.com/). It has an intuitive UI and available on all major platforms as a native application or as a Google’s Chrome extension.

In POSTMAN last cURL request will look like this:

And as a benefit it is possible to generate cURL requests from POSTMAN UI.

PHPStorm IDE REST Client

PHP as most commonly used language in web development often being used with a PHPStorm IDE. This IDE has a built-in REST Client UI tool that could be used to interact with Unity APIs.

REST client could be found under the Tools menu section:

And the last cURL example in this client will look like:

In general, everything remains the same, except an easier HTTP request options setting through IDE UI.

V1 | Communication Statistics | Session Schedule Statistics

Get Session Schedule Statistics

Request

curl "https://developer-api.etwater.com/api/v1/ccu-communication-statistics/session-schedule-statistics?page=0&size=10&sortField=nextSessionDateTime&sortDirection=desc&controllerId=example+string+value&projectId=example+string+value&hasMissedSessions=0&hasMissedSessionsDateFrom=example+string+value&hasMissedSessionsDateTo=example+string+value&unity=0&active=0" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "statistics": [
        {
            "controllerId": "example string value",
            "controllerSerialNumber": "example string value",
            "lastSuccessfulSessionDateTime": 201,
            "lastScheduledSuccessfulSessionDateTime": 137,
            "lastSessionDateTime": 567,
            "nextSessionDateTime": 465,
            "nextSessionDeadline": 759,
            "missedDaysNumber": 809,
            "controllerTimezoneOffset": 550,
            "userId": "example string value",
            "missedSessionsNumber": 165,
            "lastSuccessfulSessionId": "example string value",
            "lastSessionId": "example string value"
        }
    ],
    "page": 815,
    "size": 513,
    "total": 188
}

HTTP Request

GET /api/v1/ccu-communication-statistics/session-schedule-statistics

Request parameters

Name Type Part Required Description
Authorization string header true
page integer query false
size integer query false
sortField string query false
sortDirection string query false
controllerId string query false
projectId string query false
hasMissedSessions boolean query false
hasMissedSessionsDateFrom string query false
hasMissedSessionsDateTo string query false
unity boolean query false
active boolean query false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
statistics SessionScheduleStatisticApiResponse[ ] false
page integer false
size integer false
total integer false

SessionScheduleStatisticApiResponse

Name Type Required Description
controllerId string true
controllerSerialNumber string true
lastSuccessfulSessionDateTime integer false
lastScheduledSuccessfulSessionDateTime integer false
lastSessionDateTime integer false
nextSessionDateTime integer false
nextSessionDeadline integer false
missedDaysNumber integer false
controllerTimezoneOffset integer true
userId string false
missedSessionsNumber integer false
lastSuccessfulSessionId string false
lastSessionId string false

V1 | Controllers | Controller

Request

curl "https://developer-api.etwater.com/api/v1/ccu-management/controllers?page=0&size=10&activated=0&configured=0&suspended=1&projectId=example+string+value&searchTerm=example+string+value&unity=0&controllerStatus%5B0%5D=ACTIVE" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "serialNumber": "example string value",
        "sim": "example string value",
        "imsi": "example string value",
        "config": {
            "numberOfDials": 992,
            "dialScheduleArray": [
                {
                    "secOfDay": 556,
                    "skipDays": 544,
                    "retries": 731,
                    "delayMinutes": 881
                }
            ],
            "extraMinutesToFillPipes": 911,
            "ip": "example string value",
            "secondaryIp": "example string value",
            "login": "example string value",
            "password": "example string value",
            "logString": "example string value",
            "pwString": "example string value",
            "dialString": "example string value",
            "port": 419,
            "fertigationValveNumber": 649,
            "stationCount": 620,
            "flowLimits": {
                "overflowGroup0": 911,
                "underflowGroup0": 347,
                "overflowGroup1": 462,
                "underflowGroup1": 45,
                "leakLimitPPM": 130
            },
            "keystrokeTimeout": 506,
            "calibrationInfo": {
                "inchesOfRainPerTip": 751,
                "inchesOfRainStarted": 674,
                "inchesOfRainHeavy": 666
            },
            "shortCircuitThreshold": 411,
            "openCircuitThreshold": 838,
            "multiValveMode": false,
            "disableMSLWReset": false,
            "remoteControl": false,
            "allowableClockDriftSeconds": 645,
            "flowMeasurementEnabled": true,
            "requestAverageFlow": true,
            "icuTimeZoneOffsetMillis": 916,
            "adminSuspendStatus": 982,
            "wateringAdjustmentCoefficients": {
                "example_property_name": 550.9153960975425
            },
            "maxSimultaneousIrrigationValves": "1",
            "enableSMS": false,
            "icuModel": "example string value",
            "NOT_IN_USE": {
                "example_property_name": 252
            },
            "frequencyAdjustmentsCoefficients": {
                "example_property_name": 896
            },
            "timeZoneIdentifier": "example string value",
            "maxStationCount": 411,
            "ccuSuspendWatering": true,
            "ccuSuspendIsTimed": true
        },
        "userId": "example string value",
        "controllerStatus": "ACTIVE",
        "createdAt": 614,
        "updatedAt": 167,
        "ccuZones": {
            "example_property_name": {
                "name": "example string value",
                "number": 906,
                "projectId": "example string value",
                "areaRegionConfigStates": {
                    "example_property_name": true
                },
                "configured": false,
                "expectedFlowPPM": 612,
                "disableFlowSensing": false,
                "expectedFlowProcessState": 805,
                "startOfUpdatingFlow": 167,
                "updatePPM": false,
                "gpm": 973,
                "customGpm": 674,
                "expectedFlowProcessStateUpdatedAt": "example string value",
                "stationOverflowGroupNumber": 570
            }
        },
        "flowSensorSettings": {
            "flowSensorId": "example string value",
            "manufacturer": "example string value",
            "type": "example string value",
            "factorK": 336.0376387536701,
            "offset": 252.2042790670899
        },
        "configured": true,
        "activated": false,
        "projectId": "example string value",
        "name": "example string value",
        "firmwareVersion": "example string value",
        "unity": false,
        "multiValveSettings": {
            "multiValveMode": false,
            "maxSimultaneousIrrigationValves": 555,
            "masterValve": false,
            "boosterPump": false,
            "waterAloneStations": [
                514
            ]
        },
        "connectedAt": 176,
        "isPOTS": true,
        "modemTypeString": "example string value",
        "connectedSuccessfullyAt": 717,
        "connectedPlatform": "example string value",
        "modemSignalStrength": 958,
        "failedCallCount": 210,
        "rainSensorType": 418,
        "rainSensorEnabled": true,
        "icuFamily": "example string value",
        "iccid": "example string value",
        "nextConnectionAt": 99,
        "simNetworkType": "example string value",
        "modemTypeNumber": 220
    }
]

Dependent on:

Headers example:

where: {access_token} access token value.

Query param description:

Response body description:

HTTP Request

GET /api/v1/ccu-management/controllers

Request parameters

Name Type Part Required Description
Authorization string header true
page integer query false page number
size integer query false page size
activated boolean query false
configured boolean query false
suspended boolean query false
projectId string query false
searchTerm string query false
unity boolean query false
controllerStatus array query false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string false
serialNumber string false
sim string false
imsi string false
config CcuConfig false
userId string false
controllerStatus string false
createdAt integer false
updatedAt integer false
ccuZones Object for field ccuZones false
flowSensorSettings FlowSensorSettings false
configured boolean false
activated boolean false
projectId string false
name string false
firmwareVersion string false
unity boolean false
multiValveSettings MultiValveSettings false
connectedAt integer false
isPOTS boolean false
modemTypeString string false
connectedSuccessfullyAt integer false
connectedPlatform string false
modemSignalStrength integer false
failedCallCount integer false
rainSensorType integer false
rainSensorEnabled boolean false
icuFamily string false
iccid string false
nextConnectionAt integer false
simNetworkType string false
modemTypeNumber integer false

CcuConfig

Name Type Required Description
numberOfDials integer false
dialScheduleArray DialSchedule[ ] false
extraMinutesToFillPipes integer false
ip string false
secondaryIp string false
login string false
password string false
logString string false
pwString string false
dialString string false
port integer false
fertigationValveNumber integer false
stationCount integer false
flowLimits FlowLimitData false
keystrokeTimeout integer false
calibrationInfo TippingBucketCalibration false
shortCircuitThreshold integer false
openCircuitThreshold integer false
multiValveMode boolean false
disableMSLWReset boolean false
remoteControl boolean false
allowableClockDriftSeconds integer false
flowMeasurementEnabled boolean false
requestAverageFlow boolean false
icuTimeZoneOffsetMillis integer false
adminSuspendStatus integer false
wateringAdjustmentCoefficients Object for field wateringAdjustmentCoefficients false
maxSimultaneousIrrigationValves integer false
enableSMS boolean false
icuModel string false
NOT_IN_USE Object for field NOT_IN_USE false
frequencyAdjustmentsCoefficients Object for field frequencyAdjustmentsCoefficients false
timeZoneIdentifier string false
maxStationCount integer false
ccuSuspendWatering boolean false
ccuSuspendIsTimed boolean false

DialSchedule

Name Type Required Description
secOfDay integer true
skipDays integer true
retries integer true
delayMinutes integer true

FlowLimitData

Name Type Required Description
overflowGroup0 integer true
underflowGroup0 integer true
overflowGroup1 integer true
underflowGroup1 integer true
leakLimitPPM integer true

TippingBucketCalibration

Name Type Required Description
inchesOfRainPerTip integer false
inchesOfRainStarted integer false
inchesOfRainHeavy integer false

Object for field wateringAdjustmentCoefficients

Name Type Required Description
* number false

Object for field NOT_IN_USE

Name Type Required Description
* number false

Object for field frequencyAdjustmentsCoefficients

Name Type Required Description
* number false

Object for field ccuZones

Name Type Required Description
* CCUZone false

CCUZone

Name Type Required Description
name string false
number integer false
projectId string false
areaRegionConfigStates Object for field areaRegionConfigStates false
configured boolean false
expectedFlowPPM integer false
disableFlowSensing boolean false
expectedFlowProcessState integer false
startOfUpdatingFlow integer false
updatePPM boolean false
gpm number false
customGpm number false
expectedFlowProcessStateUpdatedAt string false
stationOverflowGroupNumber integer false

Object for field areaRegionConfigStates

Name Type Required Description
* boolean false

FlowSensorSettings

Name Type Required Description
flowSensorId string false
manufacturer string false
type string false
factorK number false
offset number false

MultiValveSettings

Name Type Required Description
multiValveMode boolean true
maxSimultaneousIrrigationValves integer true
masterValve boolean true
boosterPump boolean true
waterAloneStations integer[ ] true

Create controller in Unity system.

Request

curl "https://developer-api.etwater.com/api/v1/ccu-management/controllers" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"serialNumber\": \"example string value\",
    \"sim\": \"example string value\",
    \"imsi\": \"example string value\",
    \"config\": {
        \"numberOfDials\": 287,
        \"dialScheduleArray\": [
            {
                \"secOfDay\": 528,
                \"skipDays\": 284,
                \"retries\": 378,
                \"delayMinutes\": 915
            }
        ],
        \"extraMinutesToFillPipes\": 232,
        \"ip\": \"example string value\",
        \"secondaryIp\": \"example string value\",
        \"login\": \"example string value\",
        \"password\": \"example string value\",
        \"logString\": \"example string value\",
        \"pwString\": \"example string value\",
        \"dialString\": \"example string value\",
        \"port\": 787,
        \"fertigationValveNumber\": 396,
        \"stationCount\": 553,
        \"flowLimits\": {
            \"overflowGroup0\": 904,
            \"underflowGroup0\": 803,
            \"overflowGroup1\": 92,
            \"underflowGroup1\": 791,
            \"leakLimitPPM\": 355
        },
        \"keystrokeTimeout\": 979,
        \"calibrationInfo\": {
            \"inchesOfRainPerTip\": 103,
            \"inchesOfRainStarted\": 47,
            \"inchesOfRainHeavy\": 159
        },
        \"shortCircuitThreshold\": 589,
        \"openCircuitThreshold\": 90,
        \"multiValveMode\": false,
        \"disableMSLWReset\": true,
        \"remoteControl\": true,
        \"allowableClockDriftSeconds\": 816,
        \"flowMeasurementEnabled\": false,
        \"requestAverageFlow\": true,
        \"icuTimeZoneOffsetMillis\": 44,
        \"adminSuspendStatus\": 354,
        \"wateringAdjustmentCoefficients\": {
            \"example_property_name\": 925.882406963912
        },
        \"maxSimultaneousIrrigationValves\": \"1\",
        \"enableSMS\": true,
        \"icuModel\": \"example string value\",
        \"NOT_IN_USE\": {
            \"example_property_name\": 966.796823761797
        },
        \"frequencyAdjustmentsCoefficients\": {
            \"example_property_name\": 595.1502968534595
        },
        \"timeZoneIdentifier\": \"example string value\",
        \"maxStationCount\": 785,
        \"ccuSuspendWatering\": false,
        \"ccuSuspendIsTimed\": false
    },
    \"userId\": \"example string value\",
    \"controllerStatus\": \"DEACTIVATED\",
    \"createdAt\": 486,
    \"updatedAt\": 942,
    \"ccuZones\": {
        \"example_property_name\": {
            \"name\": \"example string value\",
            \"number\": 895,
            \"projectId\": \"example string value\",
            \"areaRegionConfigStates\": {
                \"example_property_name\": true
            },
            \"configured\": false,
            \"expectedFlowPPM\": 107,
            \"disableFlowSensing\": true,
            \"expectedFlowProcessState\": 787,
            \"startOfUpdatingFlow\": 406,
            \"updatePPM\": true,
            \"gpm\": 305,
            \"customGpm\": 326,
            \"expectedFlowProcessStateUpdatedAt\": \"example string value\",
            \"stationOverflowGroupNumber\": 245
        }
    },
    \"flowSensorSettings\": {
        \"flowSensorId\": \"example string value\",
        \"manufacturer\": \"example string value\",
        \"type\": \"example string value\",
        \"factorK\": 251.75765727262834,
        \"offset\": 5
    },
    \"configured\": true,
    \"activated\": false,
    \"projectId\": \"example string value\",
    \"name\": \"example string value\",
    \"firmwareVersion\": \"example string value\",
    \"unity\": true,
    \"multiValveSettings\": {
        \"multiValveMode\": false,
        \"maxSimultaneousIrrigationValves\": 134,
        \"masterValve\": true,
        \"boosterPump\": false,
        \"waterAloneStations\": [
            983
        ]
    },
    \"connectedAt\": 797,
    \"isPOTS\": true,
    \"modemTypeString\": \"example string value\",
    \"connectedSuccessfullyAt\": 487,
    \"connectedPlatform\": \"example string value\",
    \"modemSignalStrength\": 769,
    \"failedCallCount\": 900,
    \"rainSensorType\": 821,
    \"rainSensorEnabled\": true,
    \"icuFamily\": \"example string value\",
    \"iccid\": \"example string value\",
    \"nextConnectionAt\": 535,
    \"simNetworkType\": \"example string value\",
    \"modemTypeNumber\": 775
}"

On success, the above request returns response like

{
    "id": "example string value",
    "serialNumber": "example string value",
    "sim": "example string value",
    "imsi": "example string value",
    "config": {
        "numberOfDials": 648,
        "dialScheduleArray": [
            {
                "secOfDay": 159,
                "skipDays": 212,
                "retries": 332,
                "delayMinutes": 945
            }
        ],
        "extraMinutesToFillPipes": 500,
        "ip": "example string value",
        "secondaryIp": "example string value",
        "login": "example string value",
        "password": "example string value",
        "logString": "example string value",
        "pwString": "example string value",
        "dialString": "example string value",
        "port": 271,
        "fertigationValveNumber": 267,
        "stationCount": 736,
        "flowLimits": {
            "overflowGroup0": 201,
            "underflowGroup0": 730,
            "overflowGroup1": 748,
            "underflowGroup1": 2,
            "leakLimitPPM": 988
        },
        "keystrokeTimeout": 844,
        "calibrationInfo": {
            "inchesOfRainPerTip": 961,
            "inchesOfRainStarted": 770,
            "inchesOfRainHeavy": 166
        },
        "shortCircuitThreshold": 319,
        "openCircuitThreshold": 314,
        "multiValveMode": true,
        "disableMSLWReset": false,
        "remoteControl": true,
        "allowableClockDriftSeconds": 324,
        "flowMeasurementEnabled": false,
        "requestAverageFlow": true,
        "icuTimeZoneOffsetMillis": 939,
        "adminSuspendStatus": 546,
        "wateringAdjustmentCoefficients": {
            "example_property_name": 370.20813737539953
        },
        "maxSimultaneousIrrigationValves": "1",
        "enableSMS": true,
        "icuModel": "example string value",
        "NOT_IN_USE": {
            "example_property_name": 199.835583660675
        },
        "frequencyAdjustmentsCoefficients": {
            "example_property_name": 633
        },
        "timeZoneIdentifier": "example string value",
        "maxStationCount": 428,
        "ccuSuspendWatering": false,
        "ccuSuspendIsTimed": false
    },
    "userId": "example string value",
    "controllerStatus": "ACTIVE",
    "createdAt": 763,
    "updatedAt": 340,
    "ccuZones": {
        "example_property_name": {
            "name": "example string value",
            "number": 100,
            "projectId": "example string value",
            "areaRegionConfigStates": {
                "example_property_name": true
            },
            "configured": false,
            "expectedFlowPPM": 595,
            "disableFlowSensing": false,
            "expectedFlowProcessState": 59,
            "startOfUpdatingFlow": 666,
            "updatePPM": false,
            "gpm": 127,
            "customGpm": 155,
            "expectedFlowProcessStateUpdatedAt": "example string value",
            "stationOverflowGroupNumber": 672
        }
    },
    "flowSensorSettings": {
        "flowSensorId": "example string value",
        "manufacturer": "example string value",
        "type": "example string value",
        "factorK": 777.4598378583137,
        "offset": 486
    },
    "configured": true,
    "activated": false,
    "projectId": "example string value",
    "name": "example string value",
    "firmwareVersion": "example string value",
    "unity": false,
    "multiValveSettings": {
        "multiValveMode": false,
        "maxSimultaneousIrrigationValves": 895,
        "masterValve": true,
        "boosterPump": false,
        "waterAloneStations": [
            58
        ]
    },
    "connectedAt": 384,
    "isPOTS": true,
    "modemTypeString": "example string value",
    "connectedSuccessfullyAt": 169,
    "connectedPlatform": "example string value",
    "modemSignalStrength": 76,
    "failedCallCount": 394,
    "rainSensorType": 129,
    "rainSensorEnabled": true,
    "icuFamily": "example string value",
    "iccid": "example string value",
    "nextConnectionAt": 478,
    "simNetworkType": "example string value",
    "modemTypeNumber": 342
}

Dependent on:

Headers example:

where: {access_token} access token value.

The simplest way of controller creation is to provide only serialNumber to body request.

Example: json { "serialNumber": <string> }

Request body fields description:

Response body description:

HTTP Request

POST /api/v1/ccu-management/controllers

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
CcuController CcuController body true

CcuController

Name Type Required Description
id string false
serialNumber string false
sim string false
imsi string false
config CcuConfig false
userId string false
controllerStatus string false
createdAt integer false
updatedAt integer false
ccuZones Object for field ccuZones false
flowSensorSettings FlowSensorSettings false
configured boolean false
activated boolean false
projectId string false
name string false
firmwareVersion string false
unity boolean false
multiValveSettings MultiValveSettings false
connectedAt integer false
isPOTS boolean false
modemTypeString string false
connectedSuccessfullyAt integer false
connectedPlatform string false
modemSignalStrength integer false
failedCallCount integer false
rainSensorType integer false
rainSensorEnabled boolean false
icuFamily string false
iccid string false
nextConnectionAt integer false
simNetworkType string false
modemTypeNumber integer false

CcuConfig

Name Type Required Description
numberOfDials integer false
dialScheduleArray DialSchedule[ ] false
extraMinutesToFillPipes integer false
ip string false
secondaryIp string false
login string false
password string false
logString string false
pwString string false
dialString string false
port integer false
fertigationValveNumber integer false
stationCount integer false
flowLimits FlowLimitData false
keystrokeTimeout integer false
calibrationInfo TippingBucketCalibration false
shortCircuitThreshold integer false
openCircuitThreshold integer false
multiValveMode boolean false
disableMSLWReset boolean false
remoteControl boolean false
allowableClockDriftSeconds integer false
flowMeasurementEnabled boolean false
requestAverageFlow boolean false
icuTimeZoneOffsetMillis integer false
adminSuspendStatus integer false
wateringAdjustmentCoefficients Object for field wateringAdjustmentCoefficients false
maxSimultaneousIrrigationValves integer false
enableSMS boolean false
icuModel string false
NOT_IN_USE Object for field NOT_IN_USE false
frequencyAdjustmentsCoefficients Object for field frequencyAdjustmentsCoefficients false
timeZoneIdentifier string false
maxStationCount integer false
ccuSuspendWatering boolean false
ccuSuspendIsTimed boolean false

DialSchedule

Name Type Required Description
secOfDay integer true
skipDays integer true
retries integer true
delayMinutes integer true

FlowLimitData

Name Type Required Description
overflowGroup0 integer true
underflowGroup0 integer true
overflowGroup1 integer true
underflowGroup1 integer true
leakLimitPPM integer true

TippingBucketCalibration

Name Type Required Description
inchesOfRainPerTip integer false
inchesOfRainStarted integer false
inchesOfRainHeavy integer false

Object for field wateringAdjustmentCoefficients

Name Type Required Description
* number false

Object for field NOT_IN_USE

Name Type Required Description
* number false

Object for field frequencyAdjustmentsCoefficients

Name Type Required Description
* number false

Object for field ccuZones

Name Type Required Description
* CCUZone false

CCUZone

Name Type Required Description
name string false
number integer false
projectId string false
areaRegionConfigStates Object for field areaRegionConfigStates false
configured boolean false
expectedFlowPPM integer false
disableFlowSensing boolean false
expectedFlowProcessState integer false
startOfUpdatingFlow integer false
updatePPM boolean false
gpm number false
customGpm number false
expectedFlowProcessStateUpdatedAt string false
stationOverflowGroupNumber integer false

Object for field areaRegionConfigStates

Name Type Required Description
* boolean false

FlowSensorSettings

Name Type Required Description
flowSensorId string false
manufacturer string false
type string false
factorK number false
offset number false

MultiValveSettings

Name Type Required Description
multiValveMode boolean true
maxSimultaneousIrrigationValves integer true
masterValve boolean true
boosterPump boolean true
waterAloneStations integer[ ] true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
serialNumber string false
sim string false
imsi string false
config CcuConfig false
userId string false
controllerStatus string false
createdAt integer false
updatedAt integer false
ccuZones Object for field ccuZones false
flowSensorSettings FlowSensorSettings false
configured boolean false
activated boolean false
projectId string false
name string false
firmwareVersion string false
unity boolean false
multiValveSettings MultiValveSettings false
connectedAt integer false
isPOTS boolean false
modemTypeString string false
connectedSuccessfullyAt integer false
connectedPlatform string false
modemSignalStrength integer false
failedCallCount integer false
rainSensorType integer false
rainSensorEnabled boolean false
icuFamily string false
iccid string false
nextConnectionAt integer false
simNetworkType string false
modemTypeNumber integer false

CcuConfig

Name Type Required Description
numberOfDials integer false
dialScheduleArray DialSchedule[ ] false
extraMinutesToFillPipes integer false
ip string false
secondaryIp string false
login string false
password string false
logString string false
pwString string false
dialString string false
port integer false
fertigationValveNumber integer false
stationCount integer false
flowLimits FlowLimitData false
keystrokeTimeout integer false
calibrationInfo TippingBucketCalibration false
shortCircuitThreshold integer false
openCircuitThreshold integer false
multiValveMode boolean false
disableMSLWReset boolean false
remoteControl boolean false
allowableClockDriftSeconds integer false
flowMeasurementEnabled boolean false
requestAverageFlow boolean false
icuTimeZoneOffsetMillis integer false
adminSuspendStatus integer false
wateringAdjustmentCoefficients Object for field wateringAdjustmentCoefficients false
maxSimultaneousIrrigationValves integer false
enableSMS boolean false
icuModel string false
NOT_IN_USE Object for field NOT_IN_USE false
frequencyAdjustmentsCoefficients Object for field frequencyAdjustmentsCoefficients false
timeZoneIdentifier string false
maxStationCount integer false
ccuSuspendWatering boolean false
ccuSuspendIsTimed boolean false

DialSchedule

Name Type Required Description
secOfDay integer true
skipDays integer true
retries integer true
delayMinutes integer true

FlowLimitData

Name Type Required Description
overflowGroup0 integer true
underflowGroup0 integer true
overflowGroup1 integer true
underflowGroup1 integer true
leakLimitPPM integer true

TippingBucketCalibration

Name Type Required Description
inchesOfRainPerTip integer false
inchesOfRainStarted integer false
inchesOfRainHeavy integer false

Object for field wateringAdjustmentCoefficients

Name Type Required Description
* number false

Object for field NOT_IN_USE

Name Type Required Description
* number false

Object for field frequencyAdjustmentsCoefficients

Name Type Required Description
* number false

Object for field ccuZones

Name Type Required Description
* CCUZone false

CCUZone

Name Type Required Description
name string false
number integer false
projectId string false
areaRegionConfigStates Object for field areaRegionConfigStates false
configured boolean false
expectedFlowPPM integer false
disableFlowSensing boolean false
expectedFlowProcessState integer false
startOfUpdatingFlow integer false
updatePPM boolean false
gpm number false
customGpm number false
expectedFlowProcessStateUpdatedAt string false
stationOverflowGroupNumber integer false

Object for field areaRegionConfigStates

Name Type Required Description
* boolean false

FlowSensorSettings

Name Type Required Description
flowSensorId string false
manufacturer string false
type string false
factorK number false
offset number false

MultiValveSettings

Name Type Required Description
multiValveMode boolean true
maxSimultaneousIrrigationValves integer true
masterValve boolean true
boosterPump boolean true
waterAloneStations integer[ ] true

Create or update controllers

Request

curl "https://developer-api.etwater.com/api/v1/ccu-management/controllers" \
-X PATCH \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"id\": \"example string value\",
        \"serialNumber\": \"example string value\",
        \"sim\": \"example string value\",
        \"imsi\": \"example string value\",
        \"config\": {
            \"numberOfDials\": 647,
            \"dialScheduleArray\": [
                {
                    \"secOfDay\": 856,
                    \"skipDays\": 708,
                    \"retries\": 219,
                    \"delayMinutes\": 691
                }
            ],
            \"extraMinutesToFillPipes\": 9,
            \"ip\": \"example string value\",
            \"secondaryIp\": \"example string value\",
            \"login\": \"example string value\",
            \"password\": \"example string value\",
            \"logString\": \"example string value\",
            \"pwString\": \"example string value\",
            \"dialString\": \"example string value\",
            \"port\": 860,
            \"fertigationValveNumber\": 193,
            \"stationCount\": 257,
            \"flowLimits\": {
                \"overflowGroup0\": 790,
                \"underflowGroup0\": 386,
                \"overflowGroup1\": 290,
                \"underflowGroup1\": 887,
                \"leakLimitPPM\": 571
            },
            \"keystrokeTimeout\": 7,
            \"calibrationInfo\": {
                \"inchesOfRainPerTip\": 482,
                \"inchesOfRainStarted\": 789,
                \"inchesOfRainHeavy\": 100
            },
            \"shortCircuitThreshold\": 353,
            \"openCircuitThreshold\": 402,
            \"multiValveMode\": false,
            \"disableMSLWReset\": true,
            \"remoteControl\": true,
            \"allowableClockDriftSeconds\": 575,
            \"flowMeasurementEnabled\": false,
            \"requestAverageFlow\": true,
            \"icuTimeZoneOffsetMillis\": 568,
            \"adminSuspendStatus\": 576,
            \"wateringAdjustmentCoefficients\": {
                \"example_property_name\": 593
            },
            \"maxSimultaneousIrrigationValves\": \"1\",
            \"enableSMS\": true,
            \"icuModel\": \"example string value\",
            \"NOT_IN_USE\": {
                \"example_property_name\": 272.8677155789303
            },
            \"frequencyAdjustmentsCoefficients\": {
                \"example_property_name\": 684.4924710153102
            },
            \"timeZoneIdentifier\": \"example string value\",
            \"maxStationCount\": 264,
            \"ccuSuspendWatering\": false,
            \"ccuSuspendIsTimed\": false
        },
        \"userId\": \"example string value\",
        \"controllerStatus\": \"ACTIVE\",
        \"createdAt\": 663,
        \"updatedAt\": 764,
        \"ccuZones\": {
            \"example_property_name\": {
                \"name\": \"example string value\",
                \"number\": 614,
                \"projectId\": \"example string value\",
                \"areaRegionConfigStates\": {
                    \"example_property_name\": true
                },
                \"configured\": false,
                \"expectedFlowPPM\": 995,
                \"disableFlowSensing\": true,
                \"expectedFlowProcessState\": 170,
                \"startOfUpdatingFlow\": 119,
                \"updatePPM\": false,
                \"gpm\": 158.2109886958315,
                \"customGpm\": 814,
                \"expectedFlowProcessStateUpdatedAt\": \"example string value\",
                \"stationOverflowGroupNumber\": 903
            }
        },
        \"flowSensorSettings\": {
            \"flowSensorId\": \"example string value\",
            \"manufacturer\": \"example string value\",
            \"type\": \"example string value\",
            \"factorK\": 55.201874605939665,
            \"offset\": 251.54636160076893
        },
        \"configured\": true,
        \"activated\": false,
        \"projectId\": \"example string value\",
        \"name\": \"example string value\",
        \"firmwareVersion\": \"example string value\",
        \"unity\": true,
        \"multiValveSettings\": {
            \"multiValveMode\": false,
            \"maxSimultaneousIrrigationValves\": 423,
            \"masterValve\": true,
            \"boosterPump\": true,
            \"waterAloneStations\": [
                743
            ]
        },
        \"connectedAt\": 900,
        \"isPOTS\": true,
        \"modemTypeString\": \"example string value\",
        \"connectedSuccessfullyAt\": 880,
        \"connectedPlatform\": \"example string value\",
        \"modemSignalStrength\": 660,
        \"failedCallCount\": 648,
        \"rainSensorType\": 931,
        \"rainSensorEnabled\": true,
        \"icuFamily\": \"example string value\",
        \"iccid\": \"example string value\",
        \"nextConnectionAt\": 829,
        \"simNetworkType\": \"example string value\",
        \"modemTypeNumber\": 865
    }
]"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "serialNumber": "example string value",
        "sim": "example string value",
        "imsi": "example string value",
        "config": {
            "numberOfDials": 719,
            "dialScheduleArray": [
                {
                    "secOfDay": 238,
                    "skipDays": 138,
                    "retries": 570,
                    "delayMinutes": 624
                }
            ],
            "extraMinutesToFillPipes": 176,
            "ip": "example string value",
            "secondaryIp": "example string value",
            "login": "example string value",
            "password": "example string value",
            "logString": "example string value",
            "pwString": "example string value",
            "dialString": "example string value",
            "port": 497,
            "fertigationValveNumber": 470,
            "stationCount": 584,
            "flowLimits": {
                "overflowGroup0": 964,
                "underflowGroup0": 21,
                "overflowGroup1": 474,
                "underflowGroup1": 199,
                "leakLimitPPM": 227
            },
            "keystrokeTimeout": 218,
            "calibrationInfo": {
                "inchesOfRainPerTip": 187,
                "inchesOfRainStarted": 162,
                "inchesOfRainHeavy": 876
            },
            "shortCircuitThreshold": 833,
            "openCircuitThreshold": 366,
            "multiValveMode": true,
            "disableMSLWReset": false,
            "remoteControl": false,
            "allowableClockDriftSeconds": 656,
            "flowMeasurementEnabled": true,
            "requestAverageFlow": false,
            "icuTimeZoneOffsetMillis": 245,
            "adminSuspendStatus": 490,
            "wateringAdjustmentCoefficients": {
                "example_property_name": 940.3150691372878
            },
            "maxSimultaneousIrrigationValves": "1",
            "enableSMS": true,
            "icuModel": "example string value",
            "NOT_IN_USE": {
                "example_property_name": 326
            },
            "frequencyAdjustmentsCoefficients": {
                "example_property_name": 747
            },
            "timeZoneIdentifier": "example string value",
            "maxStationCount": 42,
            "ccuSuspendWatering": false,
            "ccuSuspendIsTimed": true
        },
        "userId": "example string value",
        "controllerStatus": "ACTIVE",
        "createdAt": 629,
        "updatedAt": 779,
        "ccuZones": {
            "example_property_name": {
                "name": "example string value",
                "number": 558,
                "projectId": "example string value",
                "areaRegionConfigStates": {
                    "example_property_name": true
                },
                "configured": true,
                "expectedFlowPPM": 732,
                "disableFlowSensing": false,
                "expectedFlowProcessState": 136,
                "startOfUpdatingFlow": 239,
                "updatePPM": false,
                "gpm": 809.4877613752558,
                "customGpm": 952.3557303251492,
                "expectedFlowProcessStateUpdatedAt": "example string value",
                "stationOverflowGroupNumber": 546
            }
        },
        "flowSensorSettings": {
            "flowSensorId": "example string value",
            "manufacturer": "example string value",
            "type": "example string value",
            "factorK": 503,
            "offset": 951.3874570612737
        },
        "configured": true,
        "activated": false,
        "projectId": "example string value",
        "name": "example string value",
        "firmwareVersion": "example string value",
        "unity": false,
        "multiValveSettings": {
            "multiValveMode": true,
            "maxSimultaneousIrrigationValves": 415,
            "masterValve": false,
            "boosterPump": false,
            "waterAloneStations": [
                271
            ]
        },
        "connectedAt": 459,
        "isPOTS": false,
        "modemTypeString": "example string value",
        "connectedSuccessfullyAt": 85,
        "connectedPlatform": "example string value",
        "modemSignalStrength": 293,
        "failedCallCount": 641,
        "rainSensorType": 527,
        "rainSensorEnabled": false,
        "icuFamily": "example string value",
        "iccid": "example string value",
        "nextConnectionAt": 208,
        "simNetworkType": "example string value",
        "modemTypeNumber": 289
    }
]

HTTP Request

PATCH /api/v1/ccu-management/controllers

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
CcuControllers CcuController[ ] body true

CcuController

Name Type Required Description
id string false
serialNumber string false
sim string false
imsi string false
config CcuConfig false
userId string false
controllerStatus string false
createdAt integer false
updatedAt integer false
ccuZones Object for field ccuZones false
flowSensorSettings FlowSensorSettings false
configured boolean false
activated boolean false
projectId string false
name string false
firmwareVersion string false
unity boolean false
multiValveSettings MultiValveSettings false
connectedAt integer false
isPOTS boolean false
modemTypeString string false
connectedSuccessfullyAt integer false
connectedPlatform string false
modemSignalStrength integer false
failedCallCount integer false
rainSensorType integer false
rainSensorEnabled boolean false
icuFamily string false
iccid string false
nextConnectionAt integer false
simNetworkType string false
modemTypeNumber integer false

CcuConfig

Name Type Required Description
numberOfDials integer false
dialScheduleArray DialSchedule[ ] false
extraMinutesToFillPipes integer false
ip string false
secondaryIp string false
login string false
password string false
logString string false
pwString string false
dialString string false
port integer false
fertigationValveNumber integer false
stationCount integer false
flowLimits FlowLimitData false
keystrokeTimeout integer false
calibrationInfo TippingBucketCalibration false
shortCircuitThreshold integer false
openCircuitThreshold integer false
multiValveMode boolean false
disableMSLWReset boolean false
remoteControl boolean false
allowableClockDriftSeconds integer false
flowMeasurementEnabled boolean false
requestAverageFlow boolean false
icuTimeZoneOffsetMillis integer false
adminSuspendStatus integer false
wateringAdjustmentCoefficients Object for field wateringAdjustmentCoefficients false
maxSimultaneousIrrigationValves integer false
enableSMS boolean false
icuModel string false
NOT_IN_USE Object for field NOT_IN_USE false
frequencyAdjustmentsCoefficients Object for field frequencyAdjustmentsCoefficients false
timeZoneIdentifier string false
maxStationCount integer false
ccuSuspendWatering boolean false
ccuSuspendIsTimed boolean false

DialSchedule

Name Type Required Description
secOfDay integer true
skipDays integer true
retries integer true
delayMinutes integer true

FlowLimitData

Name Type Required Description
overflowGroup0 integer true
underflowGroup0 integer true
overflowGroup1 integer true
underflowGroup1 integer true
leakLimitPPM integer true

TippingBucketCalibration

Name Type Required Description
inchesOfRainPerTip integer false
inchesOfRainStarted integer false
inchesOfRainHeavy integer false

Object for field wateringAdjustmentCoefficients

Name Type Required Description
* number false

Object for field NOT_IN_USE

Name Type Required Description
* number false

Object for field frequencyAdjustmentsCoefficients

Name Type Required Description
* number false

Object for field ccuZones

Name Type Required Description
* CCUZone false

CCUZone

Name Type Required Description
name string false
number integer false
projectId string false
areaRegionConfigStates Object for field areaRegionConfigStates false
configured boolean false
expectedFlowPPM integer false
disableFlowSensing boolean false
expectedFlowProcessState integer false
startOfUpdatingFlow integer false
updatePPM boolean false
gpm number false
customGpm number false
expectedFlowProcessStateUpdatedAt string false
stationOverflowGroupNumber integer false

Object for field areaRegionConfigStates

Name Type Required Description
* boolean false

FlowSensorSettings

Name Type Required Description
flowSensorId string false
manufacturer string false
type string false
factorK number false
offset number false

MultiValveSettings

Name Type Required Description
multiValveMode boolean true
maxSimultaneousIrrigationValves integer true
masterValve boolean true
boosterPump boolean true
waterAloneStations integer[ ] true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string false
serialNumber string false
sim string false
imsi string false
config CcuConfig false
userId string false
controllerStatus string false
createdAt integer false
updatedAt integer false
ccuZones Object for field ccuZones false
flowSensorSettings FlowSensorSettings false
configured boolean false
activated boolean false
projectId string false
name string false
firmwareVersion string false
unity boolean false
multiValveSettings MultiValveSettings false
connectedAt integer false
isPOTS boolean false
modemTypeString string false
connectedSuccessfullyAt integer false
connectedPlatform string false
modemSignalStrength integer false
failedCallCount integer false
rainSensorType integer false
rainSensorEnabled boolean false
icuFamily string false
iccid string false
nextConnectionAt integer false
simNetworkType string false
modemTypeNumber integer false

CcuConfig

Name Type Required Description
numberOfDials integer false
dialScheduleArray DialSchedule[ ] false
extraMinutesToFillPipes integer false
ip string false
secondaryIp string false
login string false
password string false
logString string false
pwString string false
dialString string false
port integer false
fertigationValveNumber integer false
stationCount integer false
flowLimits FlowLimitData false
keystrokeTimeout integer false
calibrationInfo TippingBucketCalibration false
shortCircuitThreshold integer false
openCircuitThreshold integer false
multiValveMode boolean false
disableMSLWReset boolean false
remoteControl boolean false
allowableClockDriftSeconds integer false
flowMeasurementEnabled boolean false
requestAverageFlow boolean false
icuTimeZoneOffsetMillis integer false
adminSuspendStatus integer false
wateringAdjustmentCoefficients Object for field wateringAdjustmentCoefficients false
maxSimultaneousIrrigationValves integer false
enableSMS boolean false
icuModel string false
NOT_IN_USE Object for field NOT_IN_USE false
frequencyAdjustmentsCoefficients Object for field frequencyAdjustmentsCoefficients false
timeZoneIdentifier string false
maxStationCount integer false
ccuSuspendWatering boolean false
ccuSuspendIsTimed boolean false

DialSchedule

Name Type Required Description
secOfDay integer true
skipDays integer true
retries integer true
delayMinutes integer true

FlowLimitData

Name Type Required Description
overflowGroup0 integer true
underflowGroup0 integer true
overflowGroup1 integer true
underflowGroup1 integer true
leakLimitPPM integer true

TippingBucketCalibration

Name Type Required Description
inchesOfRainPerTip integer false
inchesOfRainStarted integer false
inchesOfRainHeavy integer false

Object for field wateringAdjustmentCoefficients

Name Type Required Description
* number false

Object for field NOT_IN_USE

Name Type Required Description
* number false

Object for field frequencyAdjustmentsCoefficients

Name Type Required Description
* number false

Object for field ccuZones

Name Type Required Description
* CCUZone false

CCUZone

Name Type Required Description
name string false
number integer false
projectId string false
areaRegionConfigStates Object for field areaRegionConfigStates false
configured boolean false
expectedFlowPPM integer false
disableFlowSensing boolean false
expectedFlowProcessState integer false
startOfUpdatingFlow integer false
updatePPM boolean false
gpm number false
customGpm number false
expectedFlowProcessStateUpdatedAt string false
stationOverflowGroupNumber integer false

Object for field areaRegionConfigStates

Name Type Required Description
* boolean false

FlowSensorSettings

Name Type Required Description
flowSensorId string false
manufacturer string false
type string false
factorK number false
offset number false

MultiValveSettings

Name Type Required Description
multiValveMode boolean true
maxSimultaneousIrrigationValves integer true
masterValve boolean true
boosterPump boolean true
waterAloneStations integer[ ] true

Retrieves controller by controller id.

Request

curl "https://developer-api.etwater.com/api/v1/ccu-management/controllers/{controllerId}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "serialNumber": "example string value",
    "sim": "example string value",
    "imsi": "example string value",
    "config": {
        "numberOfDials": 505,
        "dialScheduleArray": [
            {
                "secOfDay": 990,
                "skipDays": 695,
                "retries": 435,
                "delayMinutes": 35
            }
        ],
        "extraMinutesToFillPipes": 538,
        "ip": "example string value",
        "secondaryIp": "example string value",
        "login": "example string value",
        "password": "example string value",
        "logString": "example string value",
        "pwString": "example string value",
        "dialString": "example string value",
        "port": 670,
        "fertigationValveNumber": 358,
        "stationCount": 382,
        "flowLimits": {
            "overflowGroup0": 199,
            "underflowGroup0": 332,
            "overflowGroup1": 720,
            "underflowGroup1": 501,
            "leakLimitPPM": 835
        },
        "keystrokeTimeout": 306,
        "calibrationInfo": {
            "inchesOfRainPerTip": 377,
            "inchesOfRainStarted": 360,
            "inchesOfRainHeavy": 533
        },
        "shortCircuitThreshold": 586,
        "openCircuitThreshold": 873,
        "multiValveMode": true,
        "disableMSLWReset": true,
        "remoteControl": false,
        "allowableClockDriftSeconds": 129,
        "flowMeasurementEnabled": false,
        "requestAverageFlow": true,
        "icuTimeZoneOffsetMillis": 609,
        "adminSuspendStatus": 916,
        "wateringAdjustmentCoefficients": {
            "example_property_name": 947
        },
        "maxSimultaneousIrrigationValves": "1",
        "enableSMS": false,
        "icuModel": "example string value",
        "NOT_IN_USE": {
            "example_property_name": 856.8261367533478
        },
        "frequencyAdjustmentsCoefficients": {
            "example_property_name": 427.0207679024994
        },
        "timeZoneIdentifier": "example string value",
        "maxStationCount": 561,
        "ccuSuspendWatering": true,
        "ccuSuspendIsTimed": false
    },
    "userId": "example string value",
    "controllerStatus": "DELETED",
    "createdAt": 898,
    "updatedAt": 106,
    "ccuZones": {
        "example_property_name": {
            "name": "example string value",
            "number": 759,
            "projectId": "example string value",
            "areaRegionConfigStates": {
                "example_property_name": false
            },
            "configured": false,
            "expectedFlowPPM": 719,
            "disableFlowSensing": true,
            "expectedFlowProcessState": 612,
            "startOfUpdatingFlow": 718,
            "updatePPM": false,
            "gpm": 44,
            "customGpm": 788.0518789347502,
            "expectedFlowProcessStateUpdatedAt": "example string value",
            "stationOverflowGroupNumber": 511
        }
    },
    "flowSensorSettings": {
        "flowSensorId": "example string value",
        "manufacturer": "example string value",
        "type": "example string value",
        "factorK": 670,
        "offset": 537.5182868621863
    },
    "configured": false,
    "activated": false,
    "projectId": "example string value",
    "name": "example string value",
    "firmwareVersion": "example string value",
    "unity": true,
    "multiValveSettings": {
        "multiValveMode": false,
        "maxSimultaneousIrrigationValves": 48,
        "masterValve": false,
        "boosterPump": false,
        "waterAloneStations": [
            101
        ]
    },
    "connectedAt": 937,
    "isPOTS": true,
    "modemTypeString": "example string value",
    "connectedSuccessfullyAt": 13,
    "connectedPlatform": "example string value",
    "modemSignalStrength": 229,
    "failedCallCount": 529,
    "rainSensorType": 116,
    "rainSensorEnabled": false,
    "icuFamily": "example string value",
    "iccid": "example string value",
    "nextConnectionAt": 318,
    "simNetworkType": "example string value",
    "modemTypeNumber": 659
}

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

{controllerId} - controller id value.

HTTP Request

GET /api/v1/ccu-management/controllers/{controllerId}

Request parameters

Name Type Part Required Description
Authorization string header true
controllerId string path true

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
serialNumber string false
sim string false
imsi string false
config CcuConfig false
userId string false
controllerStatus string false
createdAt integer false
updatedAt integer false
ccuZones Object for field ccuZones false
flowSensorSettings FlowSensorSettings false
configured boolean false
activated boolean false
projectId string false
name string false
firmwareVersion string false
unity boolean false
multiValveSettings MultiValveSettings false
connectedAt integer false
isPOTS boolean false
modemTypeString string false
connectedSuccessfullyAt integer false
connectedPlatform string false
modemSignalStrength integer false
failedCallCount integer false
rainSensorType integer false
rainSensorEnabled boolean false
icuFamily string false
iccid string false
nextConnectionAt integer false
simNetworkType string false
modemTypeNumber integer false

CcuConfig

Name Type Required Description
numberOfDials integer false
dialScheduleArray DialSchedule[ ] false
extraMinutesToFillPipes integer false
ip string false
secondaryIp string false
login string false
password string false
logString string false
pwString string false
dialString string false
port integer false
fertigationValveNumber integer false
stationCount integer false
flowLimits FlowLimitData false
keystrokeTimeout integer false
calibrationInfo TippingBucketCalibration false
shortCircuitThreshold integer false
openCircuitThreshold integer false
multiValveMode boolean false
disableMSLWReset boolean false
remoteControl boolean false
allowableClockDriftSeconds integer false
flowMeasurementEnabled boolean false
requestAverageFlow boolean false
icuTimeZoneOffsetMillis integer false
adminSuspendStatus integer false
wateringAdjustmentCoefficients Object for field wateringAdjustmentCoefficients false
maxSimultaneousIrrigationValves integer false
enableSMS boolean false
icuModel string false
NOT_IN_USE Object for field NOT_IN_USE false
frequencyAdjustmentsCoefficients Object for field frequencyAdjustmentsCoefficients false
timeZoneIdentifier string false
maxStationCount integer false
ccuSuspendWatering boolean false
ccuSuspendIsTimed boolean false

DialSchedule

Name Type Required Description
secOfDay integer true
skipDays integer true
retries integer true
delayMinutes integer true

FlowLimitData

Name Type Required Description
overflowGroup0 integer true
underflowGroup0 integer true
overflowGroup1 integer true
underflowGroup1 integer true
leakLimitPPM integer true

TippingBucketCalibration

Name Type Required Description
inchesOfRainPerTip integer false
inchesOfRainStarted integer false
inchesOfRainHeavy integer false

Object for field wateringAdjustmentCoefficients

Name Type Required Description
* number false

Object for field NOT_IN_USE

Name Type Required Description
* number false

Object for field frequencyAdjustmentsCoefficients

Name Type Required Description
* number false

Object for field ccuZones

Name Type Required Description
* CCUZone false

CCUZone

Name Type Required Description
name string false
number integer false
projectId string false
areaRegionConfigStates Object for field areaRegionConfigStates false
configured boolean false
expectedFlowPPM integer false
disableFlowSensing boolean false
expectedFlowProcessState integer false
startOfUpdatingFlow integer false
updatePPM boolean false
gpm number false
customGpm number false
expectedFlowProcessStateUpdatedAt string false
stationOverflowGroupNumber integer false

Object for field areaRegionConfigStates

Name Type Required Description
* boolean false

FlowSensorSettings

Name Type Required Description
flowSensorId string false
manufacturer string false
type string false
factorK number false
offset number false

MultiValveSettings

Name Type Required Description
multiValveMode boolean true
maxSimultaneousIrrigationValves integer true
masterValve boolean true
boosterPump boolean true
waterAloneStations integer[ ] true

Updates controller in Unity system by controller id.

Request

curl "https://developer-api.etwater.com/api/v1/ccu-management/controllers/{controllerId}" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"serialNumber\": \"example string value\",
    \"sim\": \"example string value\",
    \"imsi\": \"example string value\",
    \"config\": {
        \"numberOfDials\": 487,
        \"dialScheduleArray\": [
            {
                \"secOfDay\": 1000,
                \"skipDays\": 500,
                \"retries\": 597,
                \"delayMinutes\": 363
            }
        ],
        \"extraMinutesToFillPipes\": 599,
        \"ip\": \"example string value\",
        \"secondaryIp\": \"example string value\",
        \"login\": \"example string value\",
        \"password\": \"example string value\",
        \"logString\": \"example string value\",
        \"pwString\": \"example string value\",
        \"dialString\": \"example string value\",
        \"port\": 933,
        \"fertigationValveNumber\": 280,
        \"stationCount\": 250,
        \"flowLimits\": {
            \"overflowGroup0\": 198,
            \"underflowGroup0\": 37,
            \"overflowGroup1\": 270,
            \"underflowGroup1\": 761,
            \"leakLimitPPM\": 621
        },
        \"keystrokeTimeout\": 786,
        \"calibrationInfo\": {
            \"inchesOfRainPerTip\": 401,
            \"inchesOfRainStarted\": 943,
            \"inchesOfRainHeavy\": 906
        },
        \"shortCircuitThreshold\": 42,
        \"openCircuitThreshold\": 428,
        \"multiValveMode\": true,
        \"disableMSLWReset\": false,
        \"remoteControl\": true,
        \"allowableClockDriftSeconds\": 172,
        \"flowMeasurementEnabled\": true,
        \"requestAverageFlow\": false,
        \"icuTimeZoneOffsetMillis\": 371,
        \"adminSuspendStatus\": 606,
        \"wateringAdjustmentCoefficients\": {
            \"example_property_name\": 851
        },
        \"maxSimultaneousIrrigationValves\": \"1\",
        \"enableSMS\": true,
        \"icuModel\": \"example string value\",
        \"NOT_IN_USE\": {
            \"example_property_name\": 264.01117921993654
        },
        \"frequencyAdjustmentsCoefficients\": {
            \"example_property_name\": 427
        },
        \"timeZoneIdentifier\": \"example string value\",
        \"maxStationCount\": 714,
        \"ccuSuspendWatering\": true,
        \"ccuSuspendIsTimed\": true
    },
    \"userId\": \"example string value\",
    \"controllerStatus\": \"DEACTIVATED\",
    \"createdAt\": 530,
    \"updatedAt\": 858,
    \"ccuZones\": {
        \"example_property_name\": {
            \"name\": \"example string value\",
            \"number\": 351,
            \"projectId\": \"example string value\",
            \"areaRegionConfigStates\": {
                \"example_property_name\": false
            },
            \"configured\": true,
            \"expectedFlowPPM\": 643,
            \"disableFlowSensing\": true,
            \"expectedFlowProcessState\": 975,
            \"startOfUpdatingFlow\": 846,
            \"updatePPM\": false,
            \"gpm\": 720,
            \"customGpm\": 614,
            \"expectedFlowProcessStateUpdatedAt\": \"example string value\",
            \"stationOverflowGroupNumber\": 816
        }
    },
    \"flowSensorSettings\": {
        \"flowSensorId\": \"example string value\",
        \"manufacturer\": \"example string value\",
        \"type\": \"example string value\",
        \"factorK\": 484.9874155991652,
        \"offset\": 293
    },
    \"configured\": true,
    \"activated\": true,
    \"projectId\": \"example string value\",
    \"name\": \"example string value\",
    \"firmwareVersion\": \"example string value\",
    \"unity\": true,
    \"multiValveSettings\": {
        \"multiValveMode\": false,
        \"maxSimultaneousIrrigationValves\": 257,
        \"masterValve\": false,
        \"boosterPump\": true,
        \"waterAloneStations\": [
            310
        ]
    },
    \"connectedAt\": 358,
    \"isPOTS\": true,
    \"modemTypeString\": \"example string value\",
    \"connectedSuccessfullyAt\": 530,
    \"connectedPlatform\": \"example string value\",
    \"modemSignalStrength\": 893,
    \"failedCallCount\": 394,
    \"rainSensorType\": 555,
    \"rainSensorEnabled\": true,
    \"icuFamily\": \"example string value\",
    \"iccid\": \"example string value\",
    \"nextConnectionAt\": 78,
    \"simNetworkType\": \"example string value\",
    \"modemTypeNumber\": 946
}"

On success, the above request returns response like

{
    "id": "example string value",
    "serialNumber": "example string value",
    "sim": "example string value",
    "imsi": "example string value",
    "config": {
        "numberOfDials": 826,
        "dialScheduleArray": [
            {
                "secOfDay": 958,
                "skipDays": 575,
                "retries": 291,
                "delayMinutes": 165
            }
        ],
        "extraMinutesToFillPipes": 924,
        "ip": "example string value",
        "secondaryIp": "example string value",
        "login": "example string value",
        "password": "example string value",
        "logString": "example string value",
        "pwString": "example string value",
        "dialString": "example string value",
        "port": 979,
        "fertigationValveNumber": 212,
        "stationCount": 863,
        "flowLimits": {
            "overflowGroup0": 197,
            "underflowGroup0": 947,
            "overflowGroup1": 701,
            "underflowGroup1": 212,
            "leakLimitPPM": 80
        },
        "keystrokeTimeout": 210,
        "calibrationInfo": {
            "inchesOfRainPerTip": 672,
            "inchesOfRainStarted": 63,
            "inchesOfRainHeavy": 246
        },
        "shortCircuitThreshold": 825,
        "openCircuitThreshold": 7,
        "multiValveMode": false,
        "disableMSLWReset": false,
        "remoteControl": true,
        "allowableClockDriftSeconds": 763,
        "flowMeasurementEnabled": false,
        "requestAverageFlow": false,
        "icuTimeZoneOffsetMillis": 524,
        "adminSuspendStatus": 608,
        "wateringAdjustmentCoefficients": {
            "example_property_name": 60
        },
        "maxSimultaneousIrrigationValves": "1",
        "enableSMS": true,
        "icuModel": "example string value",
        "NOT_IN_USE": {
            "example_property_name": 680
        },
        "frequencyAdjustmentsCoefficients": {
            "example_property_name": 554
        },
        "timeZoneIdentifier": "example string value",
        "maxStationCount": 328,
        "ccuSuspendWatering": true,
        "ccuSuspendIsTimed": true
    },
    "userId": "example string value",
    "controllerStatus": "ACTIVE",
    "createdAt": 86,
    "updatedAt": 740,
    "ccuZones": {
        "example_property_name": {
            "name": "example string value",
            "number": 734,
            "projectId": "example string value",
            "areaRegionConfigStates": {
                "example_property_name": false
            },
            "configured": true,
            "expectedFlowPPM": 551,
            "disableFlowSensing": false,
            "expectedFlowProcessState": 832,
            "startOfUpdatingFlow": 596,
            "updatePPM": true,
            "gpm": 579,
            "customGpm": 424.89973149490527,
            "expectedFlowProcessStateUpdatedAt": "example string value",
            "stationOverflowGroupNumber": 512
        }
    },
    "flowSensorSettings": {
        "flowSensorId": "example string value",
        "manufacturer": "example string value",
        "type": "example string value",
        "factorK": 997.3703259589944,
        "offset": 380
    },
    "configured": true,
    "activated": false,
    "projectId": "example string value",
    "name": "example string value",
    "firmwareVersion": "example string value",
    "unity": false,
    "multiValveSettings": {
        "multiValveMode": true,
        "maxSimultaneousIrrigationValves": 407,
        "masterValve": true,
        "boosterPump": false,
        "waterAloneStations": [
            562
        ]
    },
    "connectedAt": 118,
    "isPOTS": true,
    "modemTypeString": "example string value",
    "connectedSuccessfullyAt": 829,
    "connectedPlatform": "example string value",
    "modemSignalStrength": 108,
    "failedCallCount": 668,
    "rainSensorType": 332,
    "rainSensorEnabled": false,
    "icuFamily": "example string value",
    "iccid": "example string value",
    "nextConnectionAt": 836,
    "simNetworkType": "example string value",
    "modemTypeNumber": 50
}

Note, update operation does not do merge, in case some fields are not set their value will be reset to null.

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

{controllerId} - controller id value.

Request body description:

In case serial number already exist in system, validation error will be returned.

HTTP Request

PUT /api/v1/ccu-management/controllers/{controllerId}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
controllerId string path true
CcuController CcuController body true

CcuController

Name Type Required Description
id string false
serialNumber string false
sim string false
imsi string false
config CcuConfig false
userId string false
controllerStatus string false
createdAt integer false
updatedAt integer false
ccuZones Object for field ccuZones false
flowSensorSettings FlowSensorSettings false
configured boolean false
activated boolean false
projectId string false
name string false
firmwareVersion string false
unity boolean false
multiValveSettings MultiValveSettings false
connectedAt integer false
isPOTS boolean false
modemTypeString string false
connectedSuccessfullyAt integer false
connectedPlatform string false
modemSignalStrength integer false
failedCallCount integer false
rainSensorType integer false
rainSensorEnabled boolean false
icuFamily string false
iccid string false
nextConnectionAt integer false
simNetworkType string false
modemTypeNumber integer false

CcuConfig

Name Type Required Description
numberOfDials integer false
dialScheduleArray DialSchedule[ ] false
extraMinutesToFillPipes integer false
ip string false
secondaryIp string false
login string false
password string false
logString string false
pwString string false
dialString string false
port integer false
fertigationValveNumber integer false
stationCount integer false
flowLimits FlowLimitData false
keystrokeTimeout integer false
calibrationInfo TippingBucketCalibration false
shortCircuitThreshold integer false
openCircuitThreshold integer false
multiValveMode boolean false
disableMSLWReset boolean false
remoteControl boolean false
allowableClockDriftSeconds integer false
flowMeasurementEnabled boolean false
requestAverageFlow boolean false
icuTimeZoneOffsetMillis integer false
adminSuspendStatus integer false
wateringAdjustmentCoefficients Object for field wateringAdjustmentCoefficients false
maxSimultaneousIrrigationValves integer false
enableSMS boolean false
icuModel string false
NOT_IN_USE Object for field NOT_IN_USE false
frequencyAdjustmentsCoefficients Object for field frequencyAdjustmentsCoefficients false
timeZoneIdentifier string false
maxStationCount integer false
ccuSuspendWatering boolean false
ccuSuspendIsTimed boolean false

DialSchedule

Name Type Required Description
secOfDay integer true
skipDays integer true
retries integer true
delayMinutes integer true

FlowLimitData

Name Type Required Description
overflowGroup0 integer true
underflowGroup0 integer true
overflowGroup1 integer true
underflowGroup1 integer true
leakLimitPPM integer true

TippingBucketCalibration

Name Type Required Description
inchesOfRainPerTip integer false
inchesOfRainStarted integer false
inchesOfRainHeavy integer false

Object for field wateringAdjustmentCoefficients

Name Type Required Description
* number false

Object for field NOT_IN_USE

Name Type Required Description
* number false

Object for field frequencyAdjustmentsCoefficients

Name Type Required Description
* number false

Object for field ccuZones

Name Type Required Description
* CCUZone false

CCUZone

Name Type Required Description
name string false
number integer false
projectId string false
areaRegionConfigStates Object for field areaRegionConfigStates false
configured boolean false
expectedFlowPPM integer false
disableFlowSensing boolean false
expectedFlowProcessState integer false
startOfUpdatingFlow integer false
updatePPM boolean false
gpm number false
customGpm number false
expectedFlowProcessStateUpdatedAt string false
stationOverflowGroupNumber integer false

Object for field areaRegionConfigStates

Name Type Required Description
* boolean false

FlowSensorSettings

Name Type Required Description
flowSensorId string false
manufacturer string false
type string false
factorK number false
offset number false

MultiValveSettings

Name Type Required Description
multiValveMode boolean true
maxSimultaneousIrrigationValves integer true
masterValve boolean true
boosterPump boolean true
waterAloneStations integer[ ] true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
serialNumber string false
sim string false
imsi string false
config CcuConfig false
userId string false
controllerStatus string false
createdAt integer false
updatedAt integer false
ccuZones Object for field ccuZones false
flowSensorSettings FlowSensorSettings false
configured boolean false
activated boolean false
projectId string false
name string false
firmwareVersion string false
unity boolean false
multiValveSettings MultiValveSettings false
connectedAt integer false
isPOTS boolean false
modemTypeString string false
connectedSuccessfullyAt integer false
connectedPlatform string false
modemSignalStrength integer false
failedCallCount integer false
rainSensorType integer false
rainSensorEnabled boolean false
icuFamily string false
iccid string false
nextConnectionAt integer false
simNetworkType string false
modemTypeNumber integer false

CcuConfig

Name Type Required Description
numberOfDials integer false
dialScheduleArray DialSchedule[ ] false
extraMinutesToFillPipes integer false
ip string false
secondaryIp string false
login string false
password string false
logString string false
pwString string false
dialString string false
port integer false
fertigationValveNumber integer false
stationCount integer false
flowLimits FlowLimitData false
keystrokeTimeout integer false
calibrationInfo TippingBucketCalibration false
shortCircuitThreshold integer false
openCircuitThreshold integer false
multiValveMode boolean false
disableMSLWReset boolean false
remoteControl boolean false
allowableClockDriftSeconds integer false
flowMeasurementEnabled boolean false
requestAverageFlow boolean false
icuTimeZoneOffsetMillis integer false
adminSuspendStatus integer false
wateringAdjustmentCoefficients Object for field wateringAdjustmentCoefficients false
maxSimultaneousIrrigationValves integer false
enableSMS boolean false
icuModel string false
NOT_IN_USE Object for field NOT_IN_USE false
frequencyAdjustmentsCoefficients Object for field frequencyAdjustmentsCoefficients false
timeZoneIdentifier string false
maxStationCount integer false
ccuSuspendWatering boolean false
ccuSuspendIsTimed boolean false

DialSchedule

Name Type Required Description
secOfDay integer true
skipDays integer true
retries integer true
delayMinutes integer true

FlowLimitData

Name Type Required Description
overflowGroup0 integer true
underflowGroup0 integer true
overflowGroup1 integer true
underflowGroup1 integer true
leakLimitPPM integer true

TippingBucketCalibration

Name Type Required Description
inchesOfRainPerTip integer false
inchesOfRainStarted integer false
inchesOfRainHeavy integer false

Object for field wateringAdjustmentCoefficients

Name Type Required Description
* number false

Object for field NOT_IN_USE

Name Type Required Description
* number false

Object for field frequencyAdjustmentsCoefficients

Name Type Required Description
* number false

Object for field ccuZones

Name Type Required Description
* CCUZone false

CCUZone

Name Type Required Description
name string false
number integer false
projectId string false
areaRegionConfigStates Object for field areaRegionConfigStates false
configured boolean false
expectedFlowPPM integer false
disableFlowSensing boolean false
expectedFlowProcessState integer false
startOfUpdatingFlow integer false
updatePPM boolean false
gpm number false
customGpm number false
expectedFlowProcessStateUpdatedAt string false
stationOverflowGroupNumber integer false

Object for field areaRegionConfigStates

Name Type Required Description
* boolean false

FlowSensorSettings

Name Type Required Description
flowSensorId string false
manufacturer string false
type string false
factorK number false
offset number false

MultiValveSettings

Name Type Required Description
multiValveMode boolean true
maxSimultaneousIrrigationValves integer true
masterValve boolean true
boosterPump boolean true
waterAloneStations integer[ ] true

V1 | Landscape | Search

The Sites Healthcare Landscape API returns landscape characteristics for a particular location, including elevation, slope, soil type and its percentage of clay, permiability, etc.

Get landscape data for a given location

Request

curl "https://developer-api.etwater.com/api/v1/sites-healthcare/landscape?lat=123.37403424241&lng=306.16712118786" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "landscapeData": {
        "id": "example string value",
        "muKey": "example string value",
        "elevation": 695.7914595006926,
        "slope": 651.2187405727891,
        "asa": 703,
        "albedoDry": 360.97654065162715,
        "createdAt": 391,
        "updatedAt": 666,
        "soilComponents": [
            {
                "componentKey": "example string value",
                "componentName": "example string value",
                "componentPercents": 920,
                "layers": [
                    {
                        "textureClass": 402,
                        "paw": 753,
                        "horizonName": "example string value",
                        "sandPercents": 604.9366642743985,
                        "siltPercents": 774,
                        "clayPercents": 491,
                        "horizonDepth": 282,
                        "horizonThickness": 870,
                        "soilRate": 505
                    }
                ]
            }
        ]
    },
    "landscapeDetails": {
        "id": "example string value",
        "elevationMeters": 451,
        "allowedSurfaceAccumulation": 890.9898781641339,
        "plantAvailableWater": 205,
        "soakRateMmPerMinute": 83.56475833969412,
        "slopeDegree": 428
    }
}

HTTP Request

GET /api/v1/sites-healthcare/landscape

Request parameters

Name Type Part Required Description
Authorization string header true
lat number query true latitude
lng number query true longtitude

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
landscapeData LandscapeData false
landscapeDetails LandscapeDetails false

LandscapeData

Name Type Required Description
id string false
muKey string false
elevation number false
slope number false
asa number false
albedoDry number false
createdAt integer false
updatedAt integer false
soilComponents SoilComponent[ ] false

SoilComponent

Name Type Required Description
componentKey string false
componentName string false
componentPercents integer false
layers SoilLayer[ ] false

SoilLayer

Name Type Required Description
textureClass integer false
paw number false
horizonName string false
sandPercents number false
siltPercents number false
clayPercents number false
horizonDepth integer false
horizonThickness integer false
soilRate number false

LandscapeDetails

Name Type Required Description
id string false
elevationMeters number false
allowedSurfaceAccumulation number false
plantAvailableWater number false
soakRateMmPerMinute number false
slopeDegree integer false

V1 | OAUTH | Authentication

The API Gateway OAuth is used to create, manage and validate logins for your users and give them access to ET Unity services.

Logout

Request

curl "https://developer-api.etwater.com/api/v1/oauth/logout" \
-X POST \
-H "Authorization: example string value"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v1/oauth/logout

Request parameters

Name Type Part Required Description
Authorization string header true

HTTP Responses

Code Description
204 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Get Authentication Token

Request

curl "https://developer-api.etwater.com/api/v1/oauth/token" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data "grant_type=example+string+value&username=example+string+value&password=example+string+value&scope=example+string+value&is_single_use=example+string+value"

On success, the above request returns response like

{
    "access_token": "example string value",
    "expires_in": 861,
    "token_type": "example string value",
    "scope": "example string value",
    "refresh_token": "example string value"
}

HTTP Request

POST /api/v1/oauth/token

Request parameters

Name Type Part Required Description
grant_type string formData true
username string formData false
password string formData false
scope string formData false
is_single_use string formData false
Authorization string header true
Content-Type string header true

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
access_token string true
expires_in integer true
token_type string true
scope string false
refresh_token string false

V1 | OIP | Online Report

The Sites Dashboard OIP Report API creates, or retrieves a previously created, ETwater Optimized Irrigation Plan (OIP). An OIP is a detailed report with projected water use and local soil and climate data, including several graphs and tables. See it in use at www.etwater.com/plan

Create OIP Report

Request

curl "https://developer-api.etwater.com/api/v1/sites-dashboard/oip/projects/{projectId}/reports" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"projectId\": \"example string value\"
}"

On success, the above request returns response like

{
    "status": 537,
    "errorMessage": "example string value",
    "report": {
        "id": "example string value",
        "projectId": "example string value",
        "waterUsageReport": {
            "id": "example string value",
            "usageGallons": 989.5030809517499,
            "avgPerSqFtGallons": 701.021071384205,
            "observedDays": 759,
            "monthlyWaterUsageItems": [
                {
                    "timestamp": 619,
                    "rainIn": 183.1463194373745,
                    "rainGallons": 987,
                    "etIn": 564.4229881299767,
                    "usageGallons": 307,
                    "usageByRegionType": {
                        "example_property_name": 303.62037955951894
                    }
                }
            ],
            "vegetationCoverageSqFt": {
                "example_property_name": 147
            },
            "dailyTempExtremes": [
                {
                    "timestamp": 645,
                    "minTemp": 984.67529098721,
                    "maxTemp": 966.4165195852595
                }
            ],
            "monthlyTempExtremes": [
                {
                    "minTempTimestamp": 480,
                    "minTemp": 306.3834734756423,
                    "maxTempTimestamp": 778,
                    "maxTemp": 847.8602035193984
                }
            ],
            "monthlyRainExtremes": [
                {
                    "timestamp": 762,
                    "rainIn": 167.25927878509242
                }
            ],
            "cloudCoverage": [
                {
                    "startTimestamp": 229,
                    "endTimestamp": 21,
                    "value": 474.0401340993308
                }
            ],
            "tempCoverage": [
                {
                    "startTimestamp": 225,
                    "endTimestamp": 326,
                    "value": 215.2906620014881
                }
            ],
            "verbalWeather": {
                "maxTempTimestamp": 693,
                "maxTemp": 726.2776278547373,
                "maxTempMonthTempAvg": 15,
                "maxTempMonthTempAvgTimestamp": 817,
                "minTempTimestamp": 897,
                "minTemp": 672.8486924771446,
                "minTempMonthTempAvg": 54.932384777317004,
                "minTempMonthTempAvgTimestamp": 146,
                "frzDays": 380,
                "frzSpellDays": 733,
                "frzSpellStartTimestamp": 544,
                "frzSpellEndTimestamp": 713,
                "maxRainIn": 957.0139022343857,
                "maxRainTimestamp": 986,
                "maxTotalRainMonthIn": 72.62021446256908,
                "maxTotalRainMonthInTimestamp": 879
            },
            "generationTime": 44
        }
    }
}

HTTP Request

POST /api/v1/sites-dashboard/oip/projects/{projectId}/reports

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
oipReportRequest OIPReportRequest body true

OIPReportRequest

Name Type Required Description
id string false
projectId string false

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
status integer true
errorMessage string false
report OIPReport false

OIPReport

Name Type Required Description
id string true
projectId string true
waterUsageReport WaterUsageReport false

WaterUsageReport

Name Type Required Description
id string true
usageGallons number false
avgPerSqFtGallons number false
observedDays integer false
monthlyWaterUsageItems MonthlyWaterUsageData[ ] false
vegetationCoverageSqFt Object for field vegetationCoverageSqFt false
dailyTempExtremes DailyTempExtreme[ ] false
monthlyTempExtremes MonthlyTempExtreme[ ] false
monthlyRainExtremes MontlhyRainExtreme[ ] false
cloudCoverage CloudCoverageHeatMap[ ] false
tempCoverage TempCoverageHeatMap[ ] false
verbalWeather VerbalWeather false
generationTime integer false

MonthlyWaterUsageData

Name Type Required Description
timestamp integer true
rainIn number false
rainGallons number false
etIn number false
usageGallons number false
usageByRegionType Object for field usageByRegionType false

Object for field usageByRegionType

Name Type Required Description
* number false

Object for field vegetationCoverageSqFt

Name Type Required Description
* number false

DailyTempExtreme

Name Type Required Description
timestamp integer true
minTemp number false
maxTemp number false

MonthlyTempExtreme

Name Type Required Description
minTempTimestamp integer false
minTemp number false
maxTempTimestamp integer false
maxTemp number false

MontlhyRainExtreme

Name Type Required Description
timestamp integer false
rainIn number false

CloudCoverageHeatMap

Name Type Required Description
startTimestamp integer false
endTimestamp integer false
value number false

TempCoverageHeatMap

Name Type Required Description
startTimestamp integer false
endTimestamp integer false
value number false

VerbalWeather

Name Type Required Description
maxTempTimestamp integer false
maxTemp number false
maxTempMonthTempAvg number false
maxTempMonthTempAvgTimestamp integer false
minTempTimestamp integer false
minTemp number false
minTempMonthTempAvg number false
minTempMonthTempAvgTimestamp integer false
frzDays integer false
frzSpellDays integer false
frzSpellStartTimestamp integer false
frzSpellEndTimestamp integer false
maxRainIn number false
maxRainTimestamp integer false
maxTotalRainMonthIn number false
maxTotalRainMonthInTimestamp integer false

Get OIP report for project

Request

curl "https://developer-api.etwater.com/api/v1/sites-dashboard/oip/reports/{reportId}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "status": 681,
    "errorMessage": "example string value",
    "report": {
        "id": "example string value",
        "projectId": "example string value",
        "waterUsageReport": {
            "id": "example string value",
            "usageGallons": 126,
            "avgPerSqFtGallons": 990.9684453117515,
            "observedDays": 436,
            "monthlyWaterUsageItems": [
                {
                    "timestamp": 600,
                    "rainIn": 426.8092151856093,
                    "rainGallons": 398.523840307502,
                    "etIn": 192.92037104858105,
                    "usageGallons": 917,
                    "usageByRegionType": {
                        "example_property_name": 529
                    }
                }
            ],
            "vegetationCoverageSqFt": {
                "example_property_name": 736.1819347069514
            },
            "dailyTempExtremes": [
                {
                    "timestamp": 579,
                    "minTemp": 82,
                    "maxTemp": 301
                }
            ],
            "monthlyTempExtremes": [
                {
                    "minTempTimestamp": 374,
                    "minTemp": 228.92217348745194,
                    "maxTempTimestamp": 460,
                    "maxTemp": 414
                }
            ],
            "monthlyRainExtremes": [
                {
                    "timestamp": 405,
                    "rainIn": 363.6408789845374
                }
            ],
            "cloudCoverage": [
                {
                    "startTimestamp": 542,
                    "endTimestamp": 290,
                    "value": 901.956130704822
                }
            ],
            "tempCoverage": [
                {
                    "startTimestamp": 499,
                    "endTimestamp": 959,
                    "value": 731.2227467686043
                }
            ],
            "verbalWeather": {
                "maxTempTimestamp": 257,
                "maxTemp": 600.9473333139658,
                "maxTempMonthTempAvg": 111,
                "maxTempMonthTempAvgTimestamp": 423,
                "minTempTimestamp": 26,
                "minTemp": 302.8961314367578,
                "minTempMonthTempAvg": 240,
                "minTempMonthTempAvgTimestamp": 924,
                "frzDays": 707,
                "frzSpellDays": 831,
                "frzSpellStartTimestamp": 20,
                "frzSpellEndTimestamp": 1,
                "maxRainIn": 227,
                "maxRainTimestamp": 298,
                "maxTotalRainMonthIn": 952,
                "maxTotalRainMonthInTimestamp": 143
            },
            "generationTime": 468
        }
    }
}

HTTP Request

GET /api/v1/sites-dashboard/oip/reports/{reportId}

Request parameters

Name Type Part Required Description
Authorization string header true
reportId string path true

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
status integer true
errorMessage string false
report OIPReport false

OIPReport

Name Type Required Description
id string true
projectId string true
waterUsageReport WaterUsageReport false

WaterUsageReport

Name Type Required Description
id string true
usageGallons number false
avgPerSqFtGallons number false
observedDays integer false
monthlyWaterUsageItems MonthlyWaterUsageData[ ] false
vegetationCoverageSqFt Object for field vegetationCoverageSqFt false
dailyTempExtremes DailyTempExtreme[ ] false
monthlyTempExtremes MonthlyTempExtreme[ ] false
monthlyRainExtremes MontlhyRainExtreme[ ] false
cloudCoverage CloudCoverageHeatMap[ ] false
tempCoverage TempCoverageHeatMap[ ] false
verbalWeather VerbalWeather false
generationTime integer false

MonthlyWaterUsageData

Name Type Required Description
timestamp integer true
rainIn number false
rainGallons number false
etIn number false
usageGallons number false
usageByRegionType Object for field usageByRegionType false

Object for field usageByRegionType

Name Type Required Description
* number false

Object for field vegetationCoverageSqFt

Name Type Required Description
* number false

DailyTempExtreme

Name Type Required Description
timestamp integer true
minTemp number false
maxTemp number false

MonthlyTempExtreme

Name Type Required Description
minTempTimestamp integer false
minTemp number false
maxTempTimestamp integer false
maxTemp number false

MontlhyRainExtreme

Name Type Required Description
timestamp integer false
rainIn number false

CloudCoverageHeatMap

Name Type Required Description
startTimestamp integer false
endTimestamp integer false
value number false

TempCoverageHeatMap

Name Type Required Description
startTimestamp integer false
endTimestamp integer false
value number false

VerbalWeather

Name Type Required Description
maxTempTimestamp integer false
maxTemp number false
maxTempMonthTempAvg number false
maxTempMonthTempAvgTimestamp integer false
minTempTimestamp integer false
minTemp number false
minTempMonthTempAvg number false
minTempMonthTempAvgTimestamp integer false
frzDays integer false
frzSpellDays integer false
frzSpellStartTimestamp integer false
frzSpellEndTimestamp integer false
maxRainIn number false
maxRainTimestamp integer false
maxTotalRainMonthIn number false
maxTotalRainMonthInTimestamp integer false

V1 | OIP | PDF Report

The Sites Dashboard OIP PDF Report API formats the information available through the Sites Dashboard OIP Report API into a 7-page ETwater Optimized Irrigation Plan PDF. See it in use at www.etwater.com/plan

Create OIP PDF version of report

Request

curl "https://developer-api.etwater.com/api/v1/sites-dashboard/oip/reports/{reportId}/pdf" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"reportId\": \"example string value\",
    \"siteName\": \"example string value\",
    \"personName\": \"example string value\",
    \"personJobTitle\": \"example string value\",
    \"personBusinessName\": \"example string value\",
    \"personEmail\": \"example string value\",
    \"personPhone\": \"example string value\",
    \"subscribeToNews\": false,
    \"htmlReportUrl\": \"example string value\",
    \"emails\": [
        {
            \"firstName\": \"example string value\",
            \"lastName\": \"example string value\",
            \"email\": \"example string value\"
        }
    ],
    \"onlineReportUrl\": \"example string value\",
    \"onlinePdfReportUrl\": \"example string value\"
}"

On success, the above request returns response like

{
    "status": 453,
    "errorMessage": "example string value",
    "report": {
        "id": "example string value",
        "projectId": "example string value",
        "reportId": "example string value",
        "reportUrl": "example string value"
    }
}

HTTP Request

POST /api/v1/sites-dashboard/oip/reports/{reportId}/pdf

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
reportId string path true OIP Report Id
oipPdfReportRequest OIPPdfReportRequest body true

OIPPdfReportRequest

Name Type Required Description
id string false
reportId string true
siteName string false
personName string false
personJobTitle string false
personBusinessName string false
personEmail string false
personPhone string false
subscribeToNews boolean false
htmlReportUrl string false
emails OIPPdfEmailInfo[ ] false
onlineReportUrl string false
onlinePdfReportUrl string false

OIPPdfEmailInfo

Name Type Required Description
firstName string false
lastName string false
email string false

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
status integer true
errorMessage string false
report OIPPdfReport false

OIPPdfReport

Name Type Required Description
id string true
projectId string true
reportId string true
reportUrl string false

Create OIP PDF version of report

Request

curl "https://developer-api.etwater.com/api/v1/sites-dashboard/oip/reports/{reportId}/pdf/{id}" \
-X GET \
-H "Authorization: example string value" \
-H "Content-Type: example string value"

On success, the above request returns response like

{
    "status": 266,
    "errorMessage": "example string value",
    "report": {
        "id": "example string value",
        "projectId": "example string value",
        "reportId": "example string value",
        "reportUrl": "example string value"
    }
}

HTTP Request

GET /api/v1/sites-dashboard/oip/reports/{reportId}/pdf/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
id string path true OIP PDF Report Id
reportId string path true OIP Report Id

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
status integer true
errorMessage string false
report OIPPdfReport false

OIPPdfReport

Name Type Required Description
id string true
projectId string true
reportId string true
reportUrl string false

V1 | OIP | Weather Summary

The Sites Dashboard Weather Summary API derives an annual aggregate of weather data dynamically computed for a particular location, including annual rain fall (total rain in the past 365 days), annual sunshine hours (total daytime hours without cloud cover in the past 365 days), and longest dry spell period (period with most consecutive days without rain in the past 365 days).

Get weather summary data for a given location

Request

curl "https://developer-api.etwater.com/api/v1/sites-dashboard/reports/weather/summary?lat=54.24482238211&lng=664.50523941987" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "weatherSummary": {
        "point": {
            "type": "Point",
            "coordinates": [
                884.2077971828206
            ],
            "properties": {
                "example_property_name": "example string value"
            }
        },
        "status": 314,
        "annualSunshineHours": 301,
        "annualRainMm": 653.9890229022079,
        "drySpell": {
            "startDateTimestamp": 543,
            "endDateTimestamp": 659,
            "daysCount": 672
        }
    }
}

HTTP Request

GET /api/v1/sites-dashboard/reports/weather/summary

Request parameters

Name Type Part Required Description
Authorization string header true
lat number query true latitude
lng number query true longtitude

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
weatherSummary WeatherSummary false

WeatherSummary

Name Type Required Description
point Point true
status integer true
annualSunshineHours number false
annualRainMm number false
drySpell DrySpellPeriod false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

DrySpellPeriod

Name Type Required Description
startDateTimestamp integer true
endDateTimestamp integer true
daysCount integer true

V1 | Parcels | Parcels API

The Gardening Parcels API is used to manage property parcels associated with a user. Unity API has a database of over 140 million property parcels, covering more than 96% of the U.S. population, so you'll likely find the parcel boundaries for your project. In case you don't, you can create it. Having a parcel associated with a landscape allows you to verify the address as well as know the landscape size and situation.

Get all Parcels.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/parcels" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[]

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

{projectId} - project id value.

Response body fields description:

HTTP Request

GET /api/v1/gardening/projects/{projectId}/parcels

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Create a Parcel.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/parcels" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"county_id\": \"example string value\",
    \"county_name\": \"example string value\",
    \"muni_name\": \"example string value\",
    \"state_abbr\": \"example string value\",
    \"addr_number\": \"example string value\",
    \"addr_street_prefix\": \"example string value\",
    \"addr_street_name\": \"example string value\",
    \"addr_street_suffix\": \"example string value\",
    \"addr_street_type\": \"example string value\",
    \"physcity\": \"example string value\",
    \"physzip\": \"example string value\",
    \"census_zip\": \"example string value\",
    \"owner\": \"example string value\",
    \"mail_name\": \"example string value\",
    \"mail_address1\": \"example string value\",
    \"mail_address2\": \"example string value\",
    \"mail_address3\": \"example string value\",
    \"trans_date\": \"example string value\",
    \"sale_price\": 844,
    \"mkt_val_land\": \"example string value\",
    \"mkt_val_bldg\": \"example string value\",
    \"mkt_val_tot\": 840,
    \"bldg_sqft\": 653,
    \"ngh_code\": \"example string value\",
    \"land_use_code\": \"example string value\",
    \"land_use_class\": \"example string value\",
    \"story_height\": \"example string value\",
    \"muni_id\": \"example string value\",
    \"school_distId\": \"example string value\",
    \"acreage_deeded\": \"example string value\",
    \"acreage_calc\": 625,
    \"geom_as_wkt\": \"example string value\",
    \"external_id\": \"example string value\",
    \"project_id\": \"example string value\",
    \"is_custom\": false,
    \"centerCoordinates\": [
        581.3975942234497
    ],
    \"landscapeId\": \"example string value\",
    \"areaM2\": 158,
    \"version\": \"-1\"
}"

On success, the above request returns response like

no reponse

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

{projectId} - project id value.

Request body fields description:

The same as for response body.

Response body fields description:

HTTP Request

POST /api/v1/gardening/projects/{projectId}/parcels

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
projectId string path true Project id
parcel GardeningParcel body true

GardeningParcel

Name Type Required Description
id string false
county_id string false
county_name string false
muni_name string false
state_abbr string false
addr_number string false
addr_street_prefix string false
addr_street_name string false
addr_street_suffix string false
addr_street_type string false
physcity string false
physzip string false
census_zip string false
owner string false
mail_name string false
mail_address1 string false
mail_address2 string false
mail_address3 string false
trans_date string false
sale_price number false
mkt_val_land string false
mkt_val_bldg string false
mkt_val_tot number false
bldg_sqft integer false
ngh_code string false
land_use_code string false
land_use_class string false
story_height string false
muni_id string false
school_distId string false
acreage_deeded string false
acreage_calc number false
geom_as_wkt string false
external_id string false
project_id string false
is_custom boolean false
centerCoordinates number[ ] false
landscapeId string false
areaM2 number false
version integer false

HTTP Responses

Code Description
201 Successful Response
404 Error Response
409 Error Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
county_id string false
county_name string false
muni_name string false
state_abbr string false
addr_number string false
addr_street_prefix string false
addr_street_name string false
addr_street_suffix string false
addr_street_type string false
physcity string false
physzip string false
census_zip string false
owner string false
mail_name string false
mail_address1 string false
mail_address2 string false
mail_address3 string false
trans_date string false
sale_price number false
mkt_val_land string false
mkt_val_bldg string false
mkt_val_tot number false
bldg_sqft integer false
ngh_code string false
land_use_code string false
land_use_class string false
story_height string false
muni_id string false
school_distId string false
acreage_deeded string false
acreage_calc number false
geom_as_wkt string false
external_id string false
project_id string false
is_custom boolean false
centerCoordinates number[ ] false
landscapeId string false
areaM2 number false
version integer false

Delete all parcels for project

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/parcels" \
-X DELETE \
-H "Authorization: example string value"

On success, the above request returns response like

no reponse

HTTP Request

DELETE /api/v1/gardening/projects/{projectId}/parcels

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id

HTTP Responses

Code Description
204 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Get Parcel by id

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/parcels/{parcelId}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "county_id": "example string value",
    "county_name": "example string value",
    "muni_name": "example string value",
    "state_abbr": "example string value",
    "addr_number": "example string value",
    "addr_street_prefix": "example string value",
    "addr_street_name": "example string value",
    "addr_street_suffix": "example string value",
    "addr_street_type": "example string value",
    "physcity": "example string value",
    "physzip": "example string value",
    "census_zip": "example string value",
    "owner": "example string value",
    "mail_name": "example string value",
    "mail_address1": "example string value",
    "mail_address2": "example string value",
    "mail_address3": "example string value",
    "trans_date": "example string value",
    "sale_price": 283.3201099575125,
    "mkt_val_land": "example string value",
    "mkt_val_bldg": "example string value",
    "mkt_val_tot": 191,
    "bldg_sqft": 24,
    "ngh_code": "example string value",
    "land_use_code": "example string value",
    "land_use_class": "example string value",
    "story_height": "example string value",
    "muni_id": "example string value",
    "school_distId": "example string value",
    "acreage_deeded": "example string value",
    "acreage_calc": 80,
    "geom_as_wkt": "example string value",
    "external_id": "example string value",
    "project_id": "example string value",
    "is_custom": true,
    "centerCoordinates": [
        483
    ],
    "landscapeId": "example string value",
    "areaM2": 590,
    "version": "-1"
}

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

Response body fields description:

HTTP Request

GET /api/v1/gardening/projects/{projectId}/parcels/{parcelId}

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
parcelId string path true Parcel id

HTTP Responses

Code Description
200 Successful Response
404 Error Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
county_id string false
county_name string false
muni_name string false
state_abbr string false
addr_number string false
addr_street_prefix string false
addr_street_name string false
addr_street_suffix string false
addr_street_type string false
physcity string false
physzip string false
census_zip string false
owner string false
mail_name string false
mail_address1 string false
mail_address2 string false
mail_address3 string false
trans_date string false
sale_price number false
mkt_val_land string false
mkt_val_bldg string false
mkt_val_tot number false
bldg_sqft integer false
ngh_code string false
land_use_code string false
land_use_class string false
story_height string false
muni_id string false
school_distId string false
acreage_deeded string false
acreage_calc number false
geom_as_wkt string false
external_id string false
project_id string false
is_custom boolean false
centerCoordinates number[ ] false
landscapeId string false
areaM2 number false
version integer false

Delete Parcel by id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/parcels/{parcelId}" \
-X DELETE \
-H "Authorization: example string value"

On success, the above request returns response like

no reponse

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

HTTP Request

DELETE /api/v1/gardening/projects/{projectId}/parcels/{parcelId}

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
parcelId string path true id of Parcel

HTTP Responses

Code Description
204 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Update Parcel by id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/parcels/{parcelId}" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"county_id\": \"example string value\",
    \"county_name\": \"example string value\",
    \"muni_name\": \"example string value\",
    \"state_abbr\": \"example string value\",
    \"addr_number\": \"example string value\",
    \"addr_street_prefix\": \"example string value\",
    \"addr_street_name\": \"example string value\",
    \"addr_street_suffix\": \"example string value\",
    \"addr_street_type\": \"example string value\",
    \"physcity\": \"example string value\",
    \"physzip\": \"example string value\",
    \"census_zip\": \"example string value\",
    \"owner\": \"example string value\",
    \"mail_name\": \"example string value\",
    \"mail_address1\": \"example string value\",
    \"mail_address2\": \"example string value\",
    \"mail_address3\": \"example string value\",
    \"trans_date\": \"example string value\",
    \"sale_price\": 245.77801080689673,
    \"mkt_val_land\": \"example string value\",
    \"mkt_val_bldg\": \"example string value\",
    \"mkt_val_tot\": 645.9178792526563,
    \"bldg_sqft\": 410,
    \"ngh_code\": \"example string value\",
    \"land_use_code\": \"example string value\",
    \"land_use_class\": \"example string value\",
    \"story_height\": \"example string value\",
    \"muni_id\": \"example string value\",
    \"school_distId\": \"example string value\",
    \"acreage_deeded\": \"example string value\",
    \"acreage_calc\": 109,
    \"geom_as_wkt\": \"example string value\",
    \"external_id\": \"example string value\",
    \"project_id\": \"example string value\",
    \"is_custom\": false,
    \"centerCoordinates\": [
        147.48305694548554
    ],
    \"landscapeId\": \"example string value\",
    \"areaM2\": 460,
    \"version\": \"-1\"
}"

On success, the above request returns response like

{
    "id": "example string value",
    "county_id": "example string value",
    "county_name": "example string value",
    "muni_name": "example string value",
    "state_abbr": "example string value",
    "addr_number": "example string value",
    "addr_street_prefix": "example string value",
    "addr_street_name": "example string value",
    "addr_street_suffix": "example string value",
    "addr_street_type": "example string value",
    "physcity": "example string value",
    "physzip": "example string value",
    "census_zip": "example string value",
    "owner": "example string value",
    "mail_name": "example string value",
    "mail_address1": "example string value",
    "mail_address2": "example string value",
    "mail_address3": "example string value",
    "trans_date": "example string value",
    "sale_price": 981.6627292808438,
    "mkt_val_land": "example string value",
    "mkt_val_bldg": "example string value",
    "mkt_val_tot": 760.3389712797194,
    "bldg_sqft": 336,
    "ngh_code": "example string value",
    "land_use_code": "example string value",
    "land_use_class": "example string value",
    "story_height": "example string value",
    "muni_id": "example string value",
    "school_distId": "example string value",
    "acreage_deeded": "example string value",
    "acreage_calc": 94,
    "geom_as_wkt": "example string value",
    "external_id": "example string value",
    "project_id": "example string value",
    "is_custom": true,
    "centerCoordinates": [
        774
    ],
    "landscapeId": "example string value",
    "areaM2": 481.5300337418588,
    "version": "-1"
}

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

Request body fields description:

The same as for response body.

Response body fields description:

HTTP Request

PUT /api/v1/gardening/projects/{projectId}/parcels/{parcelId}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
projectId string path true Project id
parcelId string path true id of Parcel
parcel GardeningParcel body true

GardeningParcel

Name Type Required Description
id string false
county_id string false
county_name string false
muni_name string false
state_abbr string false
addr_number string false
addr_street_prefix string false
addr_street_name string false
addr_street_suffix string false
addr_street_type string false
physcity string false
physzip string false
census_zip string false
owner string false
mail_name string false
mail_address1 string false
mail_address2 string false
mail_address3 string false
trans_date string false
sale_price number false
mkt_val_land string false
mkt_val_bldg string false
mkt_val_tot number false
bldg_sqft integer false
ngh_code string false
land_use_code string false
land_use_class string false
story_height string false
muni_id string false
school_distId string false
acreage_deeded string false
acreage_calc number false
geom_as_wkt string false
external_id string false
project_id string false
is_custom boolean false
centerCoordinates number[ ] false
landscapeId string false
areaM2 number false
version integer false

HTTP Responses

Code Description
200 Successful Response
404 Error Response
409 Error Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
county_id string false
county_name string false
muni_name string false
state_abbr string false
addr_number string false
addr_street_prefix string false
addr_street_name string false
addr_street_suffix string false
addr_street_type string false
physcity string false
physzip string false
census_zip string false
owner string false
mail_name string false
mail_address1 string false
mail_address2 string false
mail_address3 string false
trans_date string false
sale_price number false
mkt_val_land string false
mkt_val_bldg string false
mkt_val_tot number false
bldg_sqft integer false
ngh_code string false
land_use_code string false
land_use_class string false
story_height string false
muni_id string false
school_distId string false
acreage_deeded string false
acreage_calc number false
geom_as_wkt string false
external_id string false
project_id string false
is_custom boolean false
centerCoordinates number[ ] false
landscapeId string false
areaM2 number false
version integer false

V1 | Projects | Projects

API is dedicated for managing Projects. Project is usually one physical location with one or several CCU installed and binds together all the vegetation item being irrigated.

Get all projects

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects?page=0&size=10&unity=1" \
-X GET \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

[]

HTTP Request

GET /api/v1/gardening/projects

Request parameters

Name Type Part Required Description
Authorization string header true OAuth2 authorization header. Should be in the following format: Authorization: Bearer $TOKEN
page integer query false
size integer query false
unity boolean query false
Unity-Api-Gateway-Replace-UserId string header false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Create Project action.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects?version=584" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value" \
--data "{
    \"id\": \"example string value\",
    \"name\": \"example string value\",
    \"user_id\": \"example string value\",
    \"address\": \"example string value\",
    \"location\": {
        \"type\": \"Point\",
        \"coordinates\": [
            477
        ],
        \"properties\": {
            \"example_property_name\": \"example string value\"
        }
    },
    \"created_at\": 957,
    \"updated_at\": 1000,
    \"version\": \"-1\",
    \"postal_code\": \"example string value\",
    \"billingAddress\": {
        \"firstName\": \"example string value\",
        \"lastName\": \"example string value\",
        \"company\": \"example string value\",
        \"address1\": \"example string value\",
        \"address2\": \"example string value\",
        \"city\": \"example string value\",
        \"state\": \"example string value\",
        \"postcode\": \"example string value\",
        \"country\": \"example string value\",
        \"email\": \"example string value\",
        \"phone\": \"example string value\"
    },
    \"projectAddress\": {
        \"address1\": \"example string value\",
        \"address2\": \"example string value\",
        \"city\": \"example string value\",
        \"state\": \"example string value\",
        \"postcode\": \"example string value\",
        \"country\": \"example string value\"
    },
    \"unity\": false
}"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v1/gardening/projects

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
Unity-Api-Gateway-Replace-UserId string header false
Project GardeningProject body true
version integer query false version of Project

GardeningProject

Name Type Required Description
id string false A unique string that can be used to identify and reference a specific project.
name string false A human-readable name for the project.
user_id string false
address string false A human-readable name for the project.
location Point false Location information
created_at integer false Unix timestamp of a project creation
updated_at integer false Unix timestamp of a project last update
version integer false Version of a project
postal_code string false Project’s postal code.
billingAddress BillingAddress false
projectAddress ProjectAddress false
unity boolean false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

BillingAddress

Name Type Required Description
firstName string false
lastName string false
company string false
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false
email string false
phone string false

ProjectAddress

Name Type Required Description
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false

HTTP Responses

Code Description
201 Created
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false A unique string that can be used to identify and reference a specific project.
name string false A human-readable name for the project.
user_id string false
address string false A human-readable name for the project.
location Point false Location information
created_at integer false Unix timestamp of a project creation
updated_at integer false Unix timestamp of a project last update
version integer false Version of a project
postal_code string false Project’s postal code.
billingAddress BillingAddress false
projectAddress ProjectAddress false
unity boolean false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

BillingAddress

Name Type Required Description
firstName string false
lastName string false
company string false
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false
email string false
phone string false

ProjectAddress

Name Type Required Description
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false

Create or update projects

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects" \
-X PATCH \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"id\": \"example string value\",
        \"name\": \"example string value\",
        \"user_id\": \"example string value\",
        \"address\": \"example string value\",
        \"location\": {
            \"type\": \"Point\",
            \"coordinates\": [
                944
            ],
            \"properties\": {
                \"example_property_name\": \"example string value\"
            }
        },
        \"created_at\": 166,
        \"updated_at\": 774,
        \"version\": \"-1\",
        \"postal_code\": \"example string value\",
        \"billingAddress\": {
            \"firstName\": \"example string value\",
            \"lastName\": \"example string value\",
            \"company\": \"example string value\",
            \"address1\": \"example string value\",
            \"address2\": \"example string value\",
            \"city\": \"example string value\",
            \"state\": \"example string value\",
            \"postcode\": \"example string value\",
            \"country\": \"example string value\",
            \"email\": \"example string value\",
            \"phone\": \"example string value\"
        },
        \"projectAddress\": {
            \"address1\": \"example string value\",
            \"address2\": \"example string value\",
            \"city\": \"example string value\",
            \"state\": \"example string value\",
            \"postcode\": \"example string value\",
            \"country\": \"example string value\"
        },
        \"unity\": false
    }
]"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "name": "example string value",
        "user_id": "example string value",
        "address": "example string value",
        "location": {
            "type": "Point",
            "coordinates": [
                378
            ],
            "properties": {
                "example_property_name": "example string value"
            }
        },
        "created_at": 334,
        "updated_at": 546,
        "version": "-1",
        "postal_code": "example string value",
        "billingAddress": {
            "firstName": "example string value",
            "lastName": "example string value",
            "company": "example string value",
            "address1": "example string value",
            "address2": "example string value",
            "city": "example string value",
            "state": "example string value",
            "postcode": "example string value",
            "country": "example string value",
            "email": "example string value",
            "phone": "example string value"
        },
        "projectAddress": {
            "address1": "example string value",
            "address2": "example string value",
            "city": "example string value",
            "state": "example string value",
            "postcode": "example string value",
            "country": "example string value"
        },
        "unity": false
    }
]

HTTP Request

PATCH /api/v1/gardening/projects

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
Projects GardeningProject[ ] body true

GardeningProject

Name Type Required Description
id string false A unique string that can be used to identify and reference a specific project.
name string false A human-readable name for the project.
user_id string false
address string false A human-readable name for the project.
location Point false Location information
created_at integer false Unix timestamp of a project creation
updated_at integer false Unix timestamp of a project last update
version integer false Version of a project
postal_code string false Project’s postal code.
billingAddress BillingAddress false
projectAddress ProjectAddress false
unity boolean false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

BillingAddress

Name Type Required Description
firstName string false
lastName string false
company string false
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false
email string false
phone string false

ProjectAddress

Name Type Required Description
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false

HTTP Responses

Code Description
200 OK
404 Not Found
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string false A unique string that can be used to identify and reference a specific project.
name string false A human-readable name for the project.
user_id string false
address string false A human-readable name for the project.
location Point false Location information
created_at integer false Unix timestamp of a project creation
updated_at integer false Unix timestamp of a project last update
version integer false Version of a project
postal_code string false Project’s postal code.
billingAddress BillingAddress false
projectAddress ProjectAddress false
unity boolean false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

BillingAddress

Name Type Required Description
firstName string false
lastName string false
company string false
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false
email string false
phone string false

ProjectAddress

Name Type Required Description
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false

Search project by term

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/search?page=0&size=10&unity=1&searchTerm=example+string+value" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[
    {
        "projects": [
            {
                "id": "example string value",
                "name": "example string value",
                "user_id": "example string value",
                "address": "example string value",
                "location": {
                    "type": "Point",
                    "coordinates": [
                        410.3654452647853
                    ],
                    "properties": {
                        "example_property_name": "example string value"
                    }
                },
                "created_at": 628,
                "updated_at": 290,
                "version": "-1",
                "postal_code": "example string value",
                "billingAddress": {
                    "firstName": "example string value",
                    "lastName": "example string value",
                    "company": "example string value",
                    "address1": "example string value",
                    "address2": "example string value",
                    "city": "example string value",
                    "state": "example string value",
                    "postcode": "example string value",
                    "country": "example string value",
                    "email": "example string value",
                    "phone": "example string value"
                },
                "projectAddress": {
                    "address1": "example string value",
                    "address2": "example string value",
                    "city": "example string value",
                    "state": "example string value",
                    "postcode": "example string value",
                    "country": "example string value"
                },
                "unity": true
            }
        ],
        "page": 561,
        "size": 262,
        "total": 77
    }
]

HTTP Request

GET /api/v1/gardening/projects/search

Request parameters

Name Type Part Required Description
Authorization string header true
page integer query false
size integer query false
unity boolean query false
searchTerm string query false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
projects Project[ ] false
page integer false
size integer false
total integer false

Project

Name Type Required Description
id string false A unique string that can be used to identify and reference a specific project.
name string false A human-readable name for the project.
user_id string false
address string false A human-readable name for the project.
location Point false Location information
created_at integer false Unix timestamp of a project creation
updated_at integer false Unix timestamp of a project last update
version integer false Version of a project
postal_code string false Project’s postal code.
billingAddress BillingAddress false
projectAddress ProjectAddress false
unity boolean false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

BillingAddress

Name Type Required Description
firstName string false
lastName string false
company string false
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false
email string false
phone string false

ProjectAddress

Name Type Required Description
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false

Get Project by it's id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "name": "example string value",
    "user_id": "example string value",
    "address": "example string value",
    "location": {
        "type": "Point",
        "coordinates": [
            933.4958656381331
        ],
        "properties": {
            "example_property_name": "example string value"
        }
    },
    "created_at": 338,
    "updated_at": 776,
    "version": "-1",
    "postal_code": "example string value",
    "billingAddress": {
        "firstName": "example string value",
        "lastName": "example string value",
        "company": "example string value",
        "address1": "example string value",
        "address2": "example string value",
        "city": "example string value",
        "state": "example string value",
        "postcode": "example string value",
        "country": "example string value",
        "email": "example string value",
        "phone": "example string value"
    },
    "projectAddress": {
        "address1": "example string value",
        "address2": "example string value",
        "city": "example string value",
        "state": "example string value",
        "postcode": "example string value",
        "country": "example string value"
    },
    "unity": false
}

HTTP Request

GET /api/v1/gardening/projects/{projectId}

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false A unique string that can be used to identify and reference a specific project.
name string false A human-readable name for the project.
user_id string false
address string false A human-readable name for the project.
location Point false Location information
created_at integer false Unix timestamp of a project creation
updated_at integer false Unix timestamp of a project last update
version integer false Version of a project
postal_code string false Project’s postal code.
billingAddress BillingAddress false
projectAddress ProjectAddress false
unity boolean false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

BillingAddress

Name Type Required Description
firstName string false
lastName string false
company string false
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false
email string false
phone string false

ProjectAddress

Name Type Required Description
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false

Delete Project by it's id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}?version=800" \
-X DELETE \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

no reponse

HTTP Request

DELETE /api/v1/gardening/projects/{projectId}

Request parameters

Name Type Part Required Description
Authorization string header true
Unity-Api-Gateway-Replace-UserId string header false
projectId string path true id of Project
version integer query false version of Project

HTTP Responses

Code Description
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Update Project by it's id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}?version=711" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value" \
--data "{
    \"id\": \"example string value\",
    \"name\": \"example string value\",
    \"user_id\": \"example string value\",
    \"address\": \"example string value\",
    \"location\": {
        \"type\": \"Point\",
        \"coordinates\": [
            860
        ],
        \"properties\": {
            \"example_property_name\": \"example string value\"
        }
    },
    \"created_at\": 272,
    \"updated_at\": 307,
    \"version\": \"-1\",
    \"postal_code\": \"example string value\",
    \"billingAddress\": {
        \"firstName\": \"example string value\",
        \"lastName\": \"example string value\",
        \"company\": \"example string value\",
        \"address1\": \"example string value\",
        \"address2\": \"example string value\",
        \"city\": \"example string value\",
        \"state\": \"example string value\",
        \"postcode\": \"example string value\",
        \"country\": \"example string value\",
        \"email\": \"example string value\",
        \"phone\": \"example string value\"
    },
    \"projectAddress\": {
        \"address1\": \"example string value\",
        \"address2\": \"example string value\",
        \"city\": \"example string value\",
        \"state\": \"example string value\",
        \"postcode\": \"example string value\",
        \"country\": \"example string value\"
    },
    \"unity\": false
}"

On success, the above request returns response like

{
    "id": "example string value",
    "name": "example string value",
    "user_id": "example string value",
    "address": "example string value",
    "location": {
        "type": "Point",
        "coordinates": [
            983
        ],
        "properties": {
            "example_property_name": "example string value"
        }
    },
    "created_at": 99,
    "updated_at": 92,
    "version": "-1",
    "postal_code": "example string value",
    "billingAddress": {
        "firstName": "example string value",
        "lastName": "example string value",
        "company": "example string value",
        "address1": "example string value",
        "address2": "example string value",
        "city": "example string value",
        "state": "example string value",
        "postcode": "example string value",
        "country": "example string value",
        "email": "example string value",
        "phone": "example string value"
    },
    "projectAddress": {
        "address1": "example string value",
        "address2": "example string value",
        "city": "example string value",
        "state": "example string value",
        "postcode": "example string value",
        "country": "example string value"
    },
    "unity": false
}

HTTP Request

PUT /api/v1/gardening/projects/{projectId}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
Unity-Api-Gateway-Replace-UserId string header false
projectId string path true id of Project
Project GardeningProject body true
version integer query false version of Project

GardeningProject

Name Type Required Description
id string false A unique string that can be used to identify and reference a specific project.
name string false A human-readable name for the project.
user_id string false
address string false A human-readable name for the project.
location Point false Location information
created_at integer false Unix timestamp of a project creation
updated_at integer false Unix timestamp of a project last update
version integer false Version of a project
postal_code string false Project’s postal code.
billingAddress BillingAddress false
projectAddress ProjectAddress false
unity boolean false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

BillingAddress

Name Type Required Description
firstName string false
lastName string false
company string false
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false
email string false
phone string false

ProjectAddress

Name Type Required Description
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false

HTTP Responses

Code Description
200 OK
404 Not Found
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false A unique string that can be used to identify and reference a specific project.
name string false A human-readable name for the project.
user_id string false
address string false A human-readable name for the project.
location Point false Location information
created_at integer false Unix timestamp of a project creation
updated_at integer false Unix timestamp of a project last update
version integer false Version of a project
postal_code string false Project’s postal code.
billingAddress BillingAddress false
projectAddress ProjectAddress false
unity boolean false

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

BillingAddress

Name Type Required Description
firstName string false
lastName string false
company string false
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false
email string false
phone string false

ProjectAddress

Name Type Required Description
address1 string false
address2 string false
city string false
state string false
postcode string false
country string false

V1 | Regions | Region Types

The Gardening Region Types API provides a list of possible choices for types of vegetation, used to provide the available options when mapping areas.

Get Region Types Tree

Request

curl "https://developer-api.etwater.com/api/v1/gardening/region-types" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[]

HTTP Request

GET /api/v1/gardening/region-types

Request parameters

Name Type Part Required Description
Authorization string header true

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

V1 | Regions | Regions

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/regions?controllerId=example+string+value" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[
    {
        "type": "Feature",
        "geometry": {
            "type": "Point",
            "coordinates": [
                6.7687714503932614
            ],
            "properties": {
                "example_property_name": "example string value"
            }
        },
        "properties": {
            "region_name": "example string value",
            "vegetation_type": 877,
            "sprinkler_type": 757,
            "shade_level": 748,
            "newly_planted": true,
            "local_region_id": 484,
            "remote_region_id": "example string value",
            "images": [
                {
                    "image_id": "example string value",
                    "imageFormat": "example string value",
                    "width": 464,
                    "height": 409,
                    "thumbnails": [
                        {
                            "image_id": "example string value",
                            "imageFormat": "example string value",
                            "width": 806,
                            "height": 616,
                            "thumbnails": [],
                            "updatedAt": 758,
                            "imageType": 13
                        }
                    ],
                    "updatedAt": 263,
                    "imageType": 263
                }
            ],
            "controller_serial": "example string value",
            "emitter_count": 535,
            "plant_area": 134,
            "zone_id": "example string value",
            "project_id": "example string value",
            "created_at": 719,
            "updated_at": 955,
            "plant_center_coordinates": [
                191
            ],
            "status": "ACTIVE",
            "parcel_id": "example string value",
            "parcelExists": true,
            "elevation": 901.2668923946409,
            "plantFactor": [
                96
            ],
            "onlyVegetation": "1",
            "extendAreaRegionType": "1",
            "version": "-1",
            "controllerId": "example string value",
            "areaId": "example string value"
        }
    }
]

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

{projectId} - project id value.

Response body field description:

geolocation pair of longitude/latitude. Example:[[[76.37695312499999, 15.749962572748768], [ 76.37695312499999, 18.396230138028827], [79.27734374999999, 18.396230138028827]]] * properties subentity - contains infomation about the region, subfields:

* region_name - name of region;

* (required) vegetation_type - type of vegetation, which

growth on region, possible values: 0 (TURF), 1 (SHRUBS), 2 (TREES), 3 (FLOWER_AND_VEGETABLES), 4 (CACTI_AND_SUCCULENTS);

* (required) sprinkler_type - type of emitter, which watering

the region, possible values: 0 (SPRAY), 1 (STREAM), 2 (BUBBLER), 3 (DRIP);

* shade_level - describes the shaded level of region, value

can be 0 - 100%;

* newly_planted - describe if plant is newly planted or not;

* user_id - id of owner user;

* local_region_id - id uses in mobile app;

* remote_region_id - id of region (regionId), uses for

get, update, delete methods;

* images - contains information about images on S3 Amazon

Service;

* controller_serial - serial number of controller;

* emitter_count - amount of emitters on region;

* plant_area - area of the region, square meters;

* zone_id - id of zone to which region related;

* project_id - id of project to which region related;

* created_at - date and time when region was created, epoch

millis in UTC;

* updated_at - date and time when region was updated, epoch

millis in UTC;

* plant_center_coordinates - array of geolocation pair of

longitude/latitude, which describe the center of region, example: [ 76.37695312499999, 18.396230138028827];

* status - status of region, can be: ACTIVE, DELETED;

* parcel_id - id of the parcel;

* parcelExists - describes if parcel exist for this region;

* elevation - elevation of the region;

* plantFactor - plant factor values per month.

HTTP Request

GET /api/v1/gardening/projects/{projectId}/regions

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
controllerId string query false

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
type string true
geometry Geometry false
properties RegionProperties false

Geometry is any of: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

MultiPoint

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

LineString

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

MultiLineString

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

Polygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

MultiPolygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ][ ] true
properties Object for field properties false

GeometryCollection

Name Type Required Description
type string true
geometries Geometry[ ] true

RegionProperties

Name Type Required Description
region_name string false
vegetation_type integer false
sprinkler_type integer false
shade_level integer false
newly_planted boolean false
local_region_id integer false
remote_region_id string false
images ImageInfo[ ] false
controller_serial string false
emitter_count integer false
plant_area number false
zone_id string false
project_id string true
created_at integer false
updated_at integer false
plant_center_coordinates number[ ] false
status string false
parcel_id string false
parcelExists boolean false
elevation number false
plantFactor number[ ] false
onlyVegetation boolean false
extendAreaRegionType boolean false
version integer false
controllerId string false
areaId string false

ImageInfo

Name Type Required Description
image_id string true
imageFormat string false
width integer false
height integer false
thumbnails ImageInfo[ ] false
updatedAt integer false
imageType integer false

Create a Region.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/regions?version=502" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"type\": \"Feature\",
    \"geometry\": {
        \"type\": \"MultiPolygon\",
        \"coordinates\": [
            [
                [
                    [
                        826
                    ]
                ]
            ]
        ],
        \"properties\": {
            \"example_property_name\": \"example string value\"
        }
    },
    \"properties\": {
        \"region_name\": \"example string value\",
        \"vegetation_type\": 788,
        \"sprinkler_type\": 677,
        \"shade_level\": 0,
        \"newly_planted\": false,
        \"local_region_id\": 304,
        \"remote_region_id\": \"example string value\",
        \"images\": [
            {
                \"image_id\": \"example string value\",
                \"imageFormat\": \"example string value\",
                \"width\": 718,
                \"height\": 804,
                \"thumbnails\": [
                    {
                        \"image_id\": \"example string value\",
                        \"imageFormat\": \"example string value\",
                        \"width\": 717,
                        \"height\": 475,
                        \"thumbnails\": [],
                        \"updatedAt\": 254,
                        \"imageType\": 508
                    }
                ],
                \"updatedAt\": 530,
                \"imageType\": 407
            }
        ],
        \"controller_serial\": \"example string value\",
        \"emitter_count\": 545,
        \"plant_area\": 535.1569086942621,
        \"zone_id\": \"example string value\",
        \"project_id\": \"example string value\",
        \"created_at\": 730,
        \"updated_at\": 94,
        \"plant_center_coordinates\": [
            661
        ],
        \"status\": \"ACTIVE\",
        \"parcel_id\": \"example string value\",
        \"parcelExists\": false,
        \"elevation\": 485.851647558553,
        \"plantFactor\": [
            41.82809779505622
        ],
        \"onlyVegetation\": \"1\",
        \"extendAreaRegionType\": \"1\",
        \"version\": \"-1\",
        \"controllerId\": \"example string value\",
        \"areaId\": \"example string value\"
    }
}"

On success, the above request returns response like

no reponse

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

{projectId} - project id value.

Request body fields description:

Request body fields description the same as for response body.

Note, if you want correct ET calculation and watering schedule generation, following fields should be populated in request body: * controller_serial - serial number of controller. It requires for watering schedule generation. If region does not linked to controller, schedule for this region won't be generated. Schedule is generated for controller; * zone_id - id of zone. It requires for watering schedule generation; * plant_center_coordinates - coordinates of region. Coordinates are used to gather weather and solar radiation information (used for ET calculation) and for getting soil information (used for watering schedule generation); * plant_area - cron size of the plant in case BUBBLER or DRIP emitter type is used otherwase 1 square meter value can be used.

Response body field description:

HTTP Request

POST /api/v1/gardening/projects/{projectId}/regions

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
projectId string path true Project id
region GardeningRegion body true
version integer query false version of Project

GardeningRegion

Name Type Required Description
type string true
geometry Geometry false
properties RegionProperties false

Geometry is any of: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

MultiPoint

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

LineString

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

MultiLineString

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

Polygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

MultiPolygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ][ ] true
properties Object for field properties false

GeometryCollection

Name Type Required Description
type string true
geometries Geometry[ ] true

RegionProperties

Name Type Required Description
region_name string false
vegetation_type integer false
sprinkler_type integer false
shade_level integer false
newly_planted boolean false
local_region_id integer false
remote_region_id string false
images ImageInfo[ ] false
controller_serial string false
emitter_count integer false
plant_area number false
zone_id string false
project_id string true
created_at integer false
updated_at integer false
plant_center_coordinates number[ ] false
status string false
parcel_id string false
parcelExists boolean false
elevation number false
plantFactor number[ ] false
onlyVegetation boolean false
extendAreaRegionType boolean false
version integer false
controllerId string false
areaId string false

ImageInfo

Name Type Required Description
image_id string true
imageFormat string false
width integer false
height integer false
thumbnails ImageInfo[ ] false
updatedAt integer false
imageType integer false

HTTP Responses

Code Description
201 Created
404 Not Found
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
type string true
geometry Geometry false
properties RegionProperties false

Geometry is any of: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

MultiPoint

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

LineString

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

MultiLineString

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

Polygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

MultiPolygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ][ ] true
properties Object for field properties false

GeometryCollection

Name Type Required Description
type string true
geometries Geometry[ ] true

RegionProperties

Name Type Required Description
region_name string false
vegetation_type integer false
sprinkler_type integer false
shade_level integer false
newly_planted boolean false
local_region_id integer false
remote_region_id string false
images ImageInfo[ ] false
controller_serial string false
emitter_count integer false
plant_area number false
zone_id string false
project_id string true
created_at integer false
updated_at integer false
plant_center_coordinates number[ ] false
status string false
parcel_id string false
parcelExists boolean false
elevation number false
plantFactor number[ ] false
onlyVegetation boolean false
extendAreaRegionType boolean false
version integer false
controllerId string false
areaId string false

ImageInfo

Name Type Required Description
image_id string true
imageFormat string false
width integer false
height integer false
thumbnails ImageInfo[ ] false
updatedAt integer false
imageType integer false

Create or update regions for project

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/regions?version=615" \
-X PATCH \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"type\": \"Feature\",
        \"geometry\": {
            \"type\": \"LineString\",
            \"coordinates\": [
                [
                    634.165662170465
                ]
            ],
            \"properties\": {
                \"example_property_name\": \"example string value\"
            }
        },
        \"properties\": {
            \"region_name\": \"example string value\",
            \"vegetation_type\": 27,
            \"sprinkler_type\": 165,
            \"shade_level\": 472,
            \"newly_planted\": false,
            \"local_region_id\": 380,
            \"remote_region_id\": \"example string value\",
            \"images\": [
                {
                    \"image_id\": \"example string value\",
                    \"imageFormat\": \"example string value\",
                    \"width\": 988,
                    \"height\": 731,
                    \"thumbnails\": [
                        {
                            \"image_id\": \"example string value\",
                            \"imageFormat\": \"example string value\",
                            \"width\": 27,
                            \"height\": 625,
                            \"thumbnails\": [],
                            \"updatedAt\": 298,
                            \"imageType\": 601
                        }
                    ],
                    \"updatedAt\": 136,
                    \"imageType\": 790
                }
            ],
            \"controller_serial\": \"example string value\",
            \"emitter_count\": 150,
            \"plant_area\": 205,
            \"zone_id\": \"example string value\",
            \"project_id\": \"example string value\",
            \"created_at\": 113,
            \"updated_at\": 365,
            \"plant_center_coordinates\": [
                496.1068669781586
            ],
            \"status\": \"DELETED\",
            \"parcel_id\": \"example string value\",
            \"parcelExists\": false,
            \"elevation\": 861,
            \"plantFactor\": [
                766
            ],
            \"onlyVegetation\": \"1\",
            \"extendAreaRegionType\": \"1\",
            \"version\": \"-1\",
            \"controllerId\": \"example string value\",
            \"areaId\": \"example string value\"
        }
    }
]"

On success, the above request returns response like

[
    {
        "type": "Feature",
        "geometry": {
            "type": "GeometryCollection",
            "geometries": []
        },
        "properties": {
            "region_name": "example string value",
            "vegetation_type": 750,
            "sprinkler_type": 40,
            "shade_level": 583,
            "newly_planted": true,
            "local_region_id": 870,
            "remote_region_id": "example string value",
            "images": [
                {
                    "image_id": "example string value",
                    "imageFormat": "example string value",
                    "width": 729,
                    "height": 674,
                    "thumbnails": [
                        {
                            "image_id": "example string value",
                            "imageFormat": "example string value",
                            "width": 208,
                            "height": 888,
                            "thumbnails": [],
                            "updatedAt": 407,
                            "imageType": 766
                        }
                    ],
                    "updatedAt": 704,
                    "imageType": 260
                }
            ],
            "controller_serial": "example string value",
            "emitter_count": 221,
            "plant_area": 139.47256474731142,
            "zone_id": "example string value",
            "project_id": "example string value",
            "created_at": 43,
            "updated_at": 956,
            "plant_center_coordinates": [
                255.24388265574532
            ],
            "status": "ACTIVE",
            "parcel_id": "example string value",
            "parcelExists": false,
            "elevation": 947.9012177083182,
            "plantFactor": [
                434
            ],
            "onlyVegetation": "1",
            "extendAreaRegionType": "1",
            "version": "-1",
            "controllerId": "example string value",
            "areaId": "example string value"
        }
    }
]

HTTP Request

PATCH /api/v1/gardening/projects/{projectId}/regions

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
projectId string path true Project id
Regions GardeningRegion[ ] body true
version integer query false version of Project

GardeningRegion

Name Type Required Description
type string true
geometry Geometry false
properties RegionProperties false

Geometry is any of: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

MultiPoint

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

LineString

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

MultiLineString

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

Polygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

MultiPolygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ][ ] true
properties Object for field properties false

GeometryCollection

Name Type Required Description
type string true
geometries Geometry[ ] true

RegionProperties

Name Type Required Description
region_name string false
vegetation_type integer false
sprinkler_type integer false
shade_level integer false
newly_planted boolean false
local_region_id integer false
remote_region_id string false
images ImageInfo[ ] false
controller_serial string false
emitter_count integer false
plant_area number false
zone_id string false
project_id string true
created_at integer false
updated_at integer false
plant_center_coordinates number[ ] false
status string false
parcel_id string false
parcelExists boolean false
elevation number false
plantFactor number[ ] false
onlyVegetation boolean false
extendAreaRegionType boolean false
version integer false
controllerId string false
areaId string false

ImageInfo

Name Type Required Description
image_id string true
imageFormat string false
width integer false
height integer false
thumbnails ImageInfo[ ] false
updatedAt integer false
imageType integer false

HTTP Responses

Code Description
200 OK
404 Not Found
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
type string true
geometry Geometry false
properties RegionProperties false

Geometry is any of: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

MultiPoint

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

LineString

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

MultiLineString

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

Polygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

MultiPolygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ][ ] true
properties Object for field properties false

GeometryCollection

Name Type Required Description
type string true
geometries Geometry[ ] true

RegionProperties

Name Type Required Description
region_name string false
vegetation_type integer false
sprinkler_type integer false
shade_level integer false
newly_planted boolean false
local_region_id integer false
remote_region_id string false
images ImageInfo[ ] false
controller_serial string false
emitter_count integer false
plant_area number false
zone_id string false
project_id string true
created_at integer false
updated_at integer false
plant_center_coordinates number[ ] false
status string false
parcel_id string false
parcelExists boolean false
elevation number false
plantFactor number[ ] false
onlyVegetation boolean false
extendAreaRegionType boolean false
version integer false
controllerId string false
areaId string false

ImageInfo

Name Type Required Description
image_id string true
imageFormat string false
width integer false
height integer false
thumbnails ImageInfo[ ] false
updatedAt integer false
imageType integer false

Delete all regions for project

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/regions?version=667" \
-X DELETE \
-H "Authorization: example string value"

On success, the above request returns response like

no reponse

HTTP Request

DELETE /api/v1/gardening/projects/{projectId}/regions

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
version integer query false version of Project

HTTP Responses

Code Description
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Get Region by id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/regions/{regionId}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "type": "Feature",
    "geometry": {
        "type": "GeometryCollection",
        "geometries": []
    },
    "properties": {
        "region_name": "example string value",
        "vegetation_type": 269,
        "sprinkler_type": 121,
        "shade_level": 721,
        "newly_planted": true,
        "local_region_id": 870,
        "remote_region_id": "example string value",
        "images": [
            {
                "image_id": "example string value",
                "imageFormat": "example string value",
                "width": 737,
                "height": 827,
                "thumbnails": [
                    {
                        "image_id": "example string value",
                        "imageFormat": "example string value",
                        "width": 27,
                        "height": 850,
                        "thumbnails": [],
                        "updatedAt": 848,
                        "imageType": 872
                    }
                ],
                "updatedAt": 319,
                "imageType": 556
            }
        ],
        "controller_serial": "example string value",
        "emitter_count": 113,
        "plant_area": 309,
        "zone_id": "example string value",
        "project_id": "example string value",
        "created_at": 352,
        "updated_at": 354,
        "plant_center_coordinates": [
            264.2141181343301
        ],
        "status": "ACTIVE",
        "parcel_id": "example string value",
        "parcelExists": true,
        "elevation": 479,
        "plantFactor": [
            249
        ],
        "onlyVegetation": "1",
        "extendAreaRegionType": "1",
        "version": "-1",
        "controllerId": "example string value",
        "areaId": "example string value"
    }
}

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

Response body field description:

geolocation pair of longitude/latitude. Example:[ [76.37695312499999, 15.749962572748768], [ 76.37695312499999, 18.396230138028827], [79.27734374999999, 18.396230138028827]] * properties subentity - contains infomation about the region, subfields:

* region_name - name of region;

* (required) vegetation_type - type of vegetation, which

growth on region, possible values: 0 (TURF), 1 (SHRUBS), 2 (TREES), 3 (FLOWER_AND_VEGETABLES), 4 (CACTI_AND_SUCCULENTS);

* (required) sprinkler_type - type of emitter, which watering

the region, possible values: 0 (SPRAY), 1 (STREAM), 2 (BUBBLER), 3 (DRIP);

* shade_level - describes the shaded level of region, value

can be 0 - 100%;

* newly_planted - describe if plant is newly planted or not;

* user_id - id of owner user;

* local_region_id - id uses in mobile app;

* remote_region_id - id of region (regionId), uses for

get, update, delete methods;

* images - contains information about images on S3 Amazon

Service;

* controller_serial - serial number of controller;

* emitter_count - amount of emitters on region;

* plant_area - area of the region, square meters;

* zone_id - id of zone to which region related;

* project_id - id of project to which region related;

* created_at - date and time when region was created, epoch

millis in UTC;

* updated_at - date and time when region was updated, epoch

millis in UTC;

* plant_center_coordinates - array of geolocation pair of

longitude/latitude, which describe the center of region, example: [ 76.37695312499999, 18.396230138028827];

* status - status of region, can be: ACTIVE, DELETED;

* parcel_id - id of the parcel;

* parcelExists - describes if parcel exist for this region;

* elevation - elevation of the region;

* plantFactor - plant factor values per month.

HTTP Request

GET /api/v1/gardening/projects/{projectId}/regions/{regionId}

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
regionId string path true Region id

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
type string true
geometry Geometry false
properties RegionProperties false

Geometry is any of: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

MultiPoint

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

LineString

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

MultiLineString

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

Polygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

MultiPolygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ][ ] true
properties Object for field properties false

GeometryCollection

Name Type Required Description
type string true
geometries Geometry[ ] true

RegionProperties

Name Type Required Description
region_name string false
vegetation_type integer false
sprinkler_type integer false
shade_level integer false
newly_planted boolean false
local_region_id integer false
remote_region_id string false
images ImageInfo[ ] false
controller_serial string false
emitter_count integer false
plant_area number false
zone_id string false
project_id string true
created_at integer false
updated_at integer false
plant_center_coordinates number[ ] false
status string false
parcel_id string false
parcelExists boolean false
elevation number false
plantFactor number[ ] false
onlyVegetation boolean false
extendAreaRegionType boolean false
version integer false
controllerId string false
areaId string false

ImageInfo

Name Type Required Description
image_id string true
imageFormat string false
width integer false
height integer false
thumbnails ImageInfo[ ] false
updatedAt integer false
imageType integer false

Delete Region by id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/regions/{regionId}?version=544" \
-X DELETE \
-H "Authorization: example string value"

On success, the above request returns response like

no reponse

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

HTTP Request

DELETE /api/v1/gardening/projects/{projectId}/regions/{regionId}

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
regionId string path true id of Region
version integer query false version of Project

HTTP Responses

Code Description
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Update Area Region by id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/regions/{regionId}?version=60" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"type\": \"Feature\",
    \"geometry\": {
        \"type\": \"LineString\",
        \"coordinates\": [
            [
                94
            ]
        ],
        \"properties\": {
            \"example_property_name\": \"example string value\"
        }
    },
    \"properties\": {
        \"region_name\": \"example string value\",
        \"vegetation_type\": 41,
        \"sprinkler_type\": 799,
        \"shade_level\": 762,
        \"newly_planted\": true,
        \"local_region_id\": 941,
        \"remote_region_id\": \"example string value\",
        \"images\": [
            {
                \"image_id\": \"example string value\",
                \"imageFormat\": \"example string value\",
                \"width\": 74,
                \"height\": 842,
                \"thumbnails\": [
                    {
                        \"image_id\": \"example string value\",
                        \"imageFormat\": \"example string value\",
                        \"width\": 865,
                        \"height\": 846,
                        \"thumbnails\": [],
                        \"updatedAt\": 244,
                        \"imageType\": 281
                    }
                ],
                \"updatedAt\": 688,
                \"imageType\": 555
            }
        ],
        \"controller_serial\": \"example string value\",
        \"emitter_count\": 793,
        \"plant_area\": 66,
        \"zone_id\": \"example string value\",
        \"project_id\": \"example string value\",
        \"created_at\": 400,
        \"updated_at\": 765,
        \"plant_center_coordinates\": [
            419.6489455269878
        ],
        \"status\": \"DELETED\",
        \"parcel_id\": \"example string value\",
        \"parcelExists\": false,
        \"elevation\": 350,
        \"plantFactor\": [
            450
        ],
        \"onlyVegetation\": \"1\",
        \"extendAreaRegionType\": \"1\",
        \"version\": \"-1\",
        \"controllerId\": \"example string value\",
        \"areaId\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "type": "Feature",
    "geometry": {
        "type": "MultiLineString",
        "coordinates": [
            [
                [
                    111.19205509833621
                ]
            ]
        ],
        "properties": {
            "example_property_name": "example string value"
        }
    },
    "properties": {
        "region_name": "example string value",
        "vegetation_type": 635,
        "sprinkler_type": 137,
        "shade_level": 443,
        "newly_planted": false,
        "local_region_id": 197,
        "remote_region_id": "example string value",
        "images": [
            {
                "image_id": "example string value",
                "imageFormat": "example string value",
                "width": 538,
                "height": 223,
                "thumbnails": [
                    {
                        "image_id": "example string value",
                        "imageFormat": "example string value",
                        "width": 178,
                        "height": 989,
                        "thumbnails": [],
                        "updatedAt": 424,
                        "imageType": 573
                    }
                ],
                "updatedAt": 969,
                "imageType": 202
            }
        ],
        "controller_serial": "example string value",
        "emitter_count": 673,
        "plant_area": 536.6713770370332,
        "zone_id": "example string value",
        "project_id": "example string value",
        "created_at": 415,
        "updated_at": 139,
        "plant_center_coordinates": [
            671
        ],
        "status": "DELETED",
        "parcel_id": "example string value",
        "parcelExists": true,
        "elevation": 542.6074054756236,
        "plantFactor": [
            951.8238375670388
        ],
        "onlyVegetation": "1",
        "extendAreaRegionType": "1",
        "version": "-1",
        "controllerId": "example string value",
        "areaId": "example string value"
    }
}

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

Request body fields description:

The same as for response body.

Response body field description:

geolocation pair of longitude/latitude. Example:[ [76.37695312499999, 15.749962572748768], [ 76.37695312499999, 18.396230138028827], [79.27734374999999, 18.396230138028827]] * properties subentity - contains infomation about the region, subfields:

* region_name - name of region;

* (required) vegetation_type - type of vegetation, which

growth on region, possible values: 0 (TURF), 1 (SHRUBS), 2 (TREES), 3 (FLOWER_AND_VEGETABLES), 4 (CACTI_AND_SUCCULENTS);

* (required) sprinkler_type - type of emitter, which watering

the region, possible values: 0 (SPRAY), 1 (STREAM), 2 (BUBBLER), 3 (DRIP);

* shade_level - describes the shaded level of region, value

can be 0 - 100%;

* newly_planted - describe if plant is newly planted or not;

* user_id - id of owner user;

* local_region_id - id uses in mobile app;

* remote_region_id - id of region (regionId), uses for

get, update, delete methods;

* images - contains information about images on S3 Amazon

Service;

* controller_serial - serial number of controller;

* emitter_count - amount of emitters on region;

* plant_area - area of the region, square meters;

* zone_id - id of zone to which region related;

* project_id - id of project to which region related;

* created_at - date and time when region was created, epoch

millis in UTC;

* updated_at - date and time when region was updated, epoch

millis in UTC;

* plant_center_coordinates - array of geolocation pair of

longitude/latitude, which describe the center of region, example: [ 76.37695312499999, 18.396230138028827];

* status - status of region, can be: ACTIVE, DELETED;

* parcel_id - id of the parcel;

* parcelExists - describes if parcel exist for this region;

* elevation - elevation of the region;

* plantFactor - plant factor values per month.

HTTP Request

PUT /api/v1/gardening/projects/{projectId}/regions/{regionId}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
projectId string path true Project id
regionId string path true id of Region
region GardeningRegion body true
version integer query false version of Project

GardeningRegion

Name Type Required Description
type string true
geometry Geometry false
properties RegionProperties false

Geometry is any of: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

MultiPoint

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

LineString

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

MultiLineString

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

Polygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

MultiPolygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ][ ] true
properties Object for field properties false

GeometryCollection

Name Type Required Description
type string true
geometries Geometry[ ] true

RegionProperties

Name Type Required Description
region_name string false
vegetation_type integer false
sprinkler_type integer false
shade_level integer false
newly_planted boolean false
local_region_id integer false
remote_region_id string false
images ImageInfo[ ] false
controller_serial string false
emitter_count integer false
plant_area number false
zone_id string false
project_id string true
created_at integer false
updated_at integer false
plant_center_coordinates number[ ] false
status string false
parcel_id string false
parcelExists boolean false
elevation number false
plantFactor number[ ] false
onlyVegetation boolean false
extendAreaRegionType boolean false
version integer false
controllerId string false
areaId string false

ImageInfo

Name Type Required Description
image_id string true
imageFormat string false
width integer false
height integer false
thumbnails ImageInfo[ ] false
updatedAt integer false
imageType integer false

HTTP Responses

Code Description
200 OK
404 Not Found
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
type string true
geometry Geometry false
properties RegionProperties false

Geometry is any of: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection

Point

Name Type Required Description
type string true
coordinates number[ ] true
properties Object for field properties false

Object for field properties

Name Type Required Description
* string false

MultiPoint

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

LineString

Name Type Required Description
type string true
coordinates number[ ][ ] true
properties Object for field properties false

MultiLineString

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

Polygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ] true
properties Object for field properties false

MultiPolygon

Name Type Required Description
type string true
coordinates number[ ][ ][ ][ ] true
properties Object for field properties false

GeometryCollection

Name Type Required Description
type string true
geometries Geometry[ ] true

RegionProperties

Name Type Required Description
region_name string false
vegetation_type integer false
sprinkler_type integer false
shade_level integer false
newly_planted boolean false
local_region_id integer false
remote_region_id string false
images ImageInfo[ ] false
controller_serial string false
emitter_count integer false
plant_area number false
zone_id string false
project_id string true
created_at integer false
updated_at integer false
plant_center_coordinates number[ ] false
status string false
parcel_id string false
parcelExists boolean false
elevation number false
plantFactor number[ ] false
onlyVegetation boolean false
extendAreaRegionType boolean false
version integer false
controllerId string false
areaId string false

ImageInfo

Name Type Required Description
image_id string true
imageFormat string false
width integer false
height integer false
thumbnails ImageInfo[ ] false
updatedAt integer false
imageType integer false

V1 | Reports | CCU Alerts Report

Create CCU alerts report

Request

curl "https://developer-api.etwater.com/api/v1/reports/ccu-alerts-report?startDate=example+string+value&endDate=example+string+value&interval=example+string+value" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"filters\": {
        \"projectControllers\": {
            \"projectControllers\": [
                {
                    \"projectId\": \"example string value\",
                    \"controllerIdList\": [
                        \"example string value\"
                    ]
                }
            ]
        },
        \"alertCodes\": {
            \"codes\": [
                625
            ]
        },
        \"period\": {
            \"startDate\": \"example string value\",
            \"endDate\": \"example string value\",
            \"interval\": \"DAY\"
        }
    },
    \"meta\": {
        \"example_property_name\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "id": "example string value",
    "userId": "example string value",
    "data": {
        "total": {
            "totalAlertsCount": 599,
            "affectedProjectsCount": 782,
            "affectedControllersCount": 673,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "ccuAlertsStats": [
                        {
                            "alertCode": 445,
                            "alertCodeName": "example string value",
                            "totalAlertsCount": 851
                        }
                    ],
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "ccuAlertsStats": [
                                {
                                    "alertCode": 89,
                                    "alertCodeName": "example string value",
                                    "totalAlertsCount": 659
                                }
                            ],
                            "zones": [
                                {
                                    "zoneId": "example string value",
                                    "zoneNumber": 538,
                                    "name": "example string value",
                                    "ccuAlertsStats": [
                                        {
                                            "alertCode": 385,
                                            "alertCodeName": "example string value",
                                            "totalAlertsCount": 515
                                        }
                                    ],
                                    "ccuAlerts": [
                                        {
                                            "userId": "example string value",
                                            "userName": "example string value",
                                            "projectId": "example string value",
                                            "projectName": "example string value",
                                            "controllerId": "example string value",
                                            "controllerName": "example string value",
                                            "zoneId": "example string value",
                                            "zoneName": "example string value",
                                            "zoneNumber": 438,
                                            "alertCode": 677,
                                            "alertCodeName": "example string value",
                                            "date": "example string value"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "totalAlertsCount": 975,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "ccuAlertsStats": [
                            {
                                "alertCode": 678,
                                "alertCodeName": "example string value",
                                "totalAlertsCount": 809
                            }
                        ],
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "ccuAlertsStats": [
                                    {
                                        "alertCode": 670,
                                        "alertCodeName": "example string value",
                                        "totalAlertsCount": 596
                                    }
                                ],
                                "zones": [
                                    {
                                        "zoneId": "example string value",
                                        "zoneNumber": 351,
                                        "name": "example string value",
                                        "ccuAlertsStats": [
                                            {
                                                "alertCode": 952,
                                                "alertCodeName": "example string value",
                                                "totalAlertsCount": 409
                                            }
                                        ],
                                        "ccuAlerts": [
                                            {
                                                "userId": "example string value",
                                                "userName": "example string value",
                                                "projectId": "example string value",
                                                "projectName": "example string value",
                                                "controllerId": "example string value",
                                                "controllerName": "example string value",
                                                "zoneId": "example string value",
                                                "zoneName": "example string value",
                                                "zoneNumber": 117,
                                                "alertCode": 903,
                                                "alertCodeName": "example string value",
                                                "date": "example string value"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "totalAlertsCount": 551,
                "affectedProjectsCount": 388,
                "affectedControllersCount": 807
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "alertCodes": {
            "codes": [
                484
            ]
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "DAY"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

POST /api/v1/reports/ccu-alerts-report

Request parameters

Name Type Part Required Description
Authorization string header true
startDate string query true
endDate string query true
interval string query false
CcuAlertsReportCreateRequest CcuAlertsReportCreateRequest body true

CcuAlertsReportCreateRequest

Name Type Required Description
filters ReportFilters true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
alertCodes AlertCodesFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

AlertCodesFilter

Name Type Required Description
codes integer[ ] true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Total true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true

Total

Name Type Required Description
totalAlertsCount integer true
affectedProjectsCount integer true
affectedControllersCount integer true
projects Project[ ] true

Project

Name Type Required Description
projectId string true
name string true
ccuAlertsStats CcuAlertsStatsItem[ ] true
controllers Controller[ ] true

CcuAlertsStatsItem

Name Type Required Description
alertCode integer true
alertCodeName string true
totalAlertsCount integer true

Controller

Name Type Required Description
controllerId string true
name string true
ccuAlertsStats CcuAlertsStatsItem[ ] true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
zoneNumber integer true
name string true
ccuAlertsStats CcuAlertsStatsItem[ ] true
ccuAlerts CcuAlert[ ] true

CcuAlert

Name Type Required Description
userId string true
userName string true
projectId string true
projectName string true
controllerId string true
controllerName string true
zoneId string true
zoneName string true
zoneNumber integer true
alertCode integer true
alertCodeName string true
date string true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
totalAlertsCount integer true
projects Project[ ] true

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
totalAlertsCount integer true
affectedProjectsCount integer true
affectedControllersCount integer true

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
alertCodes AlertCodesFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

AlertCodesFilter

Name Type Required Description
codes integer[ ] true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

Get CCU alerts report

Request

curl "https://developer-api.etwater.com/api/v1/reports/ccu-alerts-report/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "userId": "example string value",
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "alertCodes": {
            "codes": [
                920
            ]
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "DAY"
        }
    },
    "data": {
        "total": {
            "totalAlertsCount": 350,
            "affectedProjectsCount": 134,
            "affectedControllersCount": 358,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "ccuAlertsStats": [
                        {
                            "alertCode": 401,
                            "alertCodeName": "example string value",
                            "totalAlertsCount": 385
                        }
                    ],
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "ccuAlertsStats": [
                                {
                                    "alertCode": 151,
                                    "alertCodeName": "example string value",
                                    "totalAlertsCount": 428
                                }
                            ],
                            "zones": [
                                {
                                    "zoneId": "example string value",
                                    "zoneNumber": 466,
                                    "name": "example string value",
                                    "ccuAlertsStats": [
                                        {
                                            "alertCode": 723,
                                            "alertCodeName": "example string value",
                                            "totalAlertsCount": 843
                                        }
                                    ],
                                    "ccuAlerts": [
                                        {
                                            "userId": "example string value",
                                            "userName": "example string value",
                                            "projectId": "example string value",
                                            "projectName": "example string value",
                                            "controllerId": "example string value",
                                            "controllerName": "example string value",
                                            "zoneId": "example string value",
                                            "zoneName": "example string value",
                                            "zoneNumber": 900,
                                            "alertCode": 846,
                                            "alertCodeName": "example string value",
                                            "date": "example string value"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "totalAlertsCount": 876,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "ccuAlertsStats": [
                            {
                                "alertCode": 661,
                                "alertCodeName": "example string value",
                                "totalAlertsCount": 218
                            }
                        ],
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "ccuAlertsStats": [
                                    {
                                        "alertCode": 64,
                                        "alertCodeName": "example string value",
                                        "totalAlertsCount": 889
                                    }
                                ],
                                "zones": [
                                    {
                                        "zoneId": "example string value",
                                        "zoneNumber": 56,
                                        "name": "example string value",
                                        "ccuAlertsStats": [
                                            {
                                                "alertCode": 84,
                                                "alertCodeName": "example string value",
                                                "totalAlertsCount": 534
                                            }
                                        ],
                                        "ccuAlerts": [
                                            {
                                                "userId": "example string value",
                                                "userName": "example string value",
                                                "projectId": "example string value",
                                                "projectName": "example string value",
                                                "controllerId": "example string value",
                                                "controllerName": "example string value",
                                                "zoneId": "example string value",
                                                "zoneName": "example string value",
                                                "zoneNumber": 640,
                                                "alertCode": 947,
                                                "alertCodeName": "example string value",
                                                "date": "example string value"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "totalAlertsCount": 534,
                "affectedProjectsCount": 317,
                "affectedControllersCount": 863
            }
        ]
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

GET /api/v1/reports/ccu-alerts-report/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
userId string true
filters ReportFilters true
data ReportData false
meta Object for field meta false
storedDataUrl string false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
alertCodes AlertCodesFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

AlertCodesFilter

Name Type Required Description
codes integer[ ] true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

ReportData

Name Type Required Description
total Total true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true

Total

Name Type Required Description
totalAlertsCount integer true
affectedProjectsCount integer true
affectedControllersCount integer true
projects Project[ ] true

Project

Name Type Required Description
projectId string true
name string true
ccuAlertsStats CcuAlertsStatsItem[ ] true
controllers Controller[ ] true

CcuAlertsStatsItem

Name Type Required Description
alertCode integer true
alertCodeName string true
totalAlertsCount integer true

Controller

Name Type Required Description
controllerId string true
name string true
ccuAlertsStats CcuAlertsStatsItem[ ] true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
zoneNumber integer true
name string true
ccuAlertsStats CcuAlertsStatsItem[ ] true
ccuAlerts CcuAlert[ ] true

CcuAlert

Name Type Required Description
userId string true
userName string true
projectId string true
projectName string true
controllerId string true
controllerName string true
zoneId string true
zoneName string true
zoneNumber integer true
alertCode integer true
alertCodeName string true
date string true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
totalAlertsCount integer true
projects Project[ ] true

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
totalAlertsCount integer true
affectedProjectsCount integer true
affectedControllersCount integer true

Object for field meta

Name Type Required Description
* string false

V1 | Reports | Estimated Water Cost Report

Validate estimated water cost report

Request

curl "https://developer-api.etwater.com/api/v1/reports/estimated-water-cost-report/validate" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"projectControllers\": {
        \"projectControllers\": [
            {
                \"projectId\": \"example string value\",
                \"controllerIdList\": [
                    \"example string value\"
                ]
            }
        ]
    }
}"

On success, the above request returns response like

{
    "projectsFlowRates": [
        {
            "projectId": "example string value",
            "projectName": "example string value",
            "controllers": [
                {
                    "controllerId": "example string value",
                    "name": "example string value",
                    "zones": [
                        {
                            "zoneId": "example string value",
                            "number": 70,
                            "name": "example string value",
                            "flowRateGpm": 20.792024219777446
                        }
                    ]
                }
            ]
        }
    ]
}

HTTP Request

POST /api/v1/reports/estimated-water-cost-report/validate

Request parameters

Name Type Part Required Description
Authorization string header true
EstimatedWaterCostReportValidateRequest EstimatedWaterCostReportValidateRequest body true

EstimatedWaterCostReportValidateRequest

Name Type Required Description
projectControllers ProjectControllersFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
projectsFlowRates ProjectFlowRate[ ] true

ProjectFlowRate

Name Type Required Description
projectId string true
projectName string true
controllers Controller[ ] true

Controller

Name Type Required Description
controllerId string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
number integer true
name string true
flowRateGpm number false

Create estimated water cost report

Request

curl "https://developer-api.etwater.com/api/v1/reports/estimated-water-cost-report?startDate=example+string+value&endDate=example+string+value&interval=DAY&measureUnits=example+string+value" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"filters\": {
        \"projectControllers\": {
            \"projectControllers\": [
                {
                    \"projectId\": \"example string value\",
                    \"controllerIdList\": [
                        \"example string value\"
                    ]
                }
            ]
        },
        \"measureUnits\": {
            \"units\": \"HCF\"
        },
        \"period\": {
            \"startDate\": \"example string value\",
            \"endDate\": \"example string value\",
            \"interval\": \"MONTH\"
        }
    },
    \"projectsFlowRates\": [
        {
            \"projectId\": \"example string value\",
            \"projectName\": \"example string value\",
            \"controllers\": [
                {
                    \"controllerId\": \"example string value\",
                    \"name\": \"example string value\",
                    \"zones\": [
                        {
                            \"zoneId\": \"example string value\",
                            \"number\": 174,
                            \"name\": \"example string value\",
                            \"flowRateGpm\": 920.1787993871509
                        }
                    ]
                }
            ]
        }
    ],
    \"meta\": {
        \"example_property_name\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "DONE",
    "userId": "example string value",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "waterUsage": 573,
            "waterUsageCost": 118.51836699923423,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "waterUsage": 241.6177486263298,
                    "waterUsageCost": 160,
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "waterUsage": 510,
                            "waterUsageCost": 717,
                            "zones": [
                                {
                                    "zoneNumber": 145,
                                    "name": "example string value",
                                    "waterUsage": 967,
                                    "waterUsageCost": 750,
                                    "scheduledWaterUsage": 95,
                                    "scheduledWaterUsageCost": 413.530462614042,
                                    "manualWaterUsage": 439.804347436784,
                                    "manualWaterUsageCost": 678.7559677282144
                                }
                            ],
                            "scheduledWaterUsage": 570,
                            "scheduledWaterUsageCost": 735,
                            "manualWaterUsage": 940.1510818582731,
                            "manualWaterUsageCost": 955
                        }
                    ],
                    "scheduledWaterUsage": 138,
                    "scheduledWaterUsageCost": 624,
                    "manualWaterUsage": 755.084436272776,
                    "manualWaterUsageCost": 399.9341332353345
                }
            ],
            "scheduledWaterUsage": 648,
            "scheduledWaterUsageCost": 688.7095769349064,
            "manualWaterUsage": 843.2769853823245,
            "manualWaterUsageCost": 369
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "waterUsage": 398,
                "waterUsageCost": 33,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "waterUsage": 317.8588009056909,
                        "waterUsageCost": 119.3129113499601,
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "waterUsage": 860.3119719123058,
                                "waterUsageCost": 172.41376320478216,
                                "zones": [
                                    {
                                        "zoneNumber": 116,
                                        "name": "example string value",
                                        "waterUsage": 158.40319504887015,
                                        "waterUsageCost": 938,
                                        "scheduledWaterUsage": 97,
                                        "scheduledWaterUsageCost": 5,
                                        "manualWaterUsage": 247,
                                        "manualWaterUsageCost": 929
                                    }
                                ],
                                "scheduledWaterUsage": 550.4199380755518,
                                "scheduledWaterUsageCost": 837,
                                "manualWaterUsage": 982,
                                "manualWaterUsageCost": 796.3913864439314
                            }
                        ],
                        "scheduledWaterUsage": 948,
                        "scheduledWaterUsageCost": 763,
                        "manualWaterUsage": 687,
                        "manualWaterUsageCost": 514
                    }
                ],
                "scheduledWaterUsage": 648,
                "scheduledWaterUsageCost": 861.8903238614511,
                "manualWaterUsage": 700.4136884121289,
                "manualWaterUsageCost": 884.0349232237949
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "waterUsage": 985.39276094427,
                "waterUsageCost": 820.4563999643813,
                "scheduledWaterUsage": 156.744610591207,
                "scheduledWaterUsageCost": 292.4682005739157,
                "manualWaterUsage": 106,
                "manualWaterUsageCost": 816
            }
        ],
        "projectsFlowRates": [
            {
                "projectId": "example string value",
                "projectName": "example string value",
                "controllers": [
                    {
                        "controllerId": "example string value",
                        "name": "example string value",
                        "zones": [
                            {
                                "zoneId": "example string value",
                                "number": 907,
                                "name": "example string value",
                                "flowRateGpm": 545.9688191981841
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "measureUnits": {
            "units": "HCF"
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "MONTH"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

POST /api/v1/reports/estimated-water-cost-report

Request parameters

Name Type Part Required Description
Authorization string header true
startDate string query true
endDate string query true
interval string query false
measureUnits string query false
EstimatedWaterCostReportCreateRequest EstimatedWaterCostReportCreateRequest body true

EstimatedWaterCostReportCreateRequest

Name Type Required Description
filters ReportFilters true
projectsFlowRates ProjectFlowRate[ ] false
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

ProjectFlowRate

Name Type Required Description
projectId string true
projectName string true
controllers Controller[ ] true

Controller

Name Type Required Description
controllerId string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
number integer true
name string true
flowRateGpm number false

Object for field meta

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true
projectsFlowRates ProjectFlowRate[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
waterUsage number true
waterUsageCost number true
projects ReportProject[ ] true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

ReportProject

Name Type Required Description
projectId string true
name string true
waterUsage number true
waterUsageCost number true
controllers ReportController[ ] true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

ReportController

Name Type Required Description
controllerId string true
name string true
waterUsage number true
waterUsageCost number true
zones ReportZone[ ] true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

ReportZone

Name Type Required Description
zoneNumber integer true
name string true
waterUsage number true
waterUsageCost number true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
waterUsage number true
waterUsageCost number true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

ProjectFlowRate

Name Type Required Description
projectId string true
projectName string true
controllers Controller[ ] true

Controller

Name Type Required Description
controllerId string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
number integer true
name string true
flowRateGpm number false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

Get estimated water cost report

Request

curl "https://developer-api.etwater.com/api/v1/reports/estimated-water-cost-report/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "DONE",
    "userId": "example string value",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "waterUsage": 250,
            "waterUsageCost": 600,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "waterUsage": 764,
                    "waterUsageCost": 383,
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "waterUsage": 79,
                            "waterUsageCost": 708,
                            "zones": [
                                {
                                    "zoneNumber": 105,
                                    "name": "example string value",
                                    "waterUsage": 775,
                                    "waterUsageCost": 945,
                                    "scheduledWaterUsage": 837,
                                    "scheduledWaterUsageCost": 271,
                                    "manualWaterUsage": 868.2706802470008,
                                    "manualWaterUsageCost": 271
                                }
                            ],
                            "scheduledWaterUsage": 808.1931321919864,
                            "scheduledWaterUsageCost": 38,
                            "manualWaterUsage": 745.8514448934475,
                            "manualWaterUsageCost": 583.2855513241541
                        }
                    ],
                    "scheduledWaterUsage": 421,
                    "scheduledWaterUsageCost": 240.18691258513692,
                    "manualWaterUsage": 782,
                    "manualWaterUsageCost": 26.870607876624263
                }
            ],
            "scheduledWaterUsage": 854.6793902547469,
            "scheduledWaterUsageCost": 475.516894588022,
            "manualWaterUsage": 327,
            "manualWaterUsageCost": 868.5771286806917
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "waterUsage": 346.1619323800141,
                "waterUsageCost": 705,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "waterUsage": 180.14424256055813,
                        "waterUsageCost": 348.9912177198526,
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "waterUsage": 732.4291261529685,
                                "waterUsageCost": 591.9908236674921,
                                "zones": [
                                    {
                                        "zoneNumber": 375,
                                        "name": "example string value",
                                        "waterUsage": 791,
                                        "waterUsageCost": 776,
                                        "scheduledWaterUsage": 564,
                                        "scheduledWaterUsageCost": 520.3801819683893,
                                        "manualWaterUsage": 543,
                                        "manualWaterUsageCost": 24
                                    }
                                ],
                                "scheduledWaterUsage": 22.042042586040704,
                                "scheduledWaterUsageCost": 141.26092993713027,
                                "manualWaterUsage": 651.6410525197355,
                                "manualWaterUsageCost": 176
                            }
                        ],
                        "scheduledWaterUsage": 806,
                        "scheduledWaterUsageCost": 121,
                        "manualWaterUsage": 704,
                        "manualWaterUsageCost": 342.0204251734635
                    }
                ],
                "scheduledWaterUsage": 392,
                "scheduledWaterUsageCost": 73.7522426404768,
                "manualWaterUsage": 904.1065382324656,
                "manualWaterUsageCost": 267
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "waterUsage": 626,
                "waterUsageCost": 878,
                "scheduledWaterUsage": 4,
                "scheduledWaterUsageCost": 370.26315432519795,
                "manualWaterUsage": 663.9171893074723,
                "manualWaterUsageCost": 617.130991824498
            }
        ],
        "projectsFlowRates": [
            {
                "projectId": "example string value",
                "projectName": "example string value",
                "controllers": [
                    {
                        "controllerId": "example string value",
                        "name": "example string value",
                        "zones": [
                            {
                                "zoneId": "example string value",
                                "number": 996,
                                "name": "example string value",
                                "flowRateGpm": 873.9606718877147
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "measureUnits": {
            "units": "HCF"
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "DAY"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

GET /api/v1/reports/estimated-water-cost-report/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true
projectsFlowRates ProjectFlowRate[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
waterUsage number true
waterUsageCost number true
projects ReportProject[ ] true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

ReportProject

Name Type Required Description
projectId string true
name string true
waterUsage number true
waterUsageCost number true
controllers ReportController[ ] true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

ReportController

Name Type Required Description
controllerId string true
name string true
waterUsage number true
waterUsageCost number true
zones ReportZone[ ] true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

ReportZone

Name Type Required Description
zoneNumber integer true
name string true
waterUsage number true
waterUsageCost number true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
waterUsage number true
waterUsageCost number true
scheduledWaterUsage number false
scheduledWaterUsageCost number false
manualWaterUsage number false
manualWaterUsageCost number false

ProjectFlowRate

Name Type Required Description
projectId string true
projectName string true
controllers Controller[ ] true

Controller

Name Type Required Description
controllerId string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
number integer true
name string true
flowRateGpm number false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

V1 | Reports | Estimated Water Usage Report

Validate estimated water usage report

Request

curl "https://developer-api.etwater.com/api/v1/reports/estimated-water-usage-report/validate" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"projectControllers\": {
        \"projectControllers\": [
            {
                \"projectId\": \"example string value\",
                \"controllerIdList\": [
                    \"example string value\"
                ]
            }
        ]
    }
}"

On success, the above request returns response like

{
    "projectsFlowRates": [
        {
            "projectId": "example string value",
            "projectName": "example string value",
            "controllers": [
                {
                    "controllerId": "example string value",
                    "name": "example string value",
                    "zones": [
                        {
                            "zoneId": "example string value",
                            "number": 441,
                            "name": "example string value",
                            "flowRateGpm": 957.2196830796169
                        }
                    ]
                }
            ]
        }
    ]
}

HTTP Request

POST /api/v1/reports/estimated-water-usage-report/validate

Request parameters

Name Type Part Required Description
Authorization string header true
EstimatedWaterUsageReportValidateRequest EstimatedWaterUsageReportValidateRequest body true

EstimatedWaterUsageReportValidateRequest

Name Type Required Description
projectControllers ProjectControllersFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
projectsFlowRates ProjectFlowRate[ ] true

ProjectFlowRate

Name Type Required Description
projectId string true
projectName string true
controllers Controller[ ] true

Controller

Name Type Required Description
controllerId string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
number integer true
name string true
flowRateGpm number false

Create estimated water usage report

Request

curl "https://developer-api.etwater.com/api/v1/reports/estimated-water-usage-report?startDate=example+string+value&endDate=example+string+value&interval=BILLING_PERIOD&measureUnits=example+string+value" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"filters\": {
        \"projectControllers\": {
            \"projectControllers\": [
                {
                    \"projectId\": \"example string value\",
                    \"controllerIdList\": [
                        \"example string value\"
                    ]
                }
            ]
        },
        \"measureUnits\": {
            \"units\": \"HCF\"
        },
        \"period\": {
            \"startDate\": \"example string value\",
            \"endDate\": \"example string value\",
            \"interval\": \"DAY\"
        }
    },
    \"projectsFlowRates\": [
        {
            \"projectId\": \"example string value\",
            \"projectName\": \"example string value\",
            \"controllers\": [
                {
                    \"controllerId\": \"example string value\",
                    \"name\": \"example string value\",
                    \"zones\": [
                        {
                            \"zoneId\": \"example string value\",
                            \"number\": 782,
                            \"name\": \"example string value\",
                            \"flowRateGpm\": 52
                        }
                    ]
                }
            ]
        }
    ],
    \"meta\": {
        \"example_property_name\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "IN_PROGRESS",
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "measureUnits": {
            "units": "HCF"
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "BILLING_PERIOD"
        }
    },
    "userId": "example string value",
    "meta": {
        "example_property_name": "example string value"
    }
}

HTTP Request

POST /api/v1/reports/estimated-water-usage-report

Request parameters

Name Type Part Required Description
Authorization string header true
startDate string query true
endDate string query true
interval string query false
measureUnits string query false
EstimatedWaterUsageReportCreateRequest EstimatedWaterUsageReportCreateRequest body true

EstimatedWaterUsageReportCreateRequest

Name Type Required Description
filters ReportFilters true
projectsFlowRates ProjectFlowRate[ ] false
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

ProjectFlowRate

Name Type Required Description
projectId string true
projectName string true
controllers Controller[ ] true

Controller

Name Type Required Description
controllerId string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
number integer true
name string true
flowRateGpm number false

Object for field meta

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
status string true
filters ReportFilters true
userId string true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

Get estimated water usage report

Request

curl "https://developer-api.etwater.com/api/v1/reports/estimated-water-usage-report/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "DONE",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "waterUsage": 320.5349949749815,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "waterUsage": 100.54881223502979,
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "waterUsage": 196.45301028920946,
                            "zones": [
                                {
                                    "zoneId": "example string value",
                                    "zoneNumber": 619,
                                    "name": "example string value",
                                    "waterUsage": 326,
                                    "scheduledWaterUsage": 973,
                                    "manualWaterUsage": 880.6099611709873
                                }
                            ],
                            "scheduledWaterUsage": 365.4117823417353,
                            "manualWaterUsage": 538.2549397359858
                        }
                    ],
                    "scheduledWaterUsage": 704,
                    "manualWaterUsage": 158
                }
            ],
            "scheduledWaterUsage": 530.1548668789468,
            "manualWaterUsage": 948
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "waterUsage": 858.4570688467738,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "waterUsage": 801.8277547330724,
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "waterUsage": 530,
                                "zones": [
                                    {
                                        "zoneId": "example string value",
                                        "zoneNumber": 355,
                                        "name": "example string value",
                                        "waterUsage": 470,
                                        "scheduledWaterUsage": 481.22480301243473,
                                        "manualWaterUsage": 382
                                    }
                                ],
                                "scheduledWaterUsage": 747.814348781395,
                                "manualWaterUsage": 344
                            }
                        ],
                        "scheduledWaterUsage": 529.5653080239731,
                        "manualWaterUsage": 961.7631956756875
                    }
                ],
                "scheduledWaterUsage": 561.3725225261285,
                "manualWaterUsage": 246.35896843222855
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "waterUsage": 393.67094840559685,
                "scheduledWaterUsage": 4,
                "manualWaterUsage": 71.18629341534633
            }
        ],
        "projectsFlowRates": [
            {
                "projectId": "example string value",
                "projectName": "example string value",
                "controllers": [
                    {
                        "controllerId": "example string value",
                        "name": "example string value",
                        "zones": [
                            {
                                "zoneId": "example string value",
                                "number": 311,
                                "name": "example string value",
                                "flowRateGpm": 573
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "measureUnits": {
            "units": "HCF"
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "DAY"
        }
    },
    "userId": "example string value",
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

GET /api/v1/reports/estimated-water-usage-report/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
status string true
data ReportData false
filters ReportFilters true
userId string true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true
projectsFlowRates ProjectFlowRate[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
waterUsage number true
projects ReportProject[ ] true
scheduledWaterUsage number false
manualWaterUsage number false

ReportProject

Name Type Required Description
projectId string true
name string true
waterUsage number true
controllers ReportController[ ] true
scheduledWaterUsage number false
manualWaterUsage number false

ReportController

Name Type Required Description
controllerId string true
name string true
waterUsage number true
zones ReportZone[ ] true
scheduledWaterUsage number false
manualWaterUsage number false

ReportZone

Name Type Required Description
zoneId string true
zoneNumber integer true
name string true
waterUsage number true
scheduledWaterUsage number false
manualWaterUsage number false

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
waterUsage number true
scheduledWaterUsage number false
manualWaterUsage number false

ProjectFlowRate

Name Type Required Description
projectId string true
projectName string true
controllers Controller[ ] true

Controller

Name Type Required Description
controllerId string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
zoneId string true
number integer true
name string true
flowRateGpm number false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

V1 | Reports | Landscape Report

Create Landscape report

Request

curl "https://developer-api.etwater.com/api/v1/reports/landscape-report" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"filters\": {
        \"projectControllers\": {
            \"projectControllers\": [
                {
                    \"projectId\": \"example string value\",
                    \"controllerIdList\": [
                        \"example string value\"
                    ]
                }
            ]
        }
    },
    \"meta\": {
        \"example_property_name\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "DONE",
    "userId": "example string value",
    "data": {
        "projects": [
            {
                "id": "example string value",
                "name": "example string value",
                "controllers": [
                    {
                        "id": "example string value",
                        "name": "example string value",
                        "zones": [
                            {
                                "id": "example string value",
                                "number": 79,
                                "name": "example string value",
                                "vegetationTypes": [
                                    "example string value"
                                ],
                                "emitterTypes": [
                                    "example string value"
                                ],
                                "scheduleType": "FIXED",
                                "rootDepthMeters": 11,
                                "intervalAdjustmentCoefficient": 103,
                                "waterBudgetAdjustmentCoefficient": 434.6331513648076,
                                "triggerDepletionPercent": 797,
                                "soilType": "example string value",
                                "slopeTypeId": 46,
                                "shadeLevel": 659
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

POST /api/v1/reports/landscape-report

Request parameters

Name Type Part Required Description
Authorization string header true
GetLandscapeReportRequest LandscapeReportCreateRequest body false

LandscapeReportCreateRequest

Name Type Required Description
filters ReportFilters true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

Object for field meta

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
projects Project[ ] true

Project

Name Type Required Description
id string true
name string true
controllers Controller[ ] true

Controller

Name Type Required Description
id string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
id string true
number integer true
name string true
vegetationTypes string[ ] true
emitterTypes string[ ] true
scheduleType string true
rootDepthMeters number true
intervalAdjustmentCoefficient number true
waterBudgetAdjustmentCoefficient number true
triggerDepletionPercent integer true
soilType string true
slopeTypeId integer true
shadeLevel integer true

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

Object for field meta

Name Type Required Description
* string false

Get Landscape report

Request

curl "https://developer-api.etwater.com/api/v1/reports/landscape-report/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "DONE",
    "userId": "example string value",
    "data": {
        "projects": [
            {
                "id": "example string value",
                "name": "example string value",
                "controllers": [
                    {
                        "id": "example string value",
                        "name": "example string value",
                        "zones": [
                            {
                                "id": "example string value",
                                "number": 625,
                                "name": "example string value",
                                "vegetationTypes": [
                                    "example string value"
                                ],
                                "emitterTypes": [
                                    "example string value"
                                ],
                                "scheduleType": "ONE_TIME",
                                "rootDepthMeters": 84,
                                "intervalAdjustmentCoefficient": 246,
                                "waterBudgetAdjustmentCoefficient": 231,
                                "triggerDepletionPercent": 201,
                                "soilType": "example string value",
                                "slopeTypeId": 776,
                                "shadeLevel": 16
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

GET /api/v1/reports/landscape-report/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
projects Project[ ] true

Project

Name Type Required Description
id string true
name string true
controllers Controller[ ] true

Controller

Name Type Required Description
id string true
name string true
zones Zone[ ] true

Zone

Name Type Required Description
id string true
number integer true
name string true
vegetationTypes string[ ] true
emitterTypes string[ ] true
scheduleType string true
rootDepthMeters number true
intervalAdjustmentCoefficient number true
waterBudgetAdjustmentCoefficient number true
triggerDepletionPercent integer true
soilType string true
slopeTypeId integer true
shadeLevel integer true

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

Object for field meta

Name Type Required Description
* string false

V1 | Reports | Measured Water Cost Report

Create measured water cost report

Request

curl "https://developer-api.etwater.com/api/v1/reports/measured-water-cost-report?startDate=example+string+value&endDate=example+string+value&interval=BILLING_PERIOD&measureUnits=example+string+value" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"filters\": {
        \"projectControllers\": {
            \"projectControllers\": [
                {
                    \"projectId\": \"example string value\",
                    \"controllerIdList\": [
                        \"example string value\"
                    ]
                }
            ]
        },
        \"measureUnits\": {
            \"units\": \"HCF\"
        },
        \"period\": {
            \"startDate\": \"example string value\",
            \"endDate\": \"example string value\",
            \"interval\": \"BILLING_PERIOD\"
        }
    },
    \"meta\": {
        \"example_property_name\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "UNPROCESSABLE",
    "userId": "example string value",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "manualUsage": 181.00911713252268,
            "manualUsageCost": 585,
            "scheduledUsage": 173.27315973736026,
            "scheduledUsageCost": 807,
            "otherUsage": 754,
            "otherUsageCost": 256.21349236751604,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "manualUsage": 498,
                    "manualUsageCost": 12,
                    "scheduledUsage": 46,
                    "scheduledUsageCost": 219.143531387273,
                    "otherUsage": 770.8008176511157,
                    "otherUsageCost": 449.28019654437907,
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "manualUsage": 843,
                            "manualUsageCost": 91,
                            "scheduledUsage": 779,
                            "scheduledUsageCost": 965,
                            "otherUsage": 365.4183882127602,
                            "otherUsageCost": 701,
                            "zones": [
                                {
                                    "zoneNumber": 830,
                                    "name": "example string value",
                                    "manualUsage": 781.750027920003,
                                    "manualUsageCost": 302,
                                    "scheduledUsage": 428,
                                    "scheduledUsageCost": 171.5429398098695,
                                    "totalWaterUsage": 11,
                                    "totalWaterUsageCost": 47.881620492731045
                                }
                            ],
                            "totalWaterUsage": 356,
                            "totalWaterUsageCost": 388
                        }
                    ],
                    "totalWaterUsage": 126,
                    "totalWaterUsageCost": 131
                }
            ],
            "totalWaterUsage": 67.26489172655386,
            "totalWaterUsageCost": 93
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "manualUsage": 346.3084266271016,
                "manualUsageCost": 115.89215049328848,
                "scheduledUsage": 442.1876428845281,
                "scheduledUsageCost": 736.4519074263293,
                "otherUsage": 425,
                "otherUsageCost": 707,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "manualUsage": 331.2671684339955,
                        "manualUsageCost": 549.3427531557822,
                        "scheduledUsage": 158.59794437819997,
                        "scheduledUsageCost": 167.24896857852534,
                        "otherUsage": 874,
                        "otherUsageCost": 945,
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "manualUsage": 817.0778936786008,
                                "manualUsageCost": 173.99795966874711,
                                "scheduledUsage": 154.20210927454852,
                                "scheduledUsageCost": 38,
                                "otherUsage": 237,
                                "otherUsageCost": 987,
                                "zones": [
                                    {
                                        "zoneNumber": 61,
                                        "name": "example string value",
                                        "manualUsage": 881,
                                        "manualUsageCost": 261,
                                        "scheduledUsage": 148.19035732568724,
                                        "scheduledUsageCost": 176,
                                        "totalWaterUsage": 945,
                                        "totalWaterUsageCost": 400
                                    }
                                ],
                                "totalWaterUsage": 186.24838310584815,
                                "totalWaterUsageCost": 34.27226656781149
                            }
                        ],
                        "totalWaterUsage": 921.6682114273627,
                        "totalWaterUsageCost": 283.0610895916173
                    }
                ],
                "totalWaterUsage": 434,
                "totalWaterUsageCost": 191
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "manualUsage": 434.96889967237087,
                "manualUsageCost": 52.94310024610865,
                "scheduledUsage": 364.1883425247801,
                "scheduledUsageCost": 291.569964630329,
                "otherUsage": 364,
                "otherUsageCost": 501.65898189957204,
                "totalWaterUsage": 484,
                "totalWaterUsageCost": 23
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "measureUnits": {
            "units": "HCF"
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "BILLING_PERIOD"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

POST /api/v1/reports/measured-water-cost-report

Request parameters

Name Type Part Required Description
Authorization string header true
startDate string query true
endDate string query true
interval string query false
measureUnits string query false
MeasuredWaterCostReportCreateRequest MeasuredWaterCostReportCreateRequest body true

MeasuredWaterCostReportCreateRequest

Name Type Required Description
filters ReportFilters true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
otherUsage number true
otherUsageCost number true
projects Project[ ] true
totalWaterUsage number true
totalWaterUsageCost number true

Project

Name Type Required Description
projectId string true
name string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
otherUsage number true
otherUsageCost number true
controllers Controller[ ] true
totalWaterUsage number true
totalWaterUsageCost number true

Controller

Name Type Required Description
controllerId string true
name string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
otherUsage number true
otherUsageCost number true
zones Zone[ ] true
totalWaterUsage number true
totalWaterUsageCost number true

Zone

Name Type Required Description
zoneNumber integer true
name string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
totalWaterUsage number true
totalWaterUsageCost number true

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
otherUsage number true
otherUsageCost number true
totalWaterUsage number true
totalWaterUsageCost number true

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

Get measured water cost report

Request

curl "https://developer-api.etwater.com/api/v1/reports/measured-water-cost-report/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "IN_PROGRESS",
    "userId": "example string value",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "manualUsage": 926,
            "manualUsageCost": 884.1479126755837,
            "scheduledUsage": 436.6999130866955,
            "scheduledUsageCost": 536.2913326994941,
            "otherUsage": 937,
            "otherUsageCost": 785,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "manualUsage": 419,
                    "manualUsageCost": 993,
                    "scheduledUsage": 323.0993623487183,
                    "scheduledUsageCost": 578.3162133667228,
                    "otherUsage": 937.9229014450325,
                    "otherUsageCost": 202.22687637537106,
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "manualUsage": 979.973569968703,
                            "manualUsageCost": 525.319346937034,
                            "scheduledUsage": 79.40467124777133,
                            "scheduledUsageCost": 919.9202418885753,
                            "otherUsage": 907.0905893608418,
                            "otherUsageCost": 609.6621475227466,
                            "zones": [
                                {
                                    "zoneNumber": 433,
                                    "name": "example string value",
                                    "manualUsage": 971.7597309368475,
                                    "manualUsageCost": 809.2156349724231,
                                    "scheduledUsage": 297.11968512140203,
                                    "scheduledUsageCost": 899,
                                    "totalWaterUsage": 535,
                                    "totalWaterUsageCost": 830.8202502461245
                                }
                            ],
                            "totalWaterUsage": 534.5529180646654,
                            "totalWaterUsageCost": 865.3036089918127
                        }
                    ],
                    "totalWaterUsage": 306.9964811704105,
                    "totalWaterUsageCost": 972.0257646273942
                }
            ],
            "totalWaterUsage": 86.08548719719309,
            "totalWaterUsageCost": 787
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "manualUsage": 515.8854273687514,
                "manualUsageCost": 398.4541214995338,
                "scheduledUsage": 257.1580061955182,
                "scheduledUsageCost": 667.8100617918233,
                "otherUsage": 426,
                "otherUsageCost": 10,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "manualUsage": 339,
                        "manualUsageCost": 748,
                        "scheduledUsage": 544.9694122862859,
                        "scheduledUsageCost": 936,
                        "otherUsage": 667.471095299102,
                        "otherUsageCost": 239,
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "manualUsage": 250,
                                "manualUsageCost": 964.1544786114965,
                                "scheduledUsage": 891.9911365453113,
                                "scheduledUsageCost": 801,
                                "otherUsage": 560.3250696139062,
                                "otherUsageCost": 348,
                                "zones": [
                                    {
                                        "zoneNumber": 253,
                                        "name": "example string value",
                                        "manualUsage": 620.9827557303862,
                                        "manualUsageCost": 883,
                                        "scheduledUsage": 772.2670313773058,
                                        "scheduledUsageCost": 615,
                                        "totalWaterUsage": 513.3902730948247,
                                        "totalWaterUsageCost": 958.2117991327364
                                    }
                                ],
                                "totalWaterUsage": 110,
                                "totalWaterUsageCost": 973
                            }
                        ],
                        "totalWaterUsage": 190,
                        "totalWaterUsageCost": 23
                    }
                ],
                "totalWaterUsage": 468.6876542254759,
                "totalWaterUsageCost": 413
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "manualUsage": 149.0633278847967,
                "manualUsageCost": 787,
                "scheduledUsage": 699.4291947686249,
                "scheduledUsageCost": 930.047169760823,
                "otherUsage": 46.10187236503785,
                "otherUsageCost": 327.624920908187,
                "totalWaterUsage": 972.6554485841913,
                "totalWaterUsageCost": 337
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "measureUnits": {
            "units": "HCF"
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "DAY"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

GET /api/v1/reports/measured-water-cost-report/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
otherUsage number true
otherUsageCost number true
projects Project[ ] true
totalWaterUsage number true
totalWaterUsageCost number true

Project

Name Type Required Description
projectId string true
name string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
otherUsage number true
otherUsageCost number true
controllers Controller[ ] true
totalWaterUsage number true
totalWaterUsageCost number true

Controller

Name Type Required Description
controllerId string true
name string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
otherUsage number true
otherUsageCost number true
zones Zone[ ] true
totalWaterUsage number true
totalWaterUsageCost number true

Zone

Name Type Required Description
zoneNumber integer true
name string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
totalWaterUsage number true
totalWaterUsageCost number true

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
manualUsage number true
manualUsageCost number true
scheduledUsage number true
scheduledUsageCost number true
otherUsage number true
otherUsageCost number true
totalWaterUsage number true
totalWaterUsageCost number true

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

V1 | Reports | Measured Water Usage Report

Create measured water usage report

Request

curl "https://developer-api.etwater.com/api/v1/reports/measured-water-usage-report?startDate=example+string+value&endDate=example+string+value&interval=BILLING_PERIOD&measureUnits=example+string+value" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"filters\": {
        \"projectControllers\": {
            \"projectControllers\": [
                {
                    \"projectId\": \"example string value\",
                    \"controllerIdList\": [
                        \"example string value\"
                    ]
                }
            ]
        },
        \"measureUnits\": {
            \"units\": \"HCF\"
        },
        \"period\": {
            \"startDate\": \"example string value\",
            \"endDate\": \"example string value\",
            \"interval\": \"BILLING_PERIOD\"
        }
    },
    \"meta\": {
        \"example_property_name\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "UNPROCESSABLE",
    "userId": "example string value",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "manualUsage": 122,
            "scheduledUsage": 646.7796143362203,
            "otherUsage": 812.3188301978255,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "manualUsage": 9.36866924602942,
                    "scheduledUsage": 512,
                    "otherUsage": 348.14062684222154,
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "manualUsage": 587.4648762808483,
                            "scheduledUsage": 553,
                            "otherUsage": 534,
                            "zones": [
                                {
                                    "zoneNumber": 57,
                                    "name": "example string value",
                                    "manualUsage": 775,
                                    "scheduledUsage": 137,
                                    "totalWaterUsage": 214.0914025782102
                                }
                            ],
                            "totalWaterUsage": 850
                        }
                    ],
                    "totalWaterUsage": 990.9032410899657
                }
            ],
            "totalWaterUsage": 591.2844881374782
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "manualUsage": 252.3671520186435,
                "scheduledUsage": 719.1919659819417,
                "otherUsage": 895,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "manualUsage": 199.86374406137676,
                        "scheduledUsage": 730.5094509993258,
                        "otherUsage": 119.69549400717742,
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "manualUsage": 492,
                                "scheduledUsage": 468,
                                "otherUsage": 201,
                                "zones": [
                                    {
                                        "zoneNumber": 799,
                                        "name": "example string value",
                                        "manualUsage": 186.0418548742504,
                                        "scheduledUsage": 527.6305901480981,
                                        "totalWaterUsage": 793.9952489891998
                                    }
                                ],
                                "totalWaterUsage": 229.1394701363237
                            }
                        ],
                        "totalWaterUsage": 665
                    }
                ],
                "totalWaterUsage": 145.89840832441038
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "manualUsage": 723,
                "scheduledUsage": 109,
                "otherUsage": 673,
                "totalWaterUsage": 238.91070682504713
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "measureUnits": {
            "units": "HCF"
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "DAY"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

POST /api/v1/reports/measured-water-usage-report

Request parameters

Name Type Part Required Description
Authorization string header true
startDate string query true
endDate string query true
interval string query false
measureUnits string query false
MeasuredWaterUsageReportCreateRequest MeasuredWaterUsageReportCreateRequest body true

MeasuredWaterUsageReportCreateRequest

Name Type Required Description
filters ReportFilters true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
manualUsage number true
scheduledUsage number true
otherUsage number true
projects Project[ ] true
totalWaterUsage number true

Project

Name Type Required Description
projectId string true
name string true
manualUsage number true
scheduledUsage number true
otherUsage number true
controllers Controller[ ] true
totalWaterUsage number true

Controller

Name Type Required Description
controllerId string true
name string true
manualUsage number true
scheduledUsage number true
otherUsage number true
zones Zone[ ] true
totalWaterUsage number true

Zone

Name Type Required Description
zoneNumber integer true
name string true
manualUsage number true
scheduledUsage number true
totalWaterUsage number true

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
manualUsage number true
scheduledUsage number true
otherUsage number true
totalWaterUsage number true

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

Get measured water usage report

Request

curl "https://developer-api.etwater.com/api/v1/reports/measured-water-usage-report/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "IN_PROGRESS",
    "userId": "example string value",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "manualUsage": 492,
            "scheduledUsage": 29.821631512521595,
            "otherUsage": 931,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "manualUsage": 549,
                    "scheduledUsage": 615,
                    "otherUsage": 101.18164406213056,
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "manualUsage": 518,
                            "scheduledUsage": 491.92692502025835,
                            "otherUsage": 820,
                            "zones": [
                                {
                                    "zoneNumber": 29,
                                    "name": "example string value",
                                    "manualUsage": 333,
                                    "scheduledUsage": 839,
                                    "totalWaterUsage": 36.068288160519806
                                }
                            ],
                            "totalWaterUsage": 698.0283459173647
                        }
                    ],
                    "totalWaterUsage": 699.848286667768
                }
            ],
            "totalWaterUsage": 264.7441994700321
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "manualUsage": 383,
                "scheduledUsage": 491,
                "otherUsage": 824,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "manualUsage": 714,
                        "scheduledUsage": 966,
                        "otherUsage": 340.00512694008887,
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "manualUsage": 386.82503736895745,
                                "scheduledUsage": 911.3980978314756,
                                "otherUsage": 455,
                                "zones": [
                                    {
                                        "zoneNumber": 840,
                                        "name": "example string value",
                                        "manualUsage": 668,
                                        "scheduledUsage": 423.67101946085273,
                                        "totalWaterUsage": 994
                                    }
                                ],
                                "totalWaterUsage": 764.6139882340161
                            }
                        ],
                        "totalWaterUsage": 421.9261828912078
                    }
                ],
                "totalWaterUsage": 988
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "manualUsage": 173.66553897674453,
                "scheduledUsage": 90.60598262148257,
                "otherUsage": 448.7955735292265,
                "totalWaterUsage": 41
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "measureUnits": {
            "units": "GALLONS"
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "DAY"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

GET /api/v1/reports/measured-water-usage-report/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
manualUsage number true
scheduledUsage number true
otherUsage number true
projects Project[ ] true
totalWaterUsage number true

Project

Name Type Required Description
projectId string true
name string true
manualUsage number true
scheduledUsage number true
otherUsage number true
controllers Controller[ ] true
totalWaterUsage number true

Controller

Name Type Required Description
controllerId string true
name string true
manualUsage number true
scheduledUsage number true
otherUsage number true
zones Zone[ ] true
totalWaterUsage number true

Zone

Name Type Required Description
zoneNumber integer true
name string true
manualUsage number true
scheduledUsage number true
totalWaterUsage number true

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
manualUsage number true
scheduledUsage number true
otherUsage number true
totalWaterUsage number true

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
measureUnits WateringMeasureUnitsFilter true
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

WateringMeasureUnitsFilter

Name Type Required Description
units string true

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

V1 | Reports | Over/Under Report

Create Over/Under report

Request

curl "https://developer-api.etwater.com/api/v1/reports/over-under-report?startDate=example+string+value&endDate=example+string+value&interval=example+string+value" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"filters\": {
        \"projectControllers\": {
            \"projectControllers\": [
                {
                    \"projectId\": \"example string value\",
                    \"controllerIdList\": [
                        \"example string value\"
                    ]
                }
            ]
        },
        \"period\": {
            \"startDate\": \"example string value\",
            \"endDate\": \"example string value\",
            \"interval\": \"MONTH\"
        }
    },
    \"meta\": {
        \"example_property_name\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "UNPROCESSABLE",
    "userId": "example string value",
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "MONTH"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    }
}

HTTP Request

POST /api/v1/reports/over-under-report

Request parameters

Name Type Part Required Description
Authorization string header true
startDate string query true
endDate string query true
interval string query false
OverUnderReportCreateRequest OverUnderReportCreateRequest body true

OverUnderReportCreateRequest

Name Type Required Description
filters ReportFilters true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
status string true
userId string true
filters ReportFilters true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

Get Over/Under report

Request

curl "https://developer-api.etwater.com/api/v1/reports/over-under-report/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "IN_PROGRESS",
    "userId": "example string value",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "rainMm": 983.4291115326012,
            "etcMm": 133,
            "etoMm": 212,
            "realEffectiveWateringMm": 880,
            "projects": [
                {
                    "id": "example string value",
                    "name": "example string value",
                    "controllers": [
                        {
                            "id": "example string value",
                            "name": "example string value",
                            "zones": [
                                {
                                    "id": "example string value",
                                    "number": 322,
                                    "name": "example string value",
                                    "rainMm": 329.5198377824947,
                                    "etcMm": 674.7344800619104,
                                    "etoMm": 816.2634441704785,
                                    "realEffectiveWateringMm": 795
                                }
                            ],
                            "rainMm": 621.760906941146,
                            "etcMm": 563,
                            "etoMm": 64.69322324949,
                            "realEffectiveWateringMm": 71.3175037276547
                        }
                    ],
                    "rainMm": 729.4405646293612,
                    "etcMm": 885.432923159298,
                    "etoMm": 233,
                    "realEffectiveWateringMm": 99.2169795088549
                }
            ],
            "avgRealEffectiveWateringMm": 185,
            "avgEtcMmByStation": 63.301970280381845,
            "avgRealEffectiveWateringMmByStation": 650
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "rainMm": 180,
                "etcMm": 531.8462157304614,
                "etoMm": 894,
                "realEffectiveWateringMm": 682.4155737098379,
                "projects": [
                    {
                        "id": "example string value",
                        "name": "example string value",
                        "controllers": [
                            {
                                "id": "example string value",
                                "name": "example string value",
                                "zones": [
                                    {
                                        "id": "example string value",
                                        "number": 625,
                                        "name": "example string value",
                                        "rainMm": 900,
                                        "etcMm": 947.8051089438634,
                                        "etoMm": 40.7762509029248,
                                        "realEffectiveWateringMm": 353
                                    }
                                ],
                                "rainMm": 972.1041908357777,
                                "etcMm": 10.268228133333954,
                                "etoMm": 191,
                                "realEffectiveWateringMm": 882
                            }
                        ],
                        "rainMm": 249,
                        "etcMm": 67.35959885053317,
                        "etoMm": 303,
                        "realEffectiveWateringMm": 808.7130369659108
                    }
                ],
                "avgRealEffectiveWateringMm": 699.3222663641545,
                "avgEtcMmByStation": 651,
                "avgRealEffectiveWateringMmByStation": 865.8237745360582
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "rainMm": 60.33130505137672,
                "etcMm": 118,
                "etoMm": 988,
                "realEffectiveWateringMm": 389,
                "avgRealEffectiveWateringMm": 211.8414031396813,
                "avgEtcMmByStation": 627.8968968558576,
                "avgRealEffectiveWateringMmByStation": 612.8417670786575
            }
        ],
        "landscapeReport": [
            {
                "id": "example string value",
                "name": "example string value",
                "controllers": [
                    {
                        "id": "example string value",
                        "name": "example string value",
                        "zones": [
                            {
                                "id": "example string value",
                                "number": 379,
                                "name": "example string value",
                                "vegetationTypes": [
                                    "example string value"
                                ],
                                "emitterTypes": [
                                    "example string value"
                                ],
                                "scheduleType": "ESTABLISHMENT",
                                "rootDepthMeters": 701.7233095605501,
                                "intervalAdjustmentCoefficient": 814,
                                "waterBudgetAdjustmentCoefficient": 504,
                                "triggerDepletionPercent": 574,
                                "soilType": "example string value",
                                "slopeTypeId": 819,
                                "shadeLevel": 400
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "DAY"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

GET /api/v1/reports/over-under-report/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true
landscapeReport Project[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
rainMm number true
etcMm number true
etoMm number true
realEffectiveWateringMm number true
projects Project[ ] true
avgRealEffectiveWateringMm number true
avgEtcMmByStation number false
avgRealEffectiveWateringMmByStation number false

Project

Name Type Required Description
id string true
name string true
controllers Controller[ ] true
rainMm number true
etcMm number true
etoMm number true
realEffectiveWateringMm number true

Controller

Name Type Required Description
id string true
name string true
zones Zone[ ] true
rainMm number true
etcMm number true
etoMm number true
realEffectiveWateringMm number true

Zone

Name Type Required Description
id string true
number integer true
name string true
rainMm number true
etcMm number true
etoMm number true
realEffectiveWateringMm number true

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
rainMm number true
etcMm number true
etoMm number true
realEffectiveWateringMm number true
avgRealEffectiveWateringMm number true
avgEtcMmByStation number false
avgRealEffectiveWateringMmByStation number false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

V1 | Reports | Runtime Report

Create runtime report

Request

curl "https://developer-api.etwater.com/api/v1/reports/runtime-report?startDate=example+string+value&endDate=example+string+value&interval=example+string+value" \
-X POST \
-H "Authorization: example string value" \
--data "{
    \"filters\": {
        \"projectControllers\": {
            \"projectControllers\": [
                {
                    \"projectId\": \"example string value\",
                    \"controllerIdList\": [
                        \"example string value\"
                    ]
                }
            ]
        },
        \"period\": {
            \"startDate\": \"example string value\",
            \"endDate\": \"example string value\",
            \"interval\": \"MONTH\"
        }
    },
    \"meta\": {
        \"example_property_name\": \"example string value\"
    }
}"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "DONE",
    "userId": "example string value",
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "MONTH"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    }
}

HTTP Request

POST /api/v1/reports/runtime-report

Request parameters

Name Type Part Required Description
Authorization string header true
startDate string query true
endDate string query true
interval string query false
RuntimeReportCreateRequest RuntimeReportCreateRequest body true

RuntimeReportCreateRequest

Name Type Required Description
filters ReportFilters true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
status string true
userId string true
filters ReportFilters true
meta Object for field meta false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

Get runtime report

Request

curl "https://developer-api.etwater.com/api/v1/reports/runtime-report/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "status": "DONE",
    "userId": "example string value",
    "data": {
        "total": {
            "dateStart": "example string value",
            "dateEnd": "example string value",
            "runtimeMinutes": 613,
            "avgRainMm": 311.11672488558884,
            "avgEtoMm": 904,
            "projects": [
                {
                    "projectId": "example string value",
                    "name": "example string value",
                    "runtimeMinutes": 810,
                    "avgRainMm": 68.75340457481956,
                    "etoMm": 241,
                    "controllers": [
                        {
                            "controllerId": "example string value",
                            "name": "example string value",
                            "runtimeMinutes": 816,
                            "zones": [
                                {
                                    "zoneNumber": 740,
                                    "name": "example string value",
                                    "runtimeMinutes": 100,
                                    "emitterType": "example string value",
                                    "emitterPrecipitationRate": 71,
                                    "plantTypes": [
                                        "example string value"
                                    ],
                                    "wateringMm": 31,
                                    "emitterCount": 610,
                                    "emitterTypeId": 794,
                                    "emitterPrecipitationRateMm": 674.0564693110327,
                                    "scheduledRuntimeMinutes": 941,
                                    "scheduledWateringMm": 21,
                                    "manualRuntimeMinutes": 833,
                                    "manualWateringMm": 594.630430729422
                                }
                            ],
                            "wateringMm": 390.14871483209953,
                            "scheduledRuntimeMinutes": 799,
                            "scheduledWateringMm": 21.31183912107341,
                            "manualRuntimeMinutes": 200,
                            "manualWateringMm": 996
                        }
                    ],
                    "wateringMm": 945.9635140122676,
                    "scheduledRuntimeMinutes": 528,
                    "scheduledWateringMm": 876,
                    "manualRuntimeMinutes": 80,
                    "manualWateringMm": 650.9711149385996
                }
            ],
            "minEtoMm": 251,
            "maxEtoMm": 380,
            "wateringMm": 819.8917875159027,
            "scheduledRuntimeMinutes": 118,
            "scheduledWateringMm": 77,
            "manualRuntimeMinutes": 650,
            "manualWateringMm": 84.94203867620884
        },
        "buckets": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "runtimeMinutes": 18,
                "avgRainMm": 823,
                "avgEtoMm": 134,
                "projects": [
                    {
                        "projectId": "example string value",
                        "name": "example string value",
                        "runtimeMinutes": 649,
                        "avgRainMm": 556,
                        "etoMm": 355.44737724375324,
                        "controllers": [
                            {
                                "controllerId": "example string value",
                                "name": "example string value",
                                "runtimeMinutes": 685,
                                "zones": [
                                    {
                                        "zoneNumber": 731,
                                        "name": "example string value",
                                        "runtimeMinutes": 267,
                                        "emitterType": "example string value",
                                        "emitterPrecipitationRate": 683,
                                        "plantTypes": [
                                            "example string value"
                                        ],
                                        "wateringMm": 258.65903322522485,
                                        "emitterCount": 622,
                                        "emitterTypeId": 458,
                                        "emitterPrecipitationRateMm": 303.68512463927505,
                                        "scheduledRuntimeMinutes": 24,
                                        "scheduledWateringMm": 91.45443052586839,
                                        "manualRuntimeMinutes": 360,
                                        "manualWateringMm": 536.5906662943729
                                    }
                                ],
                                "wateringMm": 891,
                                "scheduledRuntimeMinutes": 595,
                                "scheduledWateringMm": 41,
                                "manualRuntimeMinutes": 907,
                                "manualWateringMm": 259.93283431042585
                            }
                        ],
                        "wateringMm": 885,
                        "scheduledRuntimeMinutes": 275,
                        "scheduledWateringMm": 117.01675696159562,
                        "manualRuntimeMinutes": 164,
                        "manualWateringMm": 451.24456633405975
                    }
                ],
                "minEtoMm": 929.0979345930265,
                "maxEtoMm": 58.13655166799973,
                "wateringMm": 472,
                "scheduledRuntimeMinutes": 683,
                "scheduledWateringMm": 74.10577315562674,
                "manualRuntimeMinutes": 301,
                "manualWateringMm": 920.0933831371801
            }
        ],
        "bucketsTotal": [
            {
                "dateStart": "example string value",
                "dateEnd": "example string value",
                "runtimeMinutes": 978,
                "avgRainMm": 294.5061723210412,
                "etoMm": 734.0537643684326,
                "minEtoMm": 659.2930837810474,
                "maxEtoMm": 960,
                "wateringMm": 430.18416521613676,
                "scheduledRuntimeMinutes": 355,
                "scheduledWateringMm": 821,
                "manualRuntimeMinutes": 515,
                "manualWateringMm": 799.9757965095229
            }
        ]
    },
    "filters": {
        "projectControllers": {
            "projectControllers": [
                {
                    "projectId": "example string value",
                    "controllerIdList": [
                        "example string value"
                    ]
                }
            ]
        },
        "period": {
            "startDate": "example string value",
            "endDate": "example string value",
            "interval": "MONTH"
        }
    },
    "meta": {
        "example_property_name": "example string value"
    },
    "storedDataUrl": "example string value"
}

HTTP Request

GET /api/v1/reports/runtime-report/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
status string true
userId string true
data ReportData false
filters ReportFilters true
meta Object for field meta false
storedDataUrl string false

ReportData

Name Type Required Description
total Bucket true
buckets Bucket[ ] true
bucketsTotal BucketTotal[ ] true

Bucket

Name Type Required Description
dateStart string true
dateEnd string true
runtimeMinutes integer true
avgRainMm number true
avgEtoMm number true
projects Project[ ] true
minEtoMm number true
maxEtoMm number true
wateringMm number false
scheduledRuntimeMinutes integer false
scheduledWateringMm number false
manualRuntimeMinutes integer false
manualWateringMm number false

Project

Name Type Required Description
projectId string true
name string true
runtimeMinutes integer true
avgRainMm number true
etoMm number true
controllers Controller[ ] true
wateringMm number false
scheduledRuntimeMinutes integer false
scheduledWateringMm number false
manualRuntimeMinutes integer false
manualWateringMm number false

Controller

Name Type Required Description
controllerId string true
name string true
runtimeMinutes integer true
zones Zone[ ] true
wateringMm number false
scheduledRuntimeMinutes integer false
scheduledWateringMm number false
manualRuntimeMinutes integer false
manualWateringMm number false

Zone

Name Type Required Description
zoneNumber integer true
name string true
runtimeMinutes integer true
emitterType string false
emitterPrecipitationRate number false
plantTypes string[ ] false
wateringMm number false
emitterCount integer false
emitterTypeId integer false
emitterPrecipitationRateMm number false
scheduledRuntimeMinutes integer false
scheduledWateringMm number false
manualRuntimeMinutes integer false
manualWateringMm number false

BucketTotal

Name Type Required Description
dateStart string true
dateEnd string true
runtimeMinutes integer true
avgRainMm number true
etoMm number true
minEtoMm number true
maxEtoMm number true
wateringMm number false
scheduledRuntimeMinutes integer false
scheduledWateringMm number false
manualRuntimeMinutes integer false
manualWateringMm number false

ReportFilters

Name Type Required Description
projectControllers ProjectControllersFilter false
period PeriodFilter true

ProjectControllersFilter

Name Type Required Description
projectControllers ProjectControllersValue[ ] true

ProjectControllersValue

Name Type Required Description
projectId string true
controllerIdList string[ ] false

PeriodFilter

Name Type Required Description
startDate string true
endDate string true
interval string true

Object for field meta

Name Type Required Description
* string false

V1 | Restrictions | Time Restrictions

Get all Time Restrictions

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/time?controllerId=example+string+value&active=0&stationGroupId=example+string+value&projectId=example+string+value" \
-X GET \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "controller": {
            "id": "example string value",
            "name": "example string value"
        },
        "project": {
            "id": "example string value",
            "name": "example string value"
        },
        "zoneNumbers": [
            613
        ],
        "startTime": 726,
        "endTime": 943,
        "count": 6,
        "applyUntil": 311,
        "dailyRecurrence": {
            "interval": "1"
        },
        "weeklyRecurrence": {
            "interval": "1",
            "dayOfWeekList": [
                5
            ]
        },
        "monthlyRecurrence": {
            "interval": "1",
            "daysOfMonth": null,
            "positionInMonth": 914,
            "daysOfWeek": [
                2
            ]
        },
        "yearlyRecurrence": {
            "interval": "1",
            "dayOfWeekList": [
                2
            ],
            "daysOfYear": null,
            "numberOfWeekList": null
        },
        "wateringManuallyAllowed": "1",
        "metadata": {
            "example_property_name": "example string value"
        },
        "areaRegionTypeIds": [
            353
        ],
        "emitterTypeIds": [
            295
        ],
        "municipalRestrictionId": "example string value",
        "modified": false,
        "basicMunicipalRestriction": {
            "id": "example string value",
            "controllerId": "example string value",
            "zoneNumbers": [
                703
            ],
            "startTime": 357,
            "endTime": 337,
            "count": 270,
            "applyUntil": 560,
            "dailyRecurrence": {
                "interval": "1"
            },
            "weeklyRecurrence": {
                "interval": "1",
                "dayOfWeekList": [
                    4
                ]
            },
            "monthlyRecurrence": {
                "interval": "1",
                "daysOfMonth": null,
                "positionInMonth": 255,
                "daysOfWeek": [
                    1
                ]
            },
            "yearlyRecurrence": {
                "interval": "1",
                "dayOfWeekList": [
                    1
                ],
                "daysOfYear": null,
                "numberOfWeekList": null
            },
            "wateringManuallyAllowed": "1",
            "metadata": {
                "example_property_name": "example string value"
            },
            "areaRegionTypeIds": [
                757
            ],
            "emitterTypeIds": [
                854
            ],
            "municipalRestrictionId": "example string value",
            "modified": false,
            "basicMunicipalRestriction": {
                "id": "example string value",
                "controllerId": "example string value",
                "zoneNumbers": [
                    745
                ],
                "startTime": 614,
                "endTime": 612,
                "count": 980,
                "applyUntil": 834,
                "dailyRecurrence": {
                    "interval": "1"
                },
                "weeklyRecurrence": {
                    "interval": "1",
                    "dayOfWeekList": [
                        2
                    ]
                },
                "monthlyRecurrence": {
                    "interval": "1",
                    "daysOfMonth": null,
                    "positionInMonth": 171,
                    "daysOfWeek": [
                        3
                    ]
                },
                "yearlyRecurrence": {
                    "interval": "1",
                    "dayOfWeekList": [
                        0
                    ],
                    "daysOfYear": null,
                    "numberOfWeekList": null
                },
                "wateringManuallyAllowed": "1",
                "metadata": {
                    "example_property_name": "example string value"
                },
                "areaRegionTypeIds": [
                    418
                ],
                "emitterTypeIds": [
                    248
                ],
                "municipalRestrictionId": "example string value",
                "modified": true,
                "basicMunicipalRestriction": null,
                "name": "example string value",
                "weatherRestrictionId": "example string value",
                "userId": "example string value",
                "allZones": true
            },
            "name": "example string value",
            "weatherRestrictionId": "example string value",
            "userId": "example string value",
            "allZones": true
        },
        "name": "example string value",
        "weatherRestrictionId": "example string value",
        "userId": "example string value",
        "allZones": true
    }
]

HTTP Request

GET /api/v1/restrictions/time

Request parameters

Name Type Part Required Description
Authorization string header true
Unity-Api-Gateway-Replace-UserId string header false
controllerId string query false
active boolean query false
stationGroupId string query false
projectId string query false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string false
controller Controller false
project Project false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

Controller

Name Type Required Description
id string true
name string true

Project

Name Type Required Description
id string true
name string true

DailyRecurrence

Name Type Required Description
interval integer false

WeeklyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false

MonthlyRecurrence

Name Type Required Description
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek integer[ ] false

YearlyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false
daysOfYear integer[ ] false
numberOfWeekList integer[ ] false

Object for field metadata

Name Type Required Description
* string false

TimeRestriction

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

Create a Time Restriction

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/time" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value" \
--data "{
    \"id\": \"example string value\",
    \"controllerId\": \"example string value\",
    \"zoneNumbers\": [
        981
    ],
    \"startTime\": 251,
    \"endTime\": 781,
    \"count\": 449,
    \"applyUntil\": 768,
    \"dailyRecurrence\": {
        \"interval\": \"1\"
    },
    \"weeklyRecurrence\": {
        \"interval\": \"1\",
        \"dayOfWeekList\": [
            1
        ]
    },
    \"monthlyRecurrence\": {
        \"interval\": \"1\",
        \"daysOfMonth\": null,
        \"positionInMonth\": 628,
        \"daysOfWeek\": [
            2
        ]
    },
    \"yearlyRecurrence\": {
        \"interval\": \"1\",
        \"dayOfWeekList\": [
            5
        ],
        \"daysOfYear\": null,
        \"numberOfWeekList\": null
    },
    \"wateringManuallyAllowed\": \"1\",
    \"metadata\": {
        \"example_property_name\": \"example string value\"
    },
    \"areaRegionTypeIds\": [
        308
    ],
    \"emitterTypeIds\": [
        906
    ],
    \"municipalRestrictionId\": \"example string value\",
    \"modified\": false,
    \"basicMunicipalRestriction\": {
        \"id\": \"example string value\",
        \"controllerId\": \"example string value\",
        \"zoneNumbers\": [
            54
        ],
        \"startTime\": 319,
        \"endTime\": 471,
        \"count\": 863,
        \"applyUntil\": 716,
        \"dailyRecurrence\": {
            \"interval\": \"1\"
        },
        \"weeklyRecurrence\": {
            \"interval\": \"1\",
            \"dayOfWeekList\": [
                3
            ]
        },
        \"monthlyRecurrence\": {
            \"interval\": \"1\",
            \"daysOfMonth\": null,
            \"positionInMonth\": 188,
            \"daysOfWeek\": [
                6
            ]
        },
        \"yearlyRecurrence\": {
            \"interval\": \"1\",
            \"dayOfWeekList\": [
                5
            ],
            \"daysOfYear\": null,
            \"numberOfWeekList\": null
        },
        \"wateringManuallyAllowed\": \"1\",
        \"metadata\": {
            \"example_property_name\": \"example string value\"
        },
        \"areaRegionTypeIds\": [
            337
        ],
        \"emitterTypeIds\": [
            581
        ],
        \"municipalRestrictionId\": \"example string value\",
        \"modified\": false,
        \"basicMunicipalRestriction\": null,
        \"name\": \"example string value\",
        \"weatherRestrictionId\": \"example string value\",
        \"userId\": \"example string value\",
        \"allZones\": false
    },
    \"name\": \"example string value\",
    \"weatherRestrictionId\": \"example string value\",
    \"userId\": \"example string value\",
    \"allZones\": true
}"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v1/restrictions/time

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
Unity-Api-Gateway-Replace-UserId string header false
TimeRestriction TimeRestriction body true

TimeRestriction

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

DailyRecurrence

Name Type Required Description
interval integer false

WeeklyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false

MonthlyRecurrence

Name Type Required Description
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek integer[ ] false

YearlyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false
daysOfYear integer[ ] false
numberOfWeekList integer[ ] false

Object for field metadata

Name Type Required Description
* string false

HTTP Responses

Code Description
201 Created
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

DailyRecurrence

Name Type Required Description
interval integer false

WeeklyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false

MonthlyRecurrence

Name Type Required Description
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek integer[ ] false

YearlyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false
daysOfYear integer[ ] false
numberOfWeekList integer[ ] false

Object for field metadata

Name Type Required Description
* string false

TimeRestriction

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

Get a Time Restriction by id

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/time/{id}" \
-X GET \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "controllerId": "example string value",
    "zoneNumbers": [
        402
    ],
    "startTime": 576,
    "endTime": 274,
    "count": 165,
    "applyUntil": 286,
    "dailyRecurrence": {
        "interval": "1"
    },
    "weeklyRecurrence": {
        "interval": "1",
        "dayOfWeekList": [
            1
        ]
    },
    "monthlyRecurrence": {
        "interval": "1",
        "daysOfMonth": null,
        "positionInMonth": 345,
        "daysOfWeek": [
            6
        ]
    },
    "yearlyRecurrence": {
        "interval": "1",
        "dayOfWeekList": [
            4
        ],
        "daysOfYear": null,
        "numberOfWeekList": null
    },
    "wateringManuallyAllowed": "1",
    "metadata": {
        "example_property_name": "example string value"
    },
    "areaRegionTypeIds": [
        814
    ],
    "emitterTypeIds": [
        379
    ],
    "municipalRestrictionId": "example string value",
    "modified": true,
    "basicMunicipalRestriction": {
        "id": "example string value",
        "controllerId": "example string value",
        "zoneNumbers": [
            277
        ],
        "startTime": 624,
        "endTime": 190,
        "count": 339,
        "applyUntil": 977,
        "dailyRecurrence": {
            "interval": "1"
        },
        "weeklyRecurrence": {
            "interval": "1",
            "dayOfWeekList": [
                4
            ]
        },
        "monthlyRecurrence": {
            "interval": "1",
            "daysOfMonth": null,
            "positionInMonth": 859,
            "daysOfWeek": [
                2
            ]
        },
        "yearlyRecurrence": {
            "interval": "1",
            "dayOfWeekList": [
                1
            ],
            "daysOfYear": null,
            "numberOfWeekList": null
        },
        "wateringManuallyAllowed": "1",
        "metadata": {
            "example_property_name": "example string value"
        },
        "areaRegionTypeIds": [
            565
        ],
        "emitterTypeIds": [
            949
        ],
        "municipalRestrictionId": "example string value",
        "modified": false,
        "basicMunicipalRestriction": null,
        "name": "example string value",
        "weatherRestrictionId": "example string value",
        "userId": "example string value",
        "allZones": false
    },
    "name": "example string value",
    "weatherRestrictionId": "example string value",
    "userId": "example string value",
    "allZones": false
}

HTTP Request

GET /api/v1/restrictions/time/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
Unity-Api-Gateway-Replace-UserId string header false
id string path true

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

DailyRecurrence

Name Type Required Description
interval integer false

WeeklyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false

MonthlyRecurrence

Name Type Required Description
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek integer[ ] false

YearlyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false
daysOfYear integer[ ] false
numberOfWeekList integer[ ] false

Object for field metadata

Name Type Required Description
* string false

TimeRestriction

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

Delete a Time Restriction by id

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/time/{id}" \
-X DELETE \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

no reponse

HTTP Request

DELETE /api/v1/restrictions/time/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
Unity-Api-Gateway-Replace-UserId string header false
id string path true

HTTP Responses

Code Description
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Update a Schedule Restriction by id

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/time/{id}" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value" \
--data "{
    \"id\": \"example string value\",
    \"controllerId\": \"example string value\",
    \"zoneNumbers\": [
        161
    ],
    \"startTime\": 907,
    \"endTime\": 384,
    \"count\": 549,
    \"applyUntil\": 898,
    \"dailyRecurrence\": {
        \"interval\": \"1\"
    },
    \"weeklyRecurrence\": {
        \"interval\": \"1\",
        \"dayOfWeekList\": [
            4
        ]
    },
    \"monthlyRecurrence\": {
        \"interval\": \"1\",
        \"daysOfMonth\": null,
        \"positionInMonth\": 832,
        \"daysOfWeek\": [
            2
        ]
    },
    \"yearlyRecurrence\": {
        \"interval\": \"1\",
        \"dayOfWeekList\": [
            3
        ],
        \"daysOfYear\": null,
        \"numberOfWeekList\": null
    },
    \"wateringManuallyAllowed\": \"1\",
    \"metadata\": {
        \"example_property_name\": \"example string value\"
    },
    \"areaRegionTypeIds\": [
        683
    ],
    \"emitterTypeIds\": [
        762
    ],
    \"municipalRestrictionId\": \"example string value\",
    \"modified\": false,
    \"basicMunicipalRestriction\": {
        \"id\": \"example string value\",
        \"controllerId\": \"example string value\",
        \"zoneNumbers\": [
            181
        ],
        \"startTime\": 399,
        \"endTime\": 582,
        \"count\": 674,
        \"applyUntil\": 46,
        \"dailyRecurrence\": {
            \"interval\": \"1\"
        },
        \"weeklyRecurrence\": {
            \"interval\": \"1\",
            \"dayOfWeekList\": [
                6
            ]
        },
        \"monthlyRecurrence\": {
            \"interval\": \"1\",
            \"daysOfMonth\": null,
            \"positionInMonth\": 202,
            \"daysOfWeek\": [
                1
            ]
        },
        \"yearlyRecurrence\": {
            \"interval\": \"1\",
            \"dayOfWeekList\": [
                5
            ],
            \"daysOfYear\": null,
            \"numberOfWeekList\": null
        },
        \"wateringManuallyAllowed\": \"1\",
        \"metadata\": {
            \"example_property_name\": \"example string value\"
        },
        \"areaRegionTypeIds\": [
            456
        ],
        \"emitterTypeIds\": [
            25
        ],
        \"municipalRestrictionId\": \"example string value\",
        \"modified\": true,
        \"basicMunicipalRestriction\": null,
        \"name\": \"example string value\",
        \"weatherRestrictionId\": \"example string value\",
        \"userId\": \"example string value\",
        \"allZones\": true
    },
    \"name\": \"example string value\",
    \"weatherRestrictionId\": \"example string value\",
    \"userId\": \"example string value\",
    \"allZones\": true
}"

On success, the above request returns response like

{
    "id": "example string value",
    "controllerId": "example string value",
    "zoneNumbers": [
        823
    ],
    "startTime": 71,
    "endTime": 832,
    "count": 671,
    "applyUntil": 615,
    "dailyRecurrence": {
        "interval": "1"
    },
    "weeklyRecurrence": {
        "interval": "1",
        "dayOfWeekList": [
            5
        ]
    },
    "monthlyRecurrence": {
        "interval": "1",
        "daysOfMonth": null,
        "positionInMonth": 16,
        "daysOfWeek": [
            0
        ]
    },
    "yearlyRecurrence": {
        "interval": "1",
        "dayOfWeekList": [
            4
        ],
        "daysOfYear": null,
        "numberOfWeekList": null
    },
    "wateringManuallyAllowed": "1",
    "metadata": {
        "example_property_name": "example string value"
    },
    "areaRegionTypeIds": [
        471
    ],
    "emitterTypeIds": [
        865
    ],
    "municipalRestrictionId": "example string value",
    "modified": true,
    "basicMunicipalRestriction": {
        "id": "example string value",
        "controllerId": "example string value",
        "zoneNumbers": [
            981
        ],
        "startTime": 691,
        "endTime": 423,
        "count": 637,
        "applyUntil": 446,
        "dailyRecurrence": {
            "interval": "1"
        },
        "weeklyRecurrence": {
            "interval": "1",
            "dayOfWeekList": [
                2
            ]
        },
        "monthlyRecurrence": {
            "interval": "1",
            "daysOfMonth": null,
            "positionInMonth": 366,
            "daysOfWeek": [
                4
            ]
        },
        "yearlyRecurrence": {
            "interval": "1",
            "dayOfWeekList": [
                6
            ],
            "daysOfYear": null,
            "numberOfWeekList": null
        },
        "wateringManuallyAllowed": "1",
        "metadata": {
            "example_property_name": "example string value"
        },
        "areaRegionTypeIds": [
            954
        ],
        "emitterTypeIds": [
            584
        ],
        "municipalRestrictionId": "example string value",
        "modified": false,
        "basicMunicipalRestriction": null,
        "name": "example string value",
        "weatherRestrictionId": "example string value",
        "userId": "example string value",
        "allZones": true
    },
    "name": "example string value",
    "weatherRestrictionId": "example string value",
    "userId": "example string value",
    "allZones": false
}

HTTP Request

PUT /api/v1/restrictions/time/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
Unity-Api-Gateway-Replace-UserId string header false
id string path true
TimeRestriction TimeRestriction body true

TimeRestriction

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

DailyRecurrence

Name Type Required Description
interval integer false

WeeklyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false

MonthlyRecurrence

Name Type Required Description
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek integer[ ] false

YearlyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false
daysOfYear integer[ ] false
numberOfWeekList integer[ ] false

Object for field metadata

Name Type Required Description
* string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

DailyRecurrence

Name Type Required Description
interval integer false

WeeklyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false

MonthlyRecurrence

Name Type Required Description
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek integer[ ] false

YearlyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false
daysOfYear integer[ ] false
numberOfWeekList integer[ ] false

Object for field metadata

Name Type Required Description
* string false

TimeRestriction

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

Copy Time Restriction

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/time/{id}/rpc-copy" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"sourceId\": \"example string value\",
    \"destinationName\": \"example string value\",
    \"destinationControllerId\": \"example string value\"
}"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v1/restrictions/time/{id}/rpc-copy

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
id string path true
TimeRestriction CopyTimeRestrictionRequest body true

CopyTimeRestrictionRequest

Name Type Required Description
sourceId string true
destinationName string false
destinationControllerId string true

HTTP Responses

Code Description
201 Created
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

DailyRecurrence

Name Type Required Description
interval integer false

WeeklyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false

MonthlyRecurrence

Name Type Required Description
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek integer[ ] false

YearlyRecurrence

Name Type Required Description
interval integer false
dayOfWeekList integer[ ] false
daysOfYear integer[ ] false
numberOfWeekList integer[ ] false

Object for field metadata

Name Type Required Description
* string false

TimeRestriction

Name Type Required Description
id string false
controllerId string false
zoneNumbers integer[ ] false
startTime integer false
endTime integer false
count integer false
applyUntil integer false
dailyRecurrence DailyRecurrence false
weeklyRecurrence WeeklyRecurrence false
monthlyRecurrence MonthlyRecurrence false
yearlyRecurrence YearlyRecurrence false
wateringManuallyAllowed boolean false
metadata Object for field metadata false
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction TimeRestriction false
name string false
weatherRestrictionId string false
userId string false
allZones boolean false

V1 | Restrictions | Weather Restrictions

The Unity API will automatically pick the best time during the day or night when to irrigate based on the weather, the soil and the plant needs. Use the Restrictions Weather API to set and manage when to disallow irrigation based on weather conditions, such as with high winds, low temperatures, after it rained or when rain is forecast. Each can be set per zone to its own threshold.

Get all Weather Restrictions

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/weather?controllerId=example+string+value" \
-X GET \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "userId": "example string value",
        "controllerId": "example string value",
        "zoneNumbers": [
            127
        ],
        "wateringInRain": false,
        "rainProbability": 575,
        "minWateringTemperature": 399,
        "wateringAfterRain": 43,
        "highWind": true,
        "createdAt": 707,
        "updatedAt": 275,
        "municipalRestrictionId": "example string value",
        "modified": false,
        "basicMunicipalRestriction": {
            "id": "example string value",
            "userId": "example string value",
            "controllerId": "example string value",
            "zoneNumbers": [
                185
            ],
            "wateringInRain": true,
            "rainProbability": 221,
            "minWateringTemperature": 422,
            "wateringAfterRain": 56,
            "highWind": true,
            "createdAt": 305,
            "updatedAt": 584,
            "municipalRestrictionId": "example string value",
            "modified": false,
            "basicMunicipalRestriction": null,
            "name": "example string value",
            "areaId": "example string value",
            "denyWateringRainAmount": 209,
            "allZones": true,
            "forbiddenWateringBeforeRainHours": 425,
            "rainSensitivityLevel": "example string value"
        },
        "name": "example string value",
        "areaId": "example string value",
        "denyWateringRainAmount": 816,
        "allZones": true,
        "forbiddenWateringBeforeRainHours": 950,
        "rainSensitivityLevel": "example string value"
    }
]

HTTP Request

GET /api/v1/restrictions/weather

Request parameters

Name Type Part Required Description
Authorization string header true
Unity-Api-Gateway-Replace-UserId string header false
controllerId string query true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

WeatherConstraint

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

Create a Time Restriction

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/weather" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value" \
--data "{
    \"id\": \"example string value\",
    \"userId\": \"example string value\",
    \"controllerId\": \"example string value\",
    \"zoneNumbers\": [
        773
    ],
    \"wateringInRain\": false,
    \"rainProbability\": 205,
    \"minWateringTemperature\": 1,
    \"wateringAfterRain\": 103,
    \"highWind\": false,
    \"createdAt\": 91,
    \"updatedAt\": 696,
    \"municipalRestrictionId\": \"example string value\",
    \"modified\": true,
    \"basicMunicipalRestriction\": {
        \"id\": \"example string value\",
        \"userId\": \"example string value\",
        \"controllerId\": \"example string value\",
        \"zoneNumbers\": [
            994
        ],
        \"wateringInRain\": false,
        \"rainProbability\": 716,
        \"minWateringTemperature\": 812,
        \"wateringAfterRain\": 837,
        \"highWind\": true,
        \"createdAt\": 920,
        \"updatedAt\": 413,
        \"municipalRestrictionId\": \"example string value\",
        \"modified\": false,
        \"basicMunicipalRestriction\": null,
        \"name\": \"example string value\",
        \"areaId\": \"example string value\",
        \"denyWateringRainAmount\": 641,
        \"allZones\": true,
        \"forbiddenWateringBeforeRainHours\": 390,
        \"rainSensitivityLevel\": \"example string value\"
    },
    \"name\": \"example string value\",
    \"areaId\": \"example string value\",
    \"denyWateringRainAmount\": 835,
    \"allZones\": true,
    \"forbiddenWateringBeforeRainHours\": 715,
    \"rainSensitivityLevel\": \"example string value\"
}"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v1/restrictions/weather

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
Unity-Api-Gateway-Replace-UserId string header false
WeatherConstraint WeatherConstraint body true

WeatherConstraint

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

HTTP Responses

Code Description
201 Created
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

WeatherConstraint

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

Get a Time Restriction by id

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/weather/{id}" \
-X GET \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "userId": "example string value",
    "controllerId": "example string value",
    "zoneNumbers": [
        768
    ],
    "wateringInRain": true,
    "rainProbability": 911,
    "minWateringTemperature": 82.95937491718651,
    "wateringAfterRain": 387,
    "highWind": false,
    "createdAt": 539,
    "updatedAt": 316,
    "municipalRestrictionId": "example string value",
    "modified": true,
    "basicMunicipalRestriction": {
        "id": "example string value",
        "userId": "example string value",
        "controllerId": "example string value",
        "zoneNumbers": [
            380
        ],
        "wateringInRain": true,
        "rainProbability": 933,
        "minWateringTemperature": 277.4944190296784,
        "wateringAfterRain": 439,
        "highWind": true,
        "createdAt": 474,
        "updatedAt": 832,
        "municipalRestrictionId": "example string value",
        "modified": false,
        "basicMunicipalRestriction": null,
        "name": "example string value",
        "areaId": "example string value",
        "denyWateringRainAmount": 411,
        "allZones": true,
        "forbiddenWateringBeforeRainHours": 873,
        "rainSensitivityLevel": "example string value"
    },
    "name": "example string value",
    "areaId": "example string value",
    "denyWateringRainAmount": 515,
    "allZones": true,
    "forbiddenWateringBeforeRainHours": 938,
    "rainSensitivityLevel": "example string value"
}

HTTP Request

GET /api/v1/restrictions/weather/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
Unity-Api-Gateway-Replace-UserId string header false
id string path true

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

WeatherConstraint

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

Delete a Time Restriction by id

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/weather/{id}" \
-X DELETE \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

no reponse

HTTP Request

DELETE /api/v1/restrictions/weather/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
Unity-Api-Gateway-Replace-UserId string header false
id string path true

HTTP Responses

Code Description
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Update a Schedule Restriction by id

Request

curl "https://developer-api.etwater.com/api/v1/restrictions/weather/{id}" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value" \
--data "{
    \"id\": \"example string value\",
    \"userId\": \"example string value\",
    \"controllerId\": \"example string value\",
    \"zoneNumbers\": [
        617
    ],
    \"wateringInRain\": false,
    \"rainProbability\": 436,
    \"minWateringTemperature\": 702.6438087702933,
    \"wateringAfterRain\": 130,
    \"highWind\": true,
    \"createdAt\": 452,
    \"updatedAt\": 567,
    \"municipalRestrictionId\": \"example string value\",
    \"modified\": true,
    \"basicMunicipalRestriction\": {
        \"id\": \"example string value\",
        \"userId\": \"example string value\",
        \"controllerId\": \"example string value\",
        \"zoneNumbers\": [
            351
        ],
        \"wateringInRain\": true,
        \"rainProbability\": 698,
        \"minWateringTemperature\": 259,
        \"wateringAfterRain\": 868,
        \"highWind\": true,
        \"createdAt\": 794,
        \"updatedAt\": 633,
        \"municipalRestrictionId\": \"example string value\",
        \"modified\": false,
        \"basicMunicipalRestriction\": null,
        \"name\": \"example string value\",
        \"areaId\": \"example string value\",
        \"denyWateringRainAmount\": 359,
        \"allZones\": false,
        \"forbiddenWateringBeforeRainHours\": 280,
        \"rainSensitivityLevel\": \"example string value\"
    },
    \"name\": \"example string value\",
    \"areaId\": \"example string value\",
    \"denyWateringRainAmount\": 439.7527125849168,
    \"allZones\": true,
    \"forbiddenWateringBeforeRainHours\": 687,
    \"rainSensitivityLevel\": \"example string value\"
}"

On success, the above request returns response like

{
    "id": "example string value",
    "userId": "example string value",
    "controllerId": "example string value",
    "zoneNumbers": [
        598
    ],
    "wateringInRain": false,
    "rainProbability": 124,
    "minWateringTemperature": 550.9239079202171,
    "wateringAfterRain": 439,
    "highWind": false,
    "createdAt": 114,
    "updatedAt": 450,
    "municipalRestrictionId": "example string value",
    "modified": true,
    "basicMunicipalRestriction": {
        "id": "example string value",
        "userId": "example string value",
        "controllerId": "example string value",
        "zoneNumbers": [
            390
        ],
        "wateringInRain": true,
        "rainProbability": 556,
        "minWateringTemperature": 695.0584527547743,
        "wateringAfterRain": 395,
        "highWind": false,
        "createdAt": 400,
        "updatedAt": 498,
        "municipalRestrictionId": "example string value",
        "modified": false,
        "basicMunicipalRestriction": null,
        "name": "example string value",
        "areaId": "example string value",
        "denyWateringRainAmount": 102.72596781268994,
        "allZones": false,
        "forbiddenWateringBeforeRainHours": 350,
        "rainSensitivityLevel": "example string value"
    },
    "name": "example string value",
    "areaId": "example string value",
    "denyWateringRainAmount": 91.36748876951984,
    "allZones": true,
    "forbiddenWateringBeforeRainHours": 570,
    "rainSensitivityLevel": "example string value"
}

HTTP Request

PUT /api/v1/restrictions/weather/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
Unity-Api-Gateway-Replace-UserId string header false
id string path true
WeatherConstraint WeatherConstraint body true

WeatherConstraint

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

WeatherConstraint

Name Type Required Description
id string false
userId string false
controllerId string true
zoneNumbers integer[ ] false
wateringInRain boolean false
rainProbability integer false
minWateringTemperature number false
wateringAfterRain integer false
highWind boolean false
createdAt integer false
updatedAt integer false
municipalRestrictionId string false
modified boolean false
basicMunicipalRestriction WeatherConstraint false
name string false
areaId string false
denyWateringRainAmount number false
allZones boolean false
forbiddenWateringBeforeRainHours integer false
rainSensitivityLevel string false

V1 | Stations | Zones

Get all Zones.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/zones?controllerId=example+string+value&flagged=1" \
-X GET \
-H "Authorization: example string value" \
-H "Unity-Api-Gateway-Replace-UserId: example string value"

On success, the above request returns response like

[]

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

{projectId} - project id value.

Response body fields description:

HTTP Request

GET /api/v1/gardening/projects/{projectId}/zones

Request parameters

Name Type Part Required Description
Authorization string header true
Unity-Api-Gateway-Replace-UserId string header false
projectId string path true Project id
controllerId string query false
flagged boolean query false

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Create a Zone.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/zones?version=777" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"number\": 804,
    \"status\": 56,
    \"name\": \"example string value\",
    \"created_at\": 90,
    \"updated_at\": 465,
    \"weight\": 654,
    \"project_id\": \"example string value\",
    \"local_id\": \"example string value\",
    \"version\": \"-1\",
    \"controllerId\": \"example string value\",
    \"configured\": false,
    \"areaRegionStates\": {
        \"example_property_name\": true
    },
    \"ignoreRain\": true,
    \"flagged\": true,
    \"description\": \"example string value\"
}"

On success, the above request returns response like

no reponse

Zone has "Many to One" relation with Project, so for Zone creation project id is required.

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

{projectId} - project id value.

Request body fields description:

The same as for response body.

Response body fields description:

HTTP Request

POST /api/v1/gardening/projects/{projectId}/zones

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
projectId string path true Project id
Zone GardeningZone body true
version integer query false version of Project

GardeningZone

Name Type Required Description
id string false
number integer false
status integer false
name string false
created_at integer false
updated_at integer false
weight integer false
project_id string false
local_id string false
version integer false
controllerId string false
configured boolean false
areaRegionStates Object for field areaRegionStates false
ignoreRain boolean false
flagged boolean false
description string false

Object for field areaRegionStates

Name Type Required Description
* boolean false

HTTP Responses

Code Description
201 Created
404 Not Found
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
number integer false
status integer false
name string false
created_at integer false
updated_at integer false
weight integer false
project_id string false
local_id string false
version integer false
controllerId string false
configured boolean false
areaRegionStates Object for field areaRegionStates false
ignoreRain boolean false
flagged boolean false
description string false

Object for field areaRegionStates

Name Type Required Description
* boolean false

Create or update zones for project

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/zones?version=519" \
-X PATCH \
-H "Authorization: example string value" \
--data "[
    {
        \"id\": \"example string value\",
        \"number\": 581,
        \"status\": 389,
        \"name\": \"example string value\",
        \"created_at\": 662,
        \"updated_at\": 307,
        \"weight\": 42,
        \"project_id\": \"example string value\",
        \"local_id\": \"example string value\",
        \"version\": \"-1\",
        \"controllerId\": \"example string value\",
        \"configured\": true,
        \"areaRegionStates\": {
            \"example_property_name\": true
        },
        \"ignoreRain\": true,
        \"flagged\": true,
        \"description\": \"example string value\"
    }
]"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "number": 990,
        "status": 587,
        "name": "example string value",
        "created_at": 235,
        "updated_at": 590,
        "weight": 531,
        "project_id": "example string value",
        "local_id": "example string value",
        "version": "-1",
        "controllerId": "example string value",
        "configured": true,
        "areaRegionStates": {
            "example_property_name": false
        },
        "ignoreRain": false,
        "flagged": true,
        "description": "example string value"
    }
]

HTTP Request

PATCH /api/v1/gardening/projects/{projectId}/zones

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
Zones GardeningZone[ ] body true
version integer query false version of Project

GardeningZone

Name Type Required Description
id string false
number integer false
status integer false
name string false
created_at integer false
updated_at integer false
weight integer false
project_id string false
local_id string false
version integer false
controllerId string false
configured boolean false
areaRegionStates Object for field areaRegionStates false
ignoreRain boolean false
flagged boolean false
description string false

Object for field areaRegionStates

Name Type Required Description
* boolean false

HTTP Responses

Code Description
200 OK
404 Not Found
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string false
number integer false
status integer false
name string false
created_at integer false
updated_at integer false
weight integer false
project_id string false
local_id string false
version integer false
controllerId string false
configured boolean false
areaRegionStates Object for field areaRegionStates false
ignoreRain boolean false
flagged boolean false
description string false

Object for field areaRegionStates

Name Type Required Description
* boolean false

Get Zone by id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/zones/{zoneId}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "number": 364,
    "status": 643,
    "name": "example string value",
    "created_at": 746,
    "updated_at": 656,
    "weight": 906,
    "project_id": "example string value",
    "local_id": "example string value",
    "version": "-1",
    "controllerId": "example string value",
    "configured": false,
    "areaRegionStates": {
        "example_property_name": false
    },
    "ignoreRain": false,
    "flagged": true,
    "description": "example string value"
}

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

Response body fields description:

HTTP Request

GET /api/v1/gardening/projects/{projectId}/zones/{zoneId}

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
zoneId string path true Zone id

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
number integer false
status integer false
name string false
created_at integer false
updated_at integer false
weight integer false
project_id string false
local_id string false
version integer false
controllerId string false
configured boolean false
areaRegionStates Object for field areaRegionStates false
ignoreRain boolean false
flagged boolean false
description string false

Object for field areaRegionStates

Name Type Required Description
* boolean false

Delete Zone by id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/zones/{zoneId}?version=669" \
-X DELETE \
-H "Authorization: example string value"

On success, the above request returns response like

no reponse

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

HTTP Request

DELETE /api/v1/gardening/projects/{projectId}/zones/{zoneId}

Request parameters

Name Type Part Required Description
Authorization string header true
projectId string path true Project id
zoneId string path true id of Zone
version integer query false version of Project

HTTP Responses

Code Description
204 No Content
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Update/Merge Zone by id.

Request

curl "https://developer-api.etwater.com/api/v1/gardening/projects/{projectId}/zones/{zoneId}?version=321" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"number\": 345,
    \"status\": 794,
    \"name\": \"example string value\",
    \"created_at\": 646,
    \"updated_at\": 646,
    \"weight\": 879,
    \"project_id\": \"example string value\",
    \"local_id\": \"example string value\",
    \"version\": \"-1\",
    \"controllerId\": \"example string value\",
    \"configured\": true,
    \"areaRegionStates\": {
        \"example_property_name\": true
    },
    \"ignoreRain\": false,
    \"flagged\": false,
    \"description\": \"example string value\"
}"

On success, the above request returns response like

{
    "id": "example string value",
    "number": 935,
    "status": 92,
    "name": "example string value",
    "created_at": 744,
    "updated_at": 396,
    "weight": 836,
    "project_id": "example string value",
    "local_id": "example string value",
    "version": "-1",
    "controllerId": "example string value",
    "configured": true,
    "areaRegionStates": {
        "example_property_name": true
    },
    "ignoreRain": true,
    "flagged": false,
    "description": "example string value"
}

Dependent on:

Headers example:

where: {access_token} access token value.

Path parameter description

Request body fields description:

The same as for response body.

Response body fields description:

HTTP Request

PUT /api/v1/gardening/projects/{projectId}/zones/{zoneId}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
projectId string path true Project id
zoneId string path true id of Zone
Zone GardeningZone body true
version integer query false version of Project

GardeningZone

Name Type Required Description
id string false
number integer false
status integer false
name string false
created_at integer false
updated_at integer false
weight integer false
project_id string false
local_id string false
version integer false
controllerId string false
configured boolean false
areaRegionStates Object for field areaRegionStates false
ignoreRain boolean false
flagged boolean false
description string false

Object for field areaRegionStates

Name Type Required Description
* boolean false

HTTP Responses

Code Description
200 OK
404 Not Found
409 Conflict
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
number integer false
status integer false
name string false
created_at integer false
updated_at integer false
weight integer false
project_id string false
local_id string false
version integer false
controllerId string false
configured boolean false
areaRegionStates Object for field areaRegionStates false
ignoreRain boolean false
flagged boolean false
description string false

Object for field areaRegionStates

Name Type Required Description
* boolean false

V2 | Atmosphere API extended

Get daily atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/extended/daily?longitude=155&latitude=644.45217821954&startTimestamp=341&endTimestamp=653&keys%5B0%5D=TEMPERATURE" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                17
            ]
        }
    },
    "hourly": [
        {
            "time": 497,
            "etMm": 230.70292232125203,
            "rainMm": 61.93971543663168,
            "ghWm2": 862,
            "temperatureC": 59.20305385217213,
            "dewPointC": 356,
            "windKmH": 495.12483249191416,
            "relativeHumidityPercent": 491,
            "precipitationProbabilityPercent": 76,
            "cloudCoverPercent": 753.0200545457285,
            "pressureKilopascals": 245,
            "windGustKmH": 981.3009495759852,
            "timeEpoch": 998
        }
    ],
    "daily": [
        {
            "time": 661,
            "sunrise": 530,
            "sunset": 887,
            "etMm": 529.1382318963941,
            "rainMm": 816.2321829312631,
            "ghWm2": 714,
            "dewPointC": 445.3174548434641,
            "minTemperatureC": 917,
            "maxTemperatureC": 590,
            "minWindKmH": 816.8944012452356,
            "maxWindKmH": 622,
            "avgPressureKilopascals": 544.141015756941,
            "avgCloudCoverPercent": 182.63667131896906,
            "avgRelativeHumidityPercent": 895,
            "maxPrecipitationProbabilityPercent": 342,
            "avgTemperatureC": 512,
            "minRelativeHumidityPercent": 57.39280910109766,
            "maxRelativeHumidityPercent": 269
        }
    ],
    "monthly": [
        {
            "time": 801,
            "etMm": 921,
            "rainMm": 968.5550201537809,
            "ghWm2": 970,
            "minTemperatureC": 474,
            "maxTemperatureC": 519,
            "minWindKmH": 427.38841913053227,
            "maxWindKmH": 626,
            "avgPressureKilopascals": 927,
            "avgCloudCoverPercent": 242.12352290848435,
            "avgRelativeHumidityPercent": 264,
            "maxPrecipitationProbabilityPercent": 761.0783291799381,
            "avgWindKmH": 556,
            "avgTemperatureC": 757.3744960862093,
            "avgDewPointC": 668,
            "minRelativeHumidityPercent": 866.1252422566178,
            "maxRelativeHumidityPercent": 23
        }
    ],
    "status": 402
}

HTTP Request

GET /api/v2/atmosphere/extended/daily

Request parameters

Name Type Part Required Description
Authorization string header true
longitude number query false
latitude number query false
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster true
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer true

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false
timeEpoch integer false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get hourly atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/extended/hourly?longitude=542.07725149676&latitude=114&startTimestamp=474&endTimestamp=407&keys%5B0%5D=ET" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                496.63856881514124
            ]
        }
    },
    "hourly": [
        {
            "time": 636,
            "etMm": 327,
            "rainMm": 458,
            "ghWm2": 579,
            "temperatureC": 517.5146439659943,
            "dewPointC": 609,
            "windKmH": 583,
            "relativeHumidityPercent": 25.645221595487193,
            "precipitationProbabilityPercent": 598.2879896640256,
            "cloudCoverPercent": 694.9781098845312,
            "pressureKilopascals": 938.3938545074285,
            "windGustKmH": 371,
            "timeEpoch": 903
        }
    ],
    "daily": [
        {
            "time": 699,
            "sunrise": 499,
            "sunset": 509,
            "etMm": 277.83142927933085,
            "rainMm": 933,
            "ghWm2": 214,
            "dewPointC": 5.944280887927992,
            "minTemperatureC": 202.8871524161134,
            "maxTemperatureC": 378,
            "minWindKmH": 885.7507607367592,
            "maxWindKmH": 886.5724214755801,
            "avgPressureKilopascals": 784,
            "avgCloudCoverPercent": 232,
            "avgRelativeHumidityPercent": 915,
            "maxPrecipitationProbabilityPercent": 338.83945147452846,
            "avgTemperatureC": 705.6522535652166,
            "minRelativeHumidityPercent": 846,
            "maxRelativeHumidityPercent": 422
        }
    ],
    "monthly": [
        {
            "time": 624,
            "etMm": 650,
            "rainMm": 164.03204536253216,
            "ghWm2": 200,
            "minTemperatureC": 652,
            "maxTemperatureC": 852.4425746185902,
            "minWindKmH": 863,
            "maxWindKmH": 369,
            "avgPressureKilopascals": 825.7636366532015,
            "avgCloudCoverPercent": 18,
            "avgRelativeHumidityPercent": 270.5988135517569,
            "maxPrecipitationProbabilityPercent": 804.7748505160095,
            "avgWindKmH": 97,
            "avgTemperatureC": 800.9005602453371,
            "avgDewPointC": 741.8346292068412,
            "minRelativeHumidityPercent": 513,
            "maxRelativeHumidityPercent": 496
        }
    ],
    "status": 770
}

HTTP Request

GET /api/v2/atmosphere/extended/hourly

Request parameters

Name Type Part Required Description
Authorization string header true
longitude number query false
latitude number query false
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster true
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer true

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false
timeEpoch integer false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get monthly atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/extended/monthly?longitude=175.97309508173&latitude=622.4998517998&startTimestamp=957&endTimestamp=355&keys%5B0%5D=PRESSURE" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                748
            ]
        }
    },
    "hourly": [
        {
            "time": 805,
            "etMm": 312,
            "rainMm": 807,
            "ghWm2": 866,
            "temperatureC": 668.3983540480949,
            "dewPointC": 489.8735338309191,
            "windKmH": 623.4151947421093,
            "relativeHumidityPercent": 160.10480428119413,
            "precipitationProbabilityPercent": 637,
            "cloudCoverPercent": 407,
            "pressureKilopascals": 582,
            "windGustKmH": 644,
            "timeEpoch": 417
        }
    ],
    "daily": [
        {
            "time": 311,
            "sunrise": 968,
            "sunset": 964,
            "etMm": 141.96708339358077,
            "rainMm": 492.63899842865715,
            "ghWm2": 774,
            "dewPointC": 786,
            "minTemperatureC": 636.5639942868445,
            "maxTemperatureC": 187.89591602417448,
            "minWindKmH": 947.7243106568811,
            "maxWindKmH": 724,
            "avgPressureKilopascals": 550.7255892971184,
            "avgCloudCoverPercent": 75.62660662253695,
            "avgRelativeHumidityPercent": 312.66347380013366,
            "maxPrecipitationProbabilityPercent": 893.1632767865262,
            "avgTemperatureC": 808.0661095716367,
            "minRelativeHumidityPercent": 447,
            "maxRelativeHumidityPercent": 853
        }
    ],
    "monthly": [
        {
            "time": 231,
            "etMm": 512,
            "rainMm": 643,
            "ghWm2": 311,
            "minTemperatureC": 515.2060764446883,
            "maxTemperatureC": 322,
            "minWindKmH": 31,
            "maxWindKmH": 880,
            "avgPressureKilopascals": 241,
            "avgCloudCoverPercent": 396,
            "avgRelativeHumidityPercent": 698,
            "maxPrecipitationProbabilityPercent": 605.8487257016119,
            "avgWindKmH": 960,
            "avgTemperatureC": 447.63279075158425,
            "avgDewPointC": 684,
            "minRelativeHumidityPercent": 412.1131768506547,
            "maxRelativeHumidityPercent": 78.35778737364234
        }
    ],
    "status": 282
}

HTTP Request

GET /api/v2/atmosphere/extended/monthly

Request parameters

Name Type Part Required Description
Authorization string header true
longitude number query false
latitude number query false
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster true
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer true

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false
timeEpoch integer false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get daily atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/extended/cluster/{clusterId}/daily?startTimestamp=986&endTimestamp=140&keys%5B0%5D=DEWPOINT" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                502
            ]
        }
    },
    "hourly": [
        {
            "time": 804,
            "etMm": 587.8854974116597,
            "rainMm": 638,
            "ghWm2": 21,
            "temperatureC": 731.596194082683,
            "dewPointC": 793.3653252168397,
            "windKmH": 743,
            "relativeHumidityPercent": 227.76179072808557,
            "precipitationProbabilityPercent": 828,
            "cloudCoverPercent": 810,
            "pressureKilopascals": 193,
            "windGustKmH": 169.0541702178559,
            "timeEpoch": 652
        }
    ],
    "daily": [
        {
            "time": 108,
            "sunrise": 692,
            "sunset": 597,
            "etMm": 955,
            "rainMm": 814.9035018006822,
            "ghWm2": 668,
            "dewPointC": 551.2070281203869,
            "minTemperatureC": 354,
            "maxTemperatureC": 845,
            "minWindKmH": 555,
            "maxWindKmH": 119.09349081995593,
            "avgPressureKilopascals": 723,
            "avgCloudCoverPercent": 766.2065503030115,
            "avgRelativeHumidityPercent": 319.08640513154046,
            "maxPrecipitationProbabilityPercent": 908.317593814953,
            "avgTemperatureC": 508,
            "minRelativeHumidityPercent": 260,
            "maxRelativeHumidityPercent": 985.304315567624
        }
    ],
    "monthly": [
        {
            "time": 156,
            "etMm": 24.708995141419113,
            "rainMm": 254,
            "ghWm2": 529,
            "minTemperatureC": 57,
            "maxTemperatureC": 462.6812136092601,
            "minWindKmH": 748,
            "maxWindKmH": 40.031837783768694,
            "avgPressureKilopascals": 272,
            "avgCloudCoverPercent": 624,
            "avgRelativeHumidityPercent": 700.2253046725995,
            "maxPrecipitationProbabilityPercent": 52,
            "avgWindKmH": 182,
            "avgTemperatureC": 853.0130674378075,
            "avgDewPointC": 877.6047801960282,
            "minRelativeHumidityPercent": 302.33316603225336,
            "maxRelativeHumidityPercent": 440
        }
    ],
    "status": 480
}

HTTP Request

GET /api/v2/atmosphere/extended/cluster/{clusterId}/daily

Request parameters

Name Type Part Required Description
Authorization string header true
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show
clusterId string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster true
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer true

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false
timeEpoch integer false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get hourly atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/extended/cluster/{clusterId}/hourly?startTimestamp=36&endTimestamp=784&keys%5B0%5D=SOLAR_IRRADIATION" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                887
            ]
        }
    },
    "hourly": [
        {
            "time": 758,
            "etMm": 487.2297269698371,
            "rainMm": 14.967190574373674,
            "ghWm2": 485,
            "temperatureC": 621,
            "dewPointC": 149,
            "windKmH": 73,
            "relativeHumidityPercent": 972,
            "precipitationProbabilityPercent": 116,
            "cloudCoverPercent": 489,
            "pressureKilopascals": 231,
            "windGustKmH": 356.19252843605005,
            "timeEpoch": 776
        }
    ],
    "daily": [
        {
            "time": 975,
            "sunrise": 761,
            "sunset": 452,
            "etMm": 726.1369832447436,
            "rainMm": 246,
            "ghWm2": 416,
            "dewPointC": 855,
            "minTemperatureC": 823.0885070856141,
            "maxTemperatureC": 355,
            "minWindKmH": 877.1644699746577,
            "maxWindKmH": 791.0938862669718,
            "avgPressureKilopascals": 500,
            "avgCloudCoverPercent": 268,
            "avgRelativeHumidityPercent": 759,
            "maxPrecipitationProbabilityPercent": 252,
            "avgTemperatureC": 488,
            "minRelativeHumidityPercent": 704,
            "maxRelativeHumidityPercent": 54
        }
    ],
    "monthly": [
        {
            "time": 966,
            "etMm": 305.27547900810623,
            "rainMm": 927.055010072447,
            "ghWm2": 303,
            "minTemperatureC": 832,
            "maxTemperatureC": 214.5848857306805,
            "minWindKmH": 177,
            "maxWindKmH": 764.6299189723236,
            "avgPressureKilopascals": 377.8778595746857,
            "avgCloudCoverPercent": 219.9041630234123,
            "avgRelativeHumidityPercent": 111.27396957542467,
            "maxPrecipitationProbabilityPercent": 796,
            "avgWindKmH": 326.6057201319401,
            "avgTemperatureC": 813,
            "avgDewPointC": 277,
            "minRelativeHumidityPercent": 409.93760917798505,
            "maxRelativeHumidityPercent": 89.83966200139358
        }
    ],
    "status": 290
}

HTTP Request

GET /api/v2/atmosphere/extended/cluster/{clusterId}/hourly

Request parameters

Name Type Part Required Description
Authorization string header true
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show
clusterId string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster true
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer true

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false
timeEpoch integer false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get monthly atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/extended/cluster/{clusterId}/monthly?startTimestamp=101&endTimestamp=534&keys%5B0%5D=PRESSURE" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                742.192647299819
            ]
        }
    },
    "hourly": [
        {
            "time": 207,
            "etMm": 932,
            "rainMm": 17.82616740922731,
            "ghWm2": 77,
            "temperatureC": 177,
            "dewPointC": 613.5597832564077,
            "windKmH": 804,
            "relativeHumidityPercent": 545,
            "precipitationProbabilityPercent": 999,
            "cloudCoverPercent": 324.7122789382526,
            "pressureKilopascals": 530,
            "windGustKmH": 953,
            "timeEpoch": 766
        }
    ],
    "daily": [
        {
            "time": 945,
            "sunrise": 151,
            "sunset": 425,
            "etMm": 577,
            "rainMm": 473,
            "ghWm2": 571,
            "dewPointC": 638,
            "minTemperatureC": 321,
            "maxTemperatureC": 899,
            "minWindKmH": 778,
            "maxWindKmH": 247,
            "avgPressureKilopascals": 88,
            "avgCloudCoverPercent": 858,
            "avgRelativeHumidityPercent": 901,
            "maxPrecipitationProbabilityPercent": 557.3977313737375,
            "avgTemperatureC": 278.60345890680486,
            "minRelativeHumidityPercent": 865.2071365458925,
            "maxRelativeHumidityPercent": 225.18177434112027
        }
    ],
    "monthly": [
        {
            "time": 522,
            "etMm": 348.11926882160793,
            "rainMm": 516.4102634957109,
            "ghWm2": 253,
            "minTemperatureC": 702.7410439694027,
            "maxTemperatureC": 96.72759477828052,
            "minWindKmH": 531,
            "maxWindKmH": 882.9260384118771,
            "avgPressureKilopascals": 538,
            "avgCloudCoverPercent": 804,
            "avgRelativeHumidityPercent": 988,
            "maxPrecipitationProbabilityPercent": 711,
            "avgWindKmH": 820,
            "avgTemperatureC": 180.8746970169594,
            "avgDewPointC": 489,
            "minRelativeHumidityPercent": 751.5073026304633,
            "maxRelativeHumidityPercent": 549.5986703548574
        }
    ],
    "status": 487
}

HTTP Request

GET /api/v2/atmosphere/extended/cluster/{clusterId}/monthly

Request parameters

Name Type Part Required Description
Authorization string header true
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show
clusterId string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster true
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer true

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false
timeEpoch integer false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get atmosphere data bulk

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/extended/bulk" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"longitude\": 611,
        \"latitude\": 487,
        \"startTimestamp\": 394,
        \"endTimestamp\": 291,
        \"interval\": \"MONTH\",
        \"keys\": [
            \"RELATIVE_HUMIDITY\"
        ],
        \"loadMissingWeather\": \"1\",
        \"calcMissingEt\": true
    }
]"

On success, the above request returns response like

[
    {
        "cluster": {
            "id": "example string value",
            "location": {
                "type": "example string value",
                "coordinates": [
                    239.7073140552767
                ]
            }
        },
        "hourly": [
            {
                "time": 57,
                "etMm": 51,
                "rainMm": 935,
                "ghWm2": 989,
                "temperatureC": 515,
                "dewPointC": 492.1983790081918,
                "windKmH": 331,
                "relativeHumidityPercent": 948.8640739344359,
                "precipitationProbabilityPercent": 604,
                "cloudCoverPercent": 583.956671219299,
                "pressureKilopascals": 744.6784510950923,
                "windGustKmH": 812.4797841592132,
                "timeEpoch": 451
            }
        ],
        "daily": [
            {
                "time": 275,
                "sunrise": 996,
                "sunset": 330,
                "etMm": 82,
                "rainMm": 243.72229457074883,
                "ghWm2": 432,
                "dewPointC": 310,
                "minTemperatureC": 624.5147830920829,
                "maxTemperatureC": 473,
                "minWindKmH": 628.8944169082187,
                "maxWindKmH": 654.1876553810145,
                "avgPressureKilopascals": 643,
                "avgCloudCoverPercent": 974.5493838445047,
                "avgRelativeHumidityPercent": 79.3918134083002,
                "maxPrecipitationProbabilityPercent": 390,
                "avgTemperatureC": 256.1976338067081,
                "minRelativeHumidityPercent": 727,
                "maxRelativeHumidityPercent": 375.34828082441743
            }
        ],
        "monthly": [
            {
                "time": 688,
                "etMm": 31,
                "rainMm": 601,
                "ghWm2": 820,
                "minTemperatureC": 879,
                "maxTemperatureC": 947,
                "minWindKmH": 997.4278132419231,
                "maxWindKmH": 681,
                "avgPressureKilopascals": 867,
                "avgCloudCoverPercent": 107,
                "avgRelativeHumidityPercent": 657,
                "maxPrecipitationProbabilityPercent": 668,
                "avgWindKmH": 5,
                "avgTemperatureC": 331,
                "avgDewPointC": 525.628189335404,
                "minRelativeHumidityPercent": 714.3221072453642,
                "maxRelativeHumidityPercent": 50.892225956028426
            }
        ],
        "status": 741
    }
]

HTTP Request

POST /api/v2/atmosphere/extended/bulk

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
GetWeatherByCoordinatesRequest GetWeatherByCoordinatesRequest[ ] body true

GetWeatherByCoordinatesRequest

Name Type Required Description
longitude number true
latitude number true
startTimestamp integer true
endTimestamp integer true
interval string true
keys string[ ] true
loadMissingWeather boolean false
calcMissingEt boolean false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
cluster WeatherCluster true
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer true

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false
timeEpoch integer false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

V2 | Atmosphere Weather Cluster API

Get wether cluster by coordinates

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/weather-clusters/coordinates/{longitude}/{latitude}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "location": {
        "type": "example string value",
        "coordinates": [
            941.9671701928448
        ]
    }
}

HTTP Request

GET /api/v2/atmosphere/weather-clusters/coordinates/{longitude}/{latitude}

Request parameters

Name Type Part Required Description
Authorization string header true
longitude number path true
latitude number path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

Get wether cluster by coordinates bulk

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/weather-clusters/bulk/get-by-coordinates" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"longitude\": 94,
        \"latitude\": -25.171819028990257
    }
]"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                669
            ]
        }
    }
]

HTTP Request

POST /api/v2/atmosphere/weather-clusters/bulk/get-by-coordinates

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
GetWeatherClusterByCoordinatesRequest GetWeatherClusterByCoordinatesRequest[ ] body true

GetWeatherClusterByCoordinatesRequest

Name Type Required Description
longitude number true
latitude number true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

Activate weather cluster bulk

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/weather-clusters/bulk/activate" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"clusterId\": \"example string value\"
    }
]"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v2/atmosphere/weather-clusters/bulk/activate

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
ActivateWeatherClusterRequest ActivateWeatherClusterRequest[ ] body true

ActivateWeatherClusterRequest

Name Type Required Description
clusterId string true

HTTP Responses

Code Description
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

V2 | Controllers | Time Restrictions

Get Time Restrictions

Request

curl "https://developer-api.etwater.com/api/v2/controllers/time-restrictions?controllerId=example+string+value&siteId=example+string+value&stationGroupId=example+string+value&active=1" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "controllerId": "example string value",
        "name": "example string value",
        "repeatPattern": {
            "dailyRepeatPattern": {
                "repeatCount": 935,
                "applyUntilDateTime": "example string value",
                "interval": 241
            },
            "weeklyRepeatPattern": {
                "repeatCount": 978,
                "applyUntilDateTime": "example string value",
                "interval": 793,
                "daysOfWeek": [
                    "Tue"
                ]
            },
            "monthlyRepeatPattern": {
                "repeatCount": 899,
                "applyUntilDateTime": "example string value",
                "interval": 207,
                "daysOfMonth": null,
                "positionInMonth": 664,
                "daysOfWeek": [
                    "Fri"
                ]
            },
            "yearlyRepeatPattern": {
                "repeatCount": 518,
                "applyUntilDateTime": "example string value",
                "interval": 737,
                "daysOfWeek": [
                    "Wed"
                ],
                "daysOfYear": null,
                "numbersOfWeek": null
            },
            "oddDaysRepeatPattern": {
                "repeatCount": 30,
                "applyUntilDateTime": "example string value"
            },
            "evenDaysRepeatPattern": {
                "repeatCount": 624,
                "applyUntilDateTime": "example string value"
            },
            "weeklySameDayRepeatPattern": {
                "repeatCount": 662,
                "applyUntilDateTime": "example string value"
            },
            "weeklyWorkdaysRepeatPattern": {
                "repeatCount": 713,
                "applyUntilDateTime": "example string value"
            },
            "monthlySameDateRepeatPattern": {
                "repeatCount": 505,
                "applyUntilDateTime": "example string value"
            },
            "monthlySameDayRepeatPattern": {
                "repeatCount": 602,
                "applyUntilDateTime": "example string value"
            },
            "annuallySameDateRepeatPattern": {
                "repeatCount": 553,
                "applyUntilDateTime": "example string value"
            }
        },
        "createdAt": "example string value",
        "updatedAt": "example string value",
        "startDateTime": "example string value",
        "endDateTime": "example string value",
        "areaRegionTypeIds": [
            550
        ],
        "emitterTypeIds": [
            483
        ],
        "stationNumbers": [
            686
        ],
        "allStations": false,
        "effect": "ALLOW"
    }
]

HTTP Request

GET /api/v2/controllers/time-restrictions

Request parameters

Name Type Part Required Description
Authorization string header true
controllerId string query false
siteId string query false
stationGroupId string query false
active boolean query false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string true
controllerId string true
name string true
repeatPattern RepeatPattern false
createdAt string true
updatedAt string true
startDateTime string true
endDateTime string true
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
stationNumbers integer[ ] false
allStations boolean false
effect string true

RepeatPattern

Name Type Required Description
dailyRepeatPattern DailyRepeatPattern false
weeklyRepeatPattern WeeklyRepeatPattern false
monthlyRepeatPattern MonthlyRepeatPattern false
yearlyRepeatPattern YearlyRepeatPattern false
oddDaysRepeatPattern OddDaysRepeatPattern false
evenDaysRepeatPattern EvenDaysRepeatPattern false
weeklySameDayRepeatPattern WeeklySameDayRepeatPattern false
weeklyWorkdaysRepeatPattern WeeklyWorkdaysRepeatPattern false
monthlySameDateRepeatPattern MonthlySameDateRepeatPattern false
monthlySameDayRepeatPattern MonthlySameDayRepeatPattern false
annuallySameDateRepeatPattern AnnuallySameDateRepeatPattern false

DailyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false

WeeklyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false

MonthlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek string[ ] false

YearlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false
daysOfYear integer[ ] false
numbersOfWeek integer[ ] false

OddDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

EvenDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklyWorkdaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

AnnuallySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

Get a Time Restriction by id

Request

curl "https://developer-api.etwater.com/api/v2/controllers/time-restrictions/{id}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "id": "example string value",
    "controllerId": "example string value",
    "name": "example string value",
    "repeatPattern": {
        "dailyRepeatPattern": {
            "repeatCount": 56,
            "applyUntilDateTime": "example string value",
            "interval": 413
        },
        "weeklyRepeatPattern": {
            "repeatCount": 991,
            "applyUntilDateTime": "example string value",
            "interval": 705,
            "daysOfWeek": [
                "Tue"
            ]
        },
        "monthlyRepeatPattern": {
            "repeatCount": 933,
            "applyUntilDateTime": "example string value",
            "interval": 787,
            "daysOfMonth": null,
            "positionInMonth": 433,
            "daysOfWeek": [
                "Sat"
            ]
        },
        "yearlyRepeatPattern": {
            "repeatCount": 72,
            "applyUntilDateTime": "example string value",
            "interval": 31,
            "daysOfWeek": [
                "Mon"
            ],
            "daysOfYear": null,
            "numbersOfWeek": null
        },
        "oddDaysRepeatPattern": {
            "repeatCount": 416,
            "applyUntilDateTime": "example string value"
        },
        "evenDaysRepeatPattern": {
            "repeatCount": 671,
            "applyUntilDateTime": "example string value"
        },
        "weeklySameDayRepeatPattern": {
            "repeatCount": 96,
            "applyUntilDateTime": "example string value"
        },
        "weeklyWorkdaysRepeatPattern": {
            "repeatCount": 305,
            "applyUntilDateTime": "example string value"
        },
        "monthlySameDateRepeatPattern": {
            "repeatCount": 192,
            "applyUntilDateTime": "example string value"
        },
        "monthlySameDayRepeatPattern": {
            "repeatCount": 211,
            "applyUntilDateTime": "example string value"
        },
        "annuallySameDateRepeatPattern": {
            "repeatCount": 630,
            "applyUntilDateTime": "example string value"
        }
    },
    "createdAt": "example string value",
    "updatedAt": "example string value",
    "startDateTime": "example string value",
    "endDateTime": "example string value",
    "areaRegionTypeIds": [
        144
    ],
    "emitterTypeIds": [
        872
    ],
    "stationNumbers": [
        597
    ],
    "allStations": false,
    "effect": "DENY"
}

HTTP Request

GET /api/v2/controllers/time-restrictions/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
controllerId string true
name string true
repeatPattern RepeatPattern false
createdAt string true
updatedAt string true
startDateTime string true
endDateTime string true
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
stationNumbers integer[ ] false
allStations boolean false
effect string true

RepeatPattern

Name Type Required Description
dailyRepeatPattern DailyRepeatPattern false
weeklyRepeatPattern WeeklyRepeatPattern false
monthlyRepeatPattern MonthlyRepeatPattern false
yearlyRepeatPattern YearlyRepeatPattern false
oddDaysRepeatPattern OddDaysRepeatPattern false
evenDaysRepeatPattern EvenDaysRepeatPattern false
weeklySameDayRepeatPattern WeeklySameDayRepeatPattern false
weeklyWorkdaysRepeatPattern WeeklyWorkdaysRepeatPattern false
monthlySameDateRepeatPattern MonthlySameDateRepeatPattern false
monthlySameDayRepeatPattern MonthlySameDayRepeatPattern false
annuallySameDateRepeatPattern AnnuallySameDateRepeatPattern false

DailyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false

WeeklyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false

MonthlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek string[ ] false

YearlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false
daysOfYear integer[ ] false
numbersOfWeek integer[ ] false

OddDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

EvenDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklyWorkdaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

AnnuallySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

Delete a Time Restriction by id

Request

curl "https://developer-api.etwater.com/api/v2/controllers/time-restrictions/{id}" \
-X DELETE \
-H "Authorization: example string value"

On success, the above request returns response like

no reponse

HTTP Request

DELETE /api/v2/controllers/time-restrictions/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
id string path true

HTTP Responses

Code Description
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Update a Time Restriction by id

Request

curl "https://developer-api.etwater.com/api/v2/controllers/time-restrictions/{id}" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"id\": \"example string value\",
    \"controllerId\": \"example string value\",
    \"name\": \"example string value\",
    \"repeatPattern\": {
        \"dailyRepeatPattern\": {
            \"repeatCount\": 698,
            \"applyUntilDateTime\": \"example string value\",
            \"interval\": 255
        },
        \"weeklyRepeatPattern\": {
            \"repeatCount\": 117,
            \"applyUntilDateTime\": \"example string value\",
            \"interval\": 889,
            \"daysOfWeek\": [
                \"Sun\"
            ]
        },
        \"monthlyRepeatPattern\": {
            \"repeatCount\": 593,
            \"applyUntilDateTime\": \"example string value\",
            \"interval\": 94,
            \"daysOfMonth\": null,
            \"positionInMonth\": 261,
            \"daysOfWeek\": [
                \"Sun\"
            ]
        },
        \"yearlyRepeatPattern\": {
            \"repeatCount\": 773,
            \"applyUntilDateTime\": \"example string value\",
            \"interval\": 888,
            \"daysOfWeek\": [
                \"Thu\"
            ],
            \"daysOfYear\": null,
            \"numbersOfWeek\": null
        },
        \"oddDaysRepeatPattern\": {
            \"repeatCount\": 660,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"evenDaysRepeatPattern\": {
            \"repeatCount\": 662,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"weeklySameDayRepeatPattern\": {
            \"repeatCount\": 381,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"weeklyWorkdaysRepeatPattern\": {
            \"repeatCount\": 162,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"monthlySameDateRepeatPattern\": {
            \"repeatCount\": 245,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"monthlySameDayRepeatPattern\": {
            \"repeatCount\": 835,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"annuallySameDateRepeatPattern\": {
            \"repeatCount\": 763,
            \"applyUntilDateTime\": \"example string value\"
        }
    },
    \"startDateTime\": \"example string value\",
    \"endDateTime\": \"example string value\",
    \"areaRegionTypeIds\": [
        602
    ],
    \"emitterTypeIds\": [
        13
    ],
    \"stationNumbers\": [
        79
    ],
    \"allStations\": true,
    \"effect\": \"ALLOW\"
}"

On success, the above request returns response like

{
    "id": "example string value",
    "controllerId": "example string value",
    "name": "example string value",
    "repeatPattern": {
        "dailyRepeatPattern": {
            "repeatCount": 48,
            "applyUntilDateTime": "example string value",
            "interval": 165
        },
        "weeklyRepeatPattern": {
            "repeatCount": 237,
            "applyUntilDateTime": "example string value",
            "interval": 930,
            "daysOfWeek": [
                "Sat"
            ]
        },
        "monthlyRepeatPattern": {
            "repeatCount": 68,
            "applyUntilDateTime": "example string value",
            "interval": 252,
            "daysOfMonth": null,
            "positionInMonth": 418,
            "daysOfWeek": [
                "Thu"
            ]
        },
        "yearlyRepeatPattern": {
            "repeatCount": 602,
            "applyUntilDateTime": "example string value",
            "interval": 610,
            "daysOfWeek": [
                "Sat"
            ],
            "daysOfYear": null,
            "numbersOfWeek": null
        },
        "oddDaysRepeatPattern": {
            "repeatCount": 154,
            "applyUntilDateTime": "example string value"
        },
        "evenDaysRepeatPattern": {
            "repeatCount": 137,
            "applyUntilDateTime": "example string value"
        },
        "weeklySameDayRepeatPattern": {
            "repeatCount": 838,
            "applyUntilDateTime": "example string value"
        },
        "weeklyWorkdaysRepeatPattern": {
            "repeatCount": 227,
            "applyUntilDateTime": "example string value"
        },
        "monthlySameDateRepeatPattern": {
            "repeatCount": 217,
            "applyUntilDateTime": "example string value"
        },
        "monthlySameDayRepeatPattern": {
            "repeatCount": 981,
            "applyUntilDateTime": "example string value"
        },
        "annuallySameDateRepeatPattern": {
            "repeatCount": 716,
            "applyUntilDateTime": "example string value"
        }
    },
    "createdAt": "example string value",
    "updatedAt": "example string value",
    "startDateTime": "example string value",
    "endDateTime": "example string value",
    "areaRegionTypeIds": [
        566
    ],
    "emitterTypeIds": [
        785
    ],
    "stationNumbers": [
        357
    ],
    "allStations": false,
    "effect": "DENY"
}

HTTP Request

PUT /api/v2/controllers/time-restrictions/{id}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
id string path true
UpdateTimeRestrictionRequest UpdateTimeRestrictionRequest body true

UpdateTimeRestrictionRequest

Name Type Required Description
id string true
controllerId string true
name string true
repeatPattern RepeatPattern false
startDateTime string true
endDateTime string true
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
stationNumbers integer[ ] false
allStations boolean false
effect string true

RepeatPattern

Name Type Required Description
dailyRepeatPattern DailyRepeatPattern false
weeklyRepeatPattern WeeklyRepeatPattern false
monthlyRepeatPattern MonthlyRepeatPattern false
yearlyRepeatPattern YearlyRepeatPattern false
oddDaysRepeatPattern OddDaysRepeatPattern false
evenDaysRepeatPattern EvenDaysRepeatPattern false
weeklySameDayRepeatPattern WeeklySameDayRepeatPattern false
weeklyWorkdaysRepeatPattern WeeklyWorkdaysRepeatPattern false
monthlySameDateRepeatPattern MonthlySameDateRepeatPattern false
monthlySameDayRepeatPattern MonthlySameDayRepeatPattern false
annuallySameDateRepeatPattern AnnuallySameDateRepeatPattern false

DailyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false

WeeklyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false

MonthlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek string[ ] false

YearlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false
daysOfYear integer[ ] false
numbersOfWeek integer[ ] false

OddDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

EvenDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklyWorkdaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

AnnuallySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
controllerId string true
name string true
repeatPattern RepeatPattern false
createdAt string true
updatedAt string true
startDateTime string true
endDateTime string true
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
stationNumbers integer[ ] false
allStations boolean false
effect string true

RepeatPattern

Name Type Required Description
dailyRepeatPattern DailyRepeatPattern false
weeklyRepeatPattern WeeklyRepeatPattern false
monthlyRepeatPattern MonthlyRepeatPattern false
yearlyRepeatPattern YearlyRepeatPattern false
oddDaysRepeatPattern OddDaysRepeatPattern false
evenDaysRepeatPattern EvenDaysRepeatPattern false
weeklySameDayRepeatPattern WeeklySameDayRepeatPattern false
weeklyWorkdaysRepeatPattern WeeklyWorkdaysRepeatPattern false
monthlySameDateRepeatPattern MonthlySameDateRepeatPattern false
monthlySameDayRepeatPattern MonthlySameDayRepeatPattern false
annuallySameDateRepeatPattern AnnuallySameDateRepeatPattern false

DailyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false

WeeklyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false

MonthlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek string[ ] false

YearlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false
daysOfYear integer[ ] false
numbersOfWeek integer[ ] false

OddDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

EvenDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklyWorkdaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

AnnuallySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

Copy Time Restriction

Request

curl "https://developer-api.etwater.com/api/v2/controllers/time-restrictions/{id}/rpc/copy" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"sourceId\": \"example string value\",
    \"destinationName\": \"example string value\",
    \"destinationControllerId\": \"example string value\"
}"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v2/controllers/time-restrictions/{id}/rpc/copy

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
id string path true
TimeRestriction CopyTimeRestrictionRequest body true

CopyTimeRestrictionRequest

Name Type Required Description
sourceId string true
destinationName string false
destinationControllerId string true

HTTP Responses

Code Description
201 Created
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
controllerId string true
name string true
repeatPattern RepeatPattern false
createdAt string true
updatedAt string true
startDateTime string true
endDateTime string true
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
stationNumbers integer[ ] false
allStations boolean false
effect string true

RepeatPattern

Name Type Required Description
dailyRepeatPattern DailyRepeatPattern false
weeklyRepeatPattern WeeklyRepeatPattern false
monthlyRepeatPattern MonthlyRepeatPattern false
yearlyRepeatPattern YearlyRepeatPattern false
oddDaysRepeatPattern OddDaysRepeatPattern false
evenDaysRepeatPattern EvenDaysRepeatPattern false
weeklySameDayRepeatPattern WeeklySameDayRepeatPattern false
weeklyWorkdaysRepeatPattern WeeklyWorkdaysRepeatPattern false
monthlySameDateRepeatPattern MonthlySameDateRepeatPattern false
monthlySameDayRepeatPattern MonthlySameDayRepeatPattern false
annuallySameDateRepeatPattern AnnuallySameDateRepeatPattern false

DailyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false

WeeklyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false

MonthlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek string[ ] false

YearlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false
daysOfYear integer[ ] false
numbersOfWeek integer[ ] false

OddDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

EvenDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklyWorkdaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

AnnuallySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

Get Time Restrictions

Request

curl "https://developer-api.etwater.com/api/v2/controllers/{controllerId}/time-restrictions?active=1" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[
    {
        "id": "example string value",
        "controllerId": "example string value",
        "name": "example string value",
        "repeatPattern": {
            "dailyRepeatPattern": {
                "repeatCount": 478,
                "applyUntilDateTime": "example string value",
                "interval": 244
            },
            "weeklyRepeatPattern": {
                "repeatCount": 705,
                "applyUntilDateTime": "example string value",
                "interval": 547,
                "daysOfWeek": [
                    "Mon"
                ]
            },
            "monthlyRepeatPattern": {
                "repeatCount": 812,
                "applyUntilDateTime": "example string value",
                "interval": 20,
                "daysOfMonth": null,
                "positionInMonth": 522,
                "daysOfWeek": [
                    "Thu"
                ]
            },
            "yearlyRepeatPattern": {
                "repeatCount": 709,
                "applyUntilDateTime": "example string value",
                "interval": 33,
                "daysOfWeek": [
                    "Sun"
                ],
                "daysOfYear": null,
                "numbersOfWeek": null
            },
            "oddDaysRepeatPattern": {
                "repeatCount": 369,
                "applyUntilDateTime": "example string value"
            },
            "evenDaysRepeatPattern": {
                "repeatCount": 564,
                "applyUntilDateTime": "example string value"
            },
            "weeklySameDayRepeatPattern": {
                "repeatCount": 644,
                "applyUntilDateTime": "example string value"
            },
            "weeklyWorkdaysRepeatPattern": {
                "repeatCount": 304,
                "applyUntilDateTime": "example string value"
            },
            "monthlySameDateRepeatPattern": {
                "repeatCount": 430,
                "applyUntilDateTime": "example string value"
            },
            "monthlySameDayRepeatPattern": {
                "repeatCount": 340,
                "applyUntilDateTime": "example string value"
            },
            "annuallySameDateRepeatPattern": {
                "repeatCount": 839,
                "applyUntilDateTime": "example string value"
            }
        },
        "createdAt": "example string value",
        "updatedAt": "example string value",
        "startDateTime": "example string value",
        "endDateTime": "example string value",
        "areaRegionTypeIds": [
            983
        ],
        "emitterTypeIds": [
            852
        ],
        "stationNumbers": [
            860
        ],
        "allStations": true,
        "effect": "ALLOW"
    }
]

HTTP Request

GET /api/v2/controllers/{controllerId}/time-restrictions

Request parameters

Name Type Part Required Description
Authorization string header true
controllerId string path true
active boolean query false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
id string true
controllerId string true
name string true
repeatPattern RepeatPattern false
createdAt string true
updatedAt string true
startDateTime string true
endDateTime string true
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
stationNumbers integer[ ] false
allStations boolean false
effect string true

RepeatPattern

Name Type Required Description
dailyRepeatPattern DailyRepeatPattern false
weeklyRepeatPattern WeeklyRepeatPattern false
monthlyRepeatPattern MonthlyRepeatPattern false
yearlyRepeatPattern YearlyRepeatPattern false
oddDaysRepeatPattern OddDaysRepeatPattern false
evenDaysRepeatPattern EvenDaysRepeatPattern false
weeklySameDayRepeatPattern WeeklySameDayRepeatPattern false
weeklyWorkdaysRepeatPattern WeeklyWorkdaysRepeatPattern false
monthlySameDateRepeatPattern MonthlySameDateRepeatPattern false
monthlySameDayRepeatPattern MonthlySameDayRepeatPattern false
annuallySameDateRepeatPattern AnnuallySameDateRepeatPattern false

DailyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false

WeeklyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false

MonthlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek string[ ] false

YearlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false
daysOfYear integer[ ] false
numbersOfWeek integer[ ] false

OddDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

EvenDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklyWorkdaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

AnnuallySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

Create a Time Restriction

Request

curl "https://developer-api.etwater.com/api/v2/controllers/{controllerId}/time-restrictions" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"controllerId\": \"example string value\",
    \"name\": \"example string value\",
    \"repeatPattern\": {
        \"dailyRepeatPattern\": {
            \"repeatCount\": 85,
            \"applyUntilDateTime\": \"example string value\",
            \"interval\": 279
        },
        \"weeklyRepeatPattern\": {
            \"repeatCount\": 986,
            \"applyUntilDateTime\": \"example string value\",
            \"interval\": 32,
            \"daysOfWeek\": [
                \"Wed\"
            ]
        },
        \"monthlyRepeatPattern\": {
            \"repeatCount\": 87,
            \"applyUntilDateTime\": \"example string value\",
            \"interval\": 88,
            \"daysOfMonth\": null,
            \"positionInMonth\": 452,
            \"daysOfWeek\": [
                \"Fri\"
            ]
        },
        \"yearlyRepeatPattern\": {
            \"repeatCount\": 510,
            \"applyUntilDateTime\": \"example string value\",
            \"interval\": 678,
            \"daysOfWeek\": [
                \"Thu\"
            ],
            \"daysOfYear\": null,
            \"numbersOfWeek\": null
        },
        \"oddDaysRepeatPattern\": {
            \"repeatCount\": 936,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"evenDaysRepeatPattern\": {
            \"repeatCount\": 268,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"weeklySameDayRepeatPattern\": {
            \"repeatCount\": 747,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"weeklyWorkdaysRepeatPattern\": {
            \"repeatCount\": 406,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"monthlySameDateRepeatPattern\": {
            \"repeatCount\": 204,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"monthlySameDayRepeatPattern\": {
            \"repeatCount\": 856,
            \"applyUntilDateTime\": \"example string value\"
        },
        \"annuallySameDateRepeatPattern\": {
            \"repeatCount\": 52,
            \"applyUntilDateTime\": \"example string value\"
        }
    },
    \"startDateTime\": \"example string value\",
    \"endDateTime\": \"example string value\",
    \"areaRegionTypeIds\": [
        279
    ],
    \"emitterTypeIds\": [
        251
    ],
    \"stationNumbers\": [
        700
    ],
    \"allStations\": false,
    \"effect\": \"ALLOW\"
}"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v2/controllers/{controllerId}/time-restrictions

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
controllerId string path true
CreateTimeRestrictionRequest CreateTimeRestrictionRequest body true

CreateTimeRestrictionRequest

Name Type Required Description
controllerId string true
name string true
repeatPattern RepeatPattern false
startDateTime string true
endDateTime string true
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
stationNumbers integer[ ] false
allStations boolean false
effect string true

RepeatPattern

Name Type Required Description
dailyRepeatPattern DailyRepeatPattern false
weeklyRepeatPattern WeeklyRepeatPattern false
monthlyRepeatPattern MonthlyRepeatPattern false
yearlyRepeatPattern YearlyRepeatPattern false
oddDaysRepeatPattern OddDaysRepeatPattern false
evenDaysRepeatPattern EvenDaysRepeatPattern false
weeklySameDayRepeatPattern WeeklySameDayRepeatPattern false
weeklyWorkdaysRepeatPattern WeeklyWorkdaysRepeatPattern false
monthlySameDateRepeatPattern MonthlySameDateRepeatPattern false
monthlySameDayRepeatPattern MonthlySameDayRepeatPattern false
annuallySameDateRepeatPattern AnnuallySameDateRepeatPattern false

DailyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false

WeeklyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false

MonthlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek string[ ] false

YearlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false
daysOfYear integer[ ] false
numbersOfWeek integer[ ] false

OddDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

EvenDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklyWorkdaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

AnnuallySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

HTTP Responses

Code Description
201 Created
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
id string true
controllerId string true
name string true
repeatPattern RepeatPattern false
createdAt string true
updatedAt string true
startDateTime string true
endDateTime string true
areaRegionTypeIds integer[ ] false
emitterTypeIds integer[ ] false
stationNumbers integer[ ] false
allStations boolean false
effect string true

RepeatPattern

Name Type Required Description
dailyRepeatPattern DailyRepeatPattern false
weeklyRepeatPattern WeeklyRepeatPattern false
monthlyRepeatPattern MonthlyRepeatPattern false
yearlyRepeatPattern YearlyRepeatPattern false
oddDaysRepeatPattern OddDaysRepeatPattern false
evenDaysRepeatPattern EvenDaysRepeatPattern false
weeklySameDayRepeatPattern WeeklySameDayRepeatPattern false
weeklyWorkdaysRepeatPattern WeeklyWorkdaysRepeatPattern false
monthlySameDateRepeatPattern MonthlySameDateRepeatPattern false
monthlySameDayRepeatPattern MonthlySameDayRepeatPattern false
annuallySameDateRepeatPattern AnnuallySameDateRepeatPattern false

DailyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false

WeeklyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false

MonthlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfMonth integer[ ] false
positionInMonth integer false
daysOfWeek string[ ] false

YearlyRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false
interval integer false
daysOfWeek string[ ] false
daysOfYear integer[ ] false
numbersOfWeek integer[ ] false

OddDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

EvenDaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

WeeklyWorkdaysRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

MonthlySameDayRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

AnnuallySameDateRepeatPattern

Name Type Required Description
repeatCount integer false
applyUntilDateTime string false

V2 | Sites | Manager Invitation

Invite site manager

Request

curl "https://developer-api.etwater.com/api/v2/sites/{siteId}/managers/rpc/invite" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"siteManagerInvitationRequest\": {
        \"siteId\": \"example string value\",
        \"email\": \"example string value\",
        \"firstName\": \"example string value\",
        \"lastName\": \"example string value\",
        \"address1\": \"example string value\",
        \"address2\": \"example string value\",
        \"city\": \"example string value\",
        \"state\": \"example string value\",
        \"postcode\": \"example string value\",
        \"phone1\": \"example string value\",
        \"phone2\": \"example string value\",
        \"accessType\": \"example string value\"
    },
    \"oAuthClientId\": \"example string value\"
}"

On success, the above request returns response like

no reponse

HTTP Request

POST /api/v2/sites/{siteId}/managers/rpc/invite

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
siteId string path true
SiteManagerInvitationRequestContainer SiteManagerInvitationRequestContainer body true

SiteManagerInvitationRequestContainer

Name Type Required Description
siteManagerInvitationRequest SiteManagerInvitationRequest true
oAuthClientId string true

SiteManagerInvitationRequest

Name Type Required Description
siteId string true
email string true
firstName string true
lastName string true
address1 string true
address2 string false
city string true
state string true
postcode string true
phone1 string true
phone2 string false
accessType string true

HTTP Responses

Code Description
201 Created
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
userId string true
firstName string true
lastName string true
email string true
accessType string true
siteId string true

V2 | Sites | Site Managers

Find site managers

Request

curl "https://developer-api.etwater.com/api/v2/sites/{siteId}/managers?page=1&size=50" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "managers": [
        {
            "userId": "example string value",
            "firstName": "example string value",
            "lastName": "example string value",
            "email": "example string value",
            "accessType": "example string value",
            "siteId": "example string value"
        }
    ],
    "page": 198,
    "size": 373,
    "total": 971
}

HTTP Request

GET /api/v2/sites/{siteId}/managers

Request parameters

Name Type Part Required Description
Authorization string header true
siteId string path true
page integer query false
size integer query false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
managers SiteManager[ ] true
page integer true
size integer true
total integer true

SiteManager

Name Type Required Description
userId string true
firstName string true
lastName string true
email string true
accessType string true
siteId string true

Get site manager

Request

curl "https://developer-api.etwater.com/api/v2/sites/{siteId}/managers/{userId}" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "userId": "example string value",
    "firstName": "example string value",
    "lastName": "example string value",
    "email": "example string value",
    "accessType": "example string value",
    "siteId": "example string value"
}

HTTP Request

GET /api/v2/sites/{siteId}/managers/{userId}

Request parameters

Name Type Part Required Description
Authorization string header true
siteId string path true
userId string path true

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
userId string true
firstName string true
lastName string true
email string true
accessType string true
siteId string true

Delete manager for site

Request

curl "https://developer-api.etwater.com/api/v2/sites/{siteId}/managers/{userId}" \
-X DELETE \
-H "Authorization: example string value"

On success, the above request returns response like

no reponse

HTTP Request

DELETE /api/v2/sites/{siteId}/managers/{userId}

Request parameters

Name Type Part Required Description
Authorization string header true
siteId string path true
userId string path true

HTTP Responses

Code Description
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Set managerfor site

Request

curl "https://developer-api.etwater.com/api/v2/sites/{siteId}/managers/{userId}" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "{
    \"accessType\": \"manager\"
}"

On success, the above request returns response like

no reponse

HTTP Request

PUT /api/v2/sites/{siteId}/managers/{userId}

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
siteId string path true
userId string path true
SetSiteManagerRequest SetSiteManagerRequest body true

SetSiteManagerRequest

Name Type Required Description
accessType string false

HTTP Responses

Code Description
201 Created
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
userId string true
firstName string true
lastName string true
email string true
accessType string true
siteId string true

V2 | Sites | Water Usage Report

Get water usage report

Request

curl "https://developer-api.etwater.com/api/v2/sites/{siteId}/water-usage/monthly?startDate=example+string+value&endDate=example+string+value" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "siteId": "example string value",
    "groupInterval": "DAILY",
    "items": [
        {
            "realWateringMm": 655.611670881329,
            "effectiveWateringMm": 778.8672688318729,
            "rainMm": 567,
            "effectiveRainMm": 969.1883516354433,
            "etcMm": 97.79070275732813,
            "etoMm": 115,
            "date": "example string value"
        }
    ],
    "processingStatus": "UNPROCESSABLE"
}

HTTP Request

GET /api/v2/sites/{siteId}/water-usage/monthly

Request parameters

Name Type Part Required Description
Authorization string header true
siteId string path true
startDate string query true
endDate string query true

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
siteId string true
groupInterval string true
items SiteWaterUsageReportItem[ ] false
processingStatus string true

SiteWaterUsageReportItem

Name Type Required Description
realWateringMm number true
effectiveWateringMm number true
rainMm number true
effectiveRainMm number true
etcMm number true
etoMm number true
date string true

Get water usage report

Request

curl "https://developer-api.etwater.com/api/v2/sites/{siteId}/water-usage/daily?startDate=example+string+value&endDate=example+string+value" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "siteId": "example string value",
    "groupInterval": "DAILY",
    "items": [
        {
            "realWateringMm": 473.35409395087237,
            "effectiveWateringMm": 158.80151472929936,
            "rainMm": 62,
            "effectiveRainMm": 278,
            "etcMm": 179.65798926523794,
            "etoMm": 989.8292571258868,
            "date": "example string value"
        }
    ],
    "processingStatus": "DONE"
}

HTTP Request

GET /api/v2/sites/{siteId}/water-usage/daily

Request parameters

Name Type Part Required Description
Authorization string header true
siteId string path true
startDate string query true
endDate string query true

HTTP Responses

Code Description
200 OK
404 Not Found
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
siteId string true
groupInterval string true
items SiteWaterUsageReportItem[ ] false
processingStatus string true

SiteWaterUsageReportItem

Name Type Required Description
realWateringMm number true
effectiveWateringMm number true
rainMm number true
effectiveRainMm number true
etcMm number true
etoMm number true
date string true

V2 | Users | Notification Preferences

Get all user notification preferences

Request

curl "https://developer-api.etwater.com/api/v2/users/{userId}/notification-preferences?userEditable=0&userVisible=1&platform%5B0%5D=UNITY&group%5B0%5D=COMMUNICATION_ISSUES" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[
    {
        "userId": "example string value",
        "notificationKey": "example string value",
        "notificationConfig": {
            "name": "example string value",
            "description": "example string value",
            "level": "STATION",
            "platform": "LEGACY",
            "userEditable": true,
            "group": "HARDWARE_FAILURES",
            "userVisible": false
        },
        "notificationConfigParameters": {
            "notifyOnceInPeriod": false,
            "notificationTimePeriodHours": 204,
            "notifyByEmail": false,
            "notifyByText": false
        }
    }
]

HTTP Request

GET /api/v2/users/{userId}/notification-preferences

Request parameters

Name Type Part Required Description
Authorization string header true
userId string path true
userEditable boolean query false
userVisible boolean query false
platform array query false Comma separated status
group array query false Comma separated status

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
userId string true
notificationKey string true
notificationConfig NotificationConfig true
notificationConfigParameters NotificationConfigParameters true

NotificationConfig

Name Type Required Description
name string true
description string true
level string true
platform string true
userEditable boolean true
group string true
userVisible boolean true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

Set user notification preferences

Request

curl "https://developer-api.etwater.com/api/v2/users/{userId}/notification-preferences" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"userId\": \"example string value\",
        \"notificationKey\": \"example string value\",
        \"notificationConfigParameters\": {
            \"notifyOnceInPeriod\": true,
            \"notificationTimePeriodHours\": 936,
            \"notifyByEmail\": true,
            \"notifyByText\": true
        }
    }
]"

On success, the above request returns response like

[
    {
        "userId": "example string value",
        "notificationKey": "example string value",
        "notificationName": "example string value",
        "notificationConfigParameters": {
            "notifyOnceInPeriod": false,
            "notificationTimePeriodHours": 456,
            "notifyByEmail": false,
            "notifyByText": true
        }
    }
]

HTTP Request

PUT /api/v2/users/{userId}/notification-preferences

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
userId string path true
SetUserNotificationConfigRequests SetUserNotificationConfigRequest[ ] body true

SetUserNotificationConfigRequest

Name Type Required Description
userId string true
notificationKey string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
userId string true
notificationKey string true
notificationName string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

Get all user site notification preferences

Request

curl "https://developer-api.etwater.com/api/v2/users/{userId}/site/{siteId}/notification-preferences?userEditable=1&userVisible=0&platform%5B0%5D=UNITY&group%5B0%5D=HARDWARE_FAILURES" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[
    {
        "userId": "example string value",
        "notificationKey": "example string value",
        "notificationConfig": {
            "name": "example string value",
            "description": "example string value",
            "level": "SITE",
            "platform": "LEGACY",
            "userEditable": true,
            "group": "GENERAL",
            "userVisible": false
        },
        "siteId": "example string value",
        "notificationConfigParameters": {
            "notifyOnceInPeriod": false,
            "notificationTimePeriodHours": 87,
            "notifyByEmail": true,
            "notifyByText": true
        }
    }
]

HTTP Request

GET /api/v2/users/{userId}/site/{siteId}/notification-preferences

Request parameters

Name Type Part Required Description
Authorization string header true
userId string path true
siteId string path true
userEditable boolean query false
userVisible boolean query false
platform array query false Comma separated status
group array query false Comma separated status

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
userId string true
notificationKey string true
notificationConfig NotificationConfig true
siteId string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfig

Name Type Required Description
name string true
description string true
level string true
platform string true
userEditable boolean true
group string true
userVisible boolean true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

Set user site notification preferences

Request

curl "https://developer-api.etwater.com/api/v2/users/{userId}/site/{siteId}/notification-preferences" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"userId\": \"example string value\",
        \"notificationKey\": \"example string value\",
        \"siteId\": \"example string value\",
        \"notificationConfigParameters\": {
            \"notifyOnceInPeriod\": true,
            \"notificationTimePeriodHours\": 54,
            \"notifyByEmail\": true,
            \"notifyByText\": false
        }
    }
]"

On success, the above request returns response like

[
    {
        "userId": "example string value",
        "notificationKey": "example string value",
        "notificationName": "example string value",
        "siteId": "example string value",
        "notificationConfigParameters": {
            "notifyOnceInPeriod": true,
            "notificationTimePeriodHours": 13,
            "notifyByEmail": true,
            "notifyByText": false
        }
    }
]

HTTP Request

PUT /api/v2/users/{userId}/site/{siteId}/notification-preferences

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
userId string path true
siteId string path true
SetUserSiteNotificationConfigRequests SetUserSiteNotificationConfigRequest[ ] body true

SetUserSiteNotificationConfigRequest

Name Type Required Description
userId string true
notificationKey string true
siteId string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
userId string true
notificationKey string true
notificationName string true
siteId string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

Get all user controller notification preferences

Request

curl "https://developer-api.etwater.com/api/v2/users/{userId}/controller/{controllerId}/notification-preferences?userEditable=0&userVisible=1&platform%5B0%5D=LEGACY&group%5B0%5D=COMMUNICATION_ISSUES" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

[
    {
        "userId": "example string value",
        "notificationKey": "example string value",
        "notificationConfig": {
            "name": "example string value",
            "description": "example string value",
            "level": "CONTROLLER",
            "platform": "LEGACY",
            "userEditable": true,
            "group": "GENERAL",
            "userVisible": false
        },
        "controllerId": "example string value",
        "notificationConfigParameters": {
            "notifyOnceInPeriod": true,
            "notificationTimePeriodHours": 536,
            "notifyByEmail": false,
            "notifyByText": true
        }
    }
]

HTTP Request

GET /api/v2/users/{userId}/controller/{controllerId}/notification-preferences

Request parameters

Name Type Part Required Description
Authorization string header true
userId string path true
controllerId string path true
userEditable boolean query false
userVisible boolean query false
platform array query false Comma separated status
group array query false Comma separated status

HTTP Responses

Code Description
200 Successful Response
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
userId string true
notificationKey string true
notificationConfig NotificationConfig true
controllerId string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfig

Name Type Required Description
name string true
description string true
level string true
platform string true
userEditable boolean true
group string true
userVisible boolean true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

Set user controller notification preferences

Request

curl "https://developer-api.etwater.com/api/v2/users/{userId}/controller/{controllerId}/notification-preferences" \
-X PUT \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"userId\": \"example string value\",
        \"notificationKey\": \"example string value\",
        \"controllerId\": \"example string value\",
        \"notificationConfigParameters\": {
            \"notifyOnceInPeriod\": true,
            \"notificationTimePeriodHours\": 730,
            \"notifyByEmail\": false,
            \"notifyByText\": false
        }
    }
]"

On success, the above request returns response like

[
    {
        "userId": "example string value",
        "notificationKey": "example string value",
        "notificationName": "example string value",
        "controllerId": "example string value",
        "notificationConfigParameters": {
            "notifyOnceInPeriod": false,
            "notificationTimePeriodHours": 704,
            "notifyByEmail": true,
            "notifyByText": false
        }
    }
]

HTTP Request

PUT /api/v2/users/{userId}/controller/{controllerId}/notification-preferences

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
userId string path true
controllerId string path true
SetUserControllerNotificationConfigRequests SetUserControllerNotificationConfigRequest[ ] body true

SetUserControllerNotificationConfigRequest

Name Type Required Description
userId string true
notificationKey string true
controllerId string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
userId string true
notificationKey string true
notificationName string true
controllerId string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

Find user site notification preferences in bulk

Request

curl "https://developer-api.etwater.com/api/v2/users/{userId}/site-notification-preferences/rpc/find-bulk" \
-X POST \
-H "Authorization: example string value" \
-H "Content-Type: example string value" \
--data "[
    {
        \"userId\": \"example string value\",
        \"siteId\": \"example string value\",
        \"notificationConfigFilters\": {
            \"platforms\": [
                \"LEGACY\"
            ],
            \"userEditable\": false,
            \"groups\": [
                \"COMMUNICATION_ISSUES\"
            ],
            \"userVisible\": false
        }
    }
]"

On success, the above request returns response like

[
    {
        "userId": "example string value",
        "notificationKey": "example string value",
        "notificationConfig": {
            "name": "example string value",
            "description": "example string value",
            "level": "USER",
            "platform": "UNITY",
            "userEditable": true,
            "group": "HARDWARE_FAILURES",
            "userVisible": false
        },
        "siteId": "example string value",
        "notificationConfigParameters": {
            "notifyOnceInPeriod": false,
            "notificationTimePeriodHours": 188,
            "notifyByEmail": false,
            "notifyByText": false
        }
    }
]

HTTP Request

POST /api/v2/users/{userId}/site-notification-preferences/rpc/find-bulk

Request parameters

Name Type Part Required Description
Authorization string header true
Content-Type string header true
userId string path true
FindUserSiteNotificationConfigsRequest FindUserSiteNotificationConfigsRequest[ ] body true

FindUserSiteNotificationConfigsRequest

Name Type Required Description
userId string true
siteId string true
notificationConfigFilters NotificationConfigFilters true

NotificationConfigFilters

Name Type Required Description
platforms string[ ] false
userEditable boolean false
groups string[ ] false
userVisible boolean false

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response is array of

Name Type Required Description
userId string true
notificationKey string true
notificationConfig NotificationConfig true
siteId string true
notificationConfigParameters NotificationConfigParameters true

NotificationConfig

Name Type Required Description
name string true
description string true
level string true
platform string true
userEditable boolean true
group string true
userVisible boolean true

NotificationConfigParameters

Name Type Required Description
notifyOnceInPeriod boolean true
notificationTimePeriodHours integer true
notifyByEmail boolean true
notifyByText boolean false

V2 | Weather | Weather

Get daily atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/daily?longitude=599&latitude=29.285572948533&startTimestamp=114&endTimestamp=615&keys%5B0%5D=CLOUD_COVER" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                127
            ]
        }
    },
    "hourly": [
        {
            "time": 658,
            "etMm": 983,
            "rainMm": 389.8631066036705,
            "ghWm2": 776,
            "temperatureC": 611,
            "dewPointC": 370,
            "windKmH": 603,
            "relativeHumidityPercent": 500,
            "precipitationProbabilityPercent": 187.55382680685904,
            "cloudCoverPercent": 423.6881120240726,
            "pressureKilopascals": 932,
            "windGustKmH": 870
        }
    ],
    "daily": [
        {
            "time": 675,
            "sunrise": 121,
            "sunset": 367,
            "etMm": 130.94040804120732,
            "rainMm": 589,
            "ghWm2": 881,
            "dewPointC": 103.65507616831691,
            "minTemperatureC": 719.464095178742,
            "maxTemperatureC": 347,
            "minWindKmH": 635,
            "maxWindKmH": 457,
            "avgPressureKilopascals": 868.6291276796857,
            "avgCloudCoverPercent": 150,
            "avgRelativeHumidityPercent": 23.361660550982535,
            "maxPrecipitationProbabilityPercent": 473.3637056655082,
            "avgTemperatureC": 432,
            "minRelativeHumidityPercent": 235,
            "maxRelativeHumidityPercent": 342.816938340113
        }
    ],
    "monthly": [
        {
            "time": 822,
            "etMm": 562.4603990290595,
            "rainMm": 734,
            "ghWm2": 438,
            "minTemperatureC": 516.9244285286052,
            "maxTemperatureC": 675.4728586764414,
            "minWindKmH": 340.4791570922728,
            "maxWindKmH": 501,
            "avgPressureKilopascals": 143.7372305168478,
            "avgCloudCoverPercent": 469.9456628737718,
            "avgRelativeHumidityPercent": 181.56593394538663,
            "maxPrecipitationProbabilityPercent": 94.11519397707433,
            "avgWindKmH": 47.94925826040527,
            "avgTemperatureC": 96,
            "avgDewPointC": 307.2436974883283,
            "minRelativeHumidityPercent": 97,
            "maxRelativeHumidityPercent": 865.4678346894066
        }
    ],
    "status": 797
}

HTTP Request

GET /api/v2/atmosphere/daily

Request parameters

Name Type Part Required Description
Authorization string header true
longitude number query false
latitude number query false
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster false
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer false

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get hourly atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/hourly?longitude=464&latitude=158.60779637406&startTimestamp=507&endTimestamp=968&keys%5B0%5D=ET" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                313
            ]
        }
    },
    "hourly": [
        {
            "time": 966,
            "etMm": 286,
            "rainMm": 753.354770016556,
            "ghWm2": 965,
            "temperatureC": 129.64058021532398,
            "dewPointC": 342,
            "windKmH": 717.6516152534874,
            "relativeHumidityPercent": 97,
            "precipitationProbabilityPercent": 823,
            "cloudCoverPercent": 647.2414488192841,
            "pressureKilopascals": 589.4783551755726,
            "windGustKmH": 150
        }
    ],
    "daily": [
        {
            "time": 356,
            "sunrise": 526,
            "sunset": 281,
            "etMm": 584.6448901969217,
            "rainMm": 370,
            "ghWm2": 528,
            "dewPointC": 908,
            "minTemperatureC": 313.66976923945816,
            "maxTemperatureC": 621,
            "minWindKmH": 473.5207862563062,
            "maxWindKmH": 151.57819918895987,
            "avgPressureKilopascals": 11,
            "avgCloudCoverPercent": 345,
            "avgRelativeHumidityPercent": 797.5194672111047,
            "maxPrecipitationProbabilityPercent": 697.2016695408158,
            "avgTemperatureC": 193,
            "minRelativeHumidityPercent": 243,
            "maxRelativeHumidityPercent": 729
        }
    ],
    "monthly": [
        {
            "time": 935,
            "etMm": 481,
            "rainMm": 971,
            "ghWm2": 883,
            "minTemperatureC": 227.3447724186558,
            "maxTemperatureC": 488.21913985918235,
            "minWindKmH": 132.03517214024217,
            "maxWindKmH": 483,
            "avgPressureKilopascals": 977,
            "avgCloudCoverPercent": 9,
            "avgRelativeHumidityPercent": 19.928770614754768,
            "maxPrecipitationProbabilityPercent": 556,
            "avgWindKmH": 87,
            "avgTemperatureC": 621,
            "avgDewPointC": 807.5471696479,
            "minRelativeHumidityPercent": 606,
            "maxRelativeHumidityPercent": 466
        }
    ],
    "status": 890
}

HTTP Request

GET /api/v2/atmosphere/hourly

Request parameters

Name Type Part Required Description
Authorization string header true
longitude number query false
latitude number query false
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster false
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer false

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get monthly atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/monthly?longitude=334.51938830992&latitude=558.33317039457&startTimestamp=543&endTimestamp=898&keys%5B0%5D=RELATIVE_HUMIDITY" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                625.0806695898439
            ]
        }
    },
    "hourly": [
        {
            "time": 45,
            "etMm": 680.6682868304981,
            "rainMm": 649.8713999287557,
            "ghWm2": 155,
            "temperatureC": 506.6312842567597,
            "dewPointC": 735.1768755983453,
            "windKmH": 295.73092483716596,
            "relativeHumidityPercent": 393,
            "precipitationProbabilityPercent": 610,
            "cloudCoverPercent": 196.95803532235234,
            "pressureKilopascals": 403,
            "windGustKmH": 338.58878972874436
        }
    ],
    "daily": [
        {
            "time": 356,
            "sunrise": 581,
            "sunset": 796,
            "etMm": 155,
            "rainMm": 891.223736988019,
            "ghWm2": 695,
            "dewPointC": 923.9001813921612,
            "minTemperatureC": 462.54696625403454,
            "maxTemperatureC": 984,
            "minWindKmH": 719,
            "maxWindKmH": 79,
            "avgPressureKilopascals": 452,
            "avgCloudCoverPercent": 607.2209340553828,
            "avgRelativeHumidityPercent": 958.8712076464999,
            "maxPrecipitationProbabilityPercent": 242,
            "avgTemperatureC": 997,
            "minRelativeHumidityPercent": 591,
            "maxRelativeHumidityPercent": 564
        }
    ],
    "monthly": [
        {
            "time": 964,
            "etMm": 56.455757029566804,
            "rainMm": 633,
            "ghWm2": 808,
            "minTemperatureC": 807,
            "maxTemperatureC": 83.79937572581665,
            "minWindKmH": 965.7174818989437,
            "maxWindKmH": 39,
            "avgPressureKilopascals": 198.2126856214426,
            "avgCloudCoverPercent": 337,
            "avgRelativeHumidityPercent": 813,
            "maxPrecipitationProbabilityPercent": 995.2938156180521,
            "avgWindKmH": 512,
            "avgTemperatureC": 262,
            "avgDewPointC": 437.05643547561783,
            "minRelativeHumidityPercent": 460.2028324549099,
            "maxRelativeHumidityPercent": 670.0947543932566
        }
    ],
    "status": 403
}

HTTP Request

GET /api/v2/atmosphere/monthly

Request parameters

Name Type Part Required Description
Authorization string header true
longitude number query false
latitude number query false
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster false
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer false

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get daily atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/cluster/{clusterId}/daily?startTimestamp=379&endTimestamp=50&keys%5B0%5D=ET" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                337.41322222045306
            ]
        }
    },
    "hourly": [
        {
            "time": 931,
            "etMm": 858.5016475331512,
            "rainMm": 983.0680768858026,
            "ghWm2": 300,
            "temperatureC": 927.479893401023,
            "dewPointC": 290,
            "windKmH": 455,
            "relativeHumidityPercent": 370,
            "precipitationProbabilityPercent": 996,
            "cloudCoverPercent": 54,
            "pressureKilopascals": 586,
            "windGustKmH": 859.4531481431113
        }
    ],
    "daily": [
        {
            "time": 439,
            "sunrise": 609,
            "sunset": 221,
            "etMm": 183,
            "rainMm": 103,
            "ghWm2": 673,
            "dewPointC": 449.97225722762397,
            "minTemperatureC": 494.0155812045632,
            "maxTemperatureC": 122,
            "minWindKmH": 920,
            "maxWindKmH": 169,
            "avgPressureKilopascals": 637,
            "avgCloudCoverPercent": 438.29206583941914,
            "avgRelativeHumidityPercent": 43,
            "maxPrecipitationProbabilityPercent": 398.6421578557427,
            "avgTemperatureC": 546.879396562874,
            "minRelativeHumidityPercent": 329.2485993957373,
            "maxRelativeHumidityPercent": 149.56339595353387
        }
    ],
    "monthly": [
        {
            "time": 121,
            "etMm": 483,
            "rainMm": 200.45608058593052,
            "ghWm2": 531,
            "minTemperatureC": 511.9620820097449,
            "maxTemperatureC": 604,
            "minWindKmH": 322,
            "maxWindKmH": 810.1901490288741,
            "avgPressureKilopascals": 621.3781426760266,
            "avgCloudCoverPercent": 33,
            "avgRelativeHumidityPercent": 414.76604687737586,
            "maxPrecipitationProbabilityPercent": 477,
            "avgWindKmH": 924,
            "avgTemperatureC": 154.45090604687616,
            "avgDewPointC": 334,
            "minRelativeHumidityPercent": 496.80430884324215,
            "maxRelativeHumidityPercent": 477
        }
    ],
    "status": 467
}

HTTP Request

GET /api/v2/atmosphere/cluster/{clusterId}/daily

Request parameters

Name Type Part Required Description
Authorization string header true
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show
clusterId string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster false
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer false

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get hourly atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/cluster/{clusterId}/hourly?startTimestamp=153&endTimestamp=948&keys%5B0%5D=PRECIPITATION_PROBABILITY" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                488
            ]
        }
    },
    "hourly": [
        {
            "time": 505,
            "etMm": 250.01272337977437,
            "rainMm": 992,
            "ghWm2": 632,
            "temperatureC": 293.51583788800787,
            "dewPointC": 359,
            "windKmH": 692.893678179427,
            "relativeHumidityPercent": 368.35449951158586,
            "precipitationProbabilityPercent": 114.30244618761468,
            "cloudCoverPercent": 458,
            "pressureKilopascals": 614.2318526349179,
            "windGustKmH": 380
        }
    ],
    "daily": [
        {
            "time": 601,
            "sunrise": 215,
            "sunset": 698,
            "etMm": 432,
            "rainMm": 344.2505301648055,
            "ghWm2": 411,
            "dewPointC": 575.9152591116332,
            "minTemperatureC": 25.80141975814543,
            "maxTemperatureC": 422,
            "minWindKmH": 973,
            "maxWindKmH": 921,
            "avgPressureKilopascals": 250.84608059881535,
            "avgCloudCoverPercent": 703.5563880128583,
            "avgRelativeHumidityPercent": 581,
            "maxPrecipitationProbabilityPercent": 700.780553138247,
            "avgTemperatureC": 148.41255319696504,
            "minRelativeHumidityPercent": 670.2423326998214,
            "maxRelativeHumidityPercent": 569
        }
    ],
    "monthly": [
        {
            "time": 172,
            "etMm": 862,
            "rainMm": 922,
            "ghWm2": 531,
            "minTemperatureC": 538,
            "maxTemperatureC": 155.3780637473697,
            "minWindKmH": 711,
            "maxWindKmH": 205.09594734995437,
            "avgPressureKilopascals": 417.567143411174,
            "avgCloudCoverPercent": 2,
            "avgRelativeHumidityPercent": 115.94946129058928,
            "maxPrecipitationProbabilityPercent": 812.8020250298092,
            "avgWindKmH": 107.47560537768324,
            "avgTemperatureC": 511.11888164240816,
            "avgDewPointC": 855,
            "minRelativeHumidityPercent": 511.1693574633307,
            "maxRelativeHumidityPercent": 182.7722653666382
        }
    ],
    "status": 276
}

HTTP Request

GET /api/v2/atmosphere/cluster/{clusterId}/hourly

Request parameters

Name Type Part Required Description
Authorization string header true
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show
clusterId string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster false
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer false

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

Get monthly atmosphere data

Request

curl "https://developer-api.etwater.com/api/v2/atmosphere/cluster/{clusterId}/monthly?startTimestamp=550&endTimestamp=104&keys%5B0%5D=RELATIVE_HUMIDITY" \
-X GET \
-H "Authorization: example string value"

On success, the above request returns response like

{
    "cluster": {
        "id": "example string value",
        "location": {
            "type": "example string value",
            "coordinates": [
                131
            ]
        }
    },
    "hourly": [
        {
            "time": 954,
            "etMm": 7.884164810126723,
            "rainMm": 853.4523890602646,
            "ghWm2": 780,
            "temperatureC": 48,
            "dewPointC": 438,
            "windKmH": 366.2321741535478,
            "relativeHumidityPercent": 216.9451095242729,
            "precipitationProbabilityPercent": 61.851904290659306,
            "cloudCoverPercent": 83.58792498874847,
            "pressureKilopascals": 392.5219091551946,
            "windGustKmH": 310
        }
    ],
    "daily": [
        {
            "time": 639,
            "sunrise": 414,
            "sunset": 498,
            "etMm": 967,
            "rainMm": 84,
            "ghWm2": 459,
            "dewPointC": 60.26535204624075,
            "minTemperatureC": 80.01145165414151,
            "maxTemperatureC": 921.7455354154788,
            "minWindKmH": 898.3946209300284,
            "maxWindKmH": 539,
            "avgPressureKilopascals": 669.139534546593,
            "avgCloudCoverPercent": 904,
            "avgRelativeHumidityPercent": 740.5287463872362,
            "maxPrecipitationProbabilityPercent": 773.133437509245,
            "avgTemperatureC": 25.80604703435956,
            "minRelativeHumidityPercent": 426,
            "maxRelativeHumidityPercent": 515
        }
    ],
    "monthly": [
        {
            "time": 81,
            "etMm": 870,
            "rainMm": 48,
            "ghWm2": 662,
            "minTemperatureC": 304,
            "maxTemperatureC": 199.8098139650234,
            "minWindKmH": 836.4069158380884,
            "maxWindKmH": 961,
            "avgPressureKilopascals": 307,
            "avgCloudCoverPercent": 188.26630254661026,
            "avgRelativeHumidityPercent": 60.01148561947583,
            "maxPrecipitationProbabilityPercent": 288,
            "avgWindKmH": 226,
            "avgTemperatureC": 993,
            "avgDewPointC": 381,
            "minRelativeHumidityPercent": 658,
            "maxRelativeHumidityPercent": 161.08093977024822
        }
    ],
    "status": 462
}

HTTP Request

GET /api/v2/atmosphere/cluster/{clusterId}/monthly

Request parameters

Name Type Part Required Description
Authorization string header true
startTimestamp integer query false
endTimestamp integer query false
keys array query false names of sections to show
clusterId string path true

HTTP Responses

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
504 Gateway Timeout

Successful response

Name Type Required Description
cluster WeatherCluster false
hourly WeatherHourly[ ] false
daily WeatherDaily[ ] false
monthly WeatherMonthly[ ] false
status integer false

WeatherCluster

Name Type Required Description
id string false
location Location false

Location

Name Type Required Description
type string false
coordinates number[ ] false

WeatherHourly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
temperatureC number false
dewPointC number false
windKmH number false
relativeHumidityPercent number false
precipitationProbabilityPercent number false
cloudCoverPercent number false
pressureKilopascals number false
windGustKmH number false

WeatherDaily

Name Type Required Description
time integer false
sunrise integer false
sunset integer false
etMm number false
rainMm number false
ghWm2 integer false
dewPointC number false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgTemperatureC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false

WeatherMonthly

Name Type Required Description
time integer false
etMm number false
rainMm number false
ghWm2 integer false
minTemperatureC number false
maxTemperatureC number false
minWindKmH number false
maxWindKmH number false
avgPressureKilopascals number false
avgCloudCoverPercent number false
avgRelativeHumidityPercent number false
maxPrecipitationProbabilityPercent number false
avgWindKmH number false
avgTemperatureC number false
avgDewPointC number false
minRelativeHumidityPercent number false
maxRelativeHumidityPercent number false