Browse developer docs
Control an irrigation scene
POSTfarm-device-smart-control
Request
Send POST to /open/service with serviceName=farm-device-smart-control and the common signing parameters.
Send extra fields in the JSON body
Some irrigation starts require extent with a level device and a water-level or duration target. Match the parameters to the selected control type.
This operation submits a change. Replace the illustrative values, confirm access, and review the intended action before sending a signed request.
Illustrative payload
{
"org_id": "YOUR_FARM_ID",
"fs_sn": "YOUR_FARM_SERVER_SN",
"control_type": "<selected action code>",
"scene_id": "YOUR_SCENE_ID"
}| Parameter | Requirement | Meaning |
|---|---|---|
org_id | Required | Authorized farm or organization ID. |
fs_sn | Required | Farm server serial from farm-server-list. |
control_type | Required | Action code for the selected type of irrigation scene. |
scene_id | Required | Irrigation scene ID. |
extent | Optional | WKT search polygon for survey queries, or a settings object for applicable irrigation scene commands. |
extent.device_id | Conditional | Water-level sensor ID for supported basin irrigation actions. |
extent.target_water_level | Conditional | Target water level in millimetres. |
extent.target_duration | Conditional | Target irrigation duration in minutes. |
Response
Confirm the resulting scene and device state after submission. Duration and water-level targets apply to specific actions.
Show example response fields and types
{
"status": "number",
"success": "boolean",
"data": "null",
"message": "string"
}