{"_id":"55e99a1a8b72bb3700b1d5fb","__v":0,"user":"55a4f13d02b09d1900d00a9f","category":{"_id":"55a47339e75ca60d00a39333","pages":["55a47339e75ca60d00a39335","55a4f5bb02b09d1900d00aac","55a4fbc002b09d1900d00ab9","55a500e8750a9a23005332b9","55a502a02e70c02500380514","55b686bef8105a2f00c352f7","55e99120461e2a390050f254","55e9919ca7ca823900ad54b1","55e996d17f564237001d5bad","55e99a1a8b72bb3700b1d5fb","55e99cb5461e2a390050f283"],"project":"55a47338e75ca60d00a3932f","__v":11,"version":"55a47338e75ca60d00a39332","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-14T02:26:01.272Z","from_sync":false,"order":1,"slug":"documentation","title":"Documentation"},"editedParams":true,"version":{"_id":"55a47338e75ca60d00a39332","project":"55a47338e75ca60d00a3932f","__v":8,"createdAt":"2015-07-14T02:26:00.724Z","releaseDate":"2015-07-14T02:26:00.724Z","categories":["55a47339e75ca60d00a39333","55a4fb7e1a5f991700a940f0","55a6702b80c8a30d00b32684","55a6703b80c8a30d00b32685","55a6ea5516d20b1900ed8f53","55b23ad2329f363900fbc92f","55b23b0a329f363900fbc932","55b2426a0e11590d008f7950"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"editedParams2":true,"project":"55a47338e75ca60d00a3932f","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-04T13:18:18.717Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"code":"{\n  \"name\": \"success.putzones\",\n  \"data\": [\n    {\n      \"cycle_time\": 1800,\n      \"cycles\": 1,\n      \"enabled\": 1,\n      \"has_custom_time_schedule\": 0,\n      \"high_evapo_environment\": 0,\n      \"is_master\": 0,\n      \"master_start_offset\": 0,\n      \"name\": \"Zone One\",\n      \"needs_master\": 1,\n      \"number\": 1,\n      \"order\": 1,\n      \"plant_type\": \"Grass / Garden\",\n      \"runs_with_others\": 0,\n      \"slope_type\": \"Flat\",\n      \"soak_time\": 0,\n      \"soil_type\": \"Silty Clay\",\n      \"sprinkler_type\": \"Spray\",\n      \"sunlight_exposure_type\": \"Full\",\n      \"wind_exposure_level\": \"Average\"\n    },\n    (and more)...\n  ]\n}","language":"json","status":200,"name":""},{"name":"","code":"{\n  \"name\": \"error.putzones\",\n  \"data\": \"error message\"\n}","language":"json","status":400}]},"settings":"","examples":{"codes":[{"name":"","code":"curl -X PUT -d '{\"zones\": [\n{\n  \"cycle_time\": 1800,\n  \"cycles\": 1,\n  \"enabled\": 1,\n  \"has_custom_time_schedule\": 0,\n  \"high_evapo_environment\": 0,\n  \"is_master\": 0,\n  \"master_start_offset\": 0,\n  \"name\": \"Zone One\",\n  \"needs_master\": 1,\n  \"number\": 1,\n  \"order\": 1,\n  \"plant_type\": \"Grass / Garden\",\n  \"runs_with_others\": 0,\n  \"slope_type\": \"Flat\",\n  \"soak_time\": 0,\n  \"soil_type\": \"Silty Clay\",\n  \"sprinkler_type\": \"Spray\",\n  \"sunlight_exposure_type\": \"Full\",\n  \"wind_exposure_level\": \"Average\"\n},\n(and more)...\n]}' https://make.lono.io/api/v1/devices/:deviceId/zones?token=[auth token]","language":"shell"},{"code":"# Assuming you've connected to the Lono Cloud and created a device named device:\ndevice.put_zones([\n    {\n        \"cycle_time\": 1800,\n        \"cycles\": 1,\n        \"enabled\": 1,\n        \"has_custom_time_schedule\": 0,\n        \"high_evapo_environment\": 0,\n        \"is_master\": 0,\n        \"master_start_offset\": 0,\n        \"name\": \"Zone One\",\n        \"needs_master\": 1,\n        \"number\": 1,\n        \"order\": 1,\n        \"plant_type\": \"Grass / Garden\",\n        \"runs_with_others\": 0,\n        \"slope_type\": \"Flat\",\n        \"soak_time\": 0,\n        \"soil_type\": \"Silty Clay\",\n        \"sprinkler_type\": \"Spray\",\n        \"sunlight_exposure_type\": \"Full\",\n        \"wind_exposure_level\": \"Average\"\n    },\n    (and more)...\n])","language":"python"}]},"method":"put","auth":"required","params":[{"_id":"55e99120461e2a390050f255","ref":"","in":"body","required":true,"desc":"Your Lono ID","default":"","type":"string","name":":deviceId"}],"url":"/devices/:deviceId/zones"},"isReference":false,"order":4,"body":"### Permission to use this feature\nIn applications, to provide use of any feature, you can use the scope `write` - think of it like a wildcard. However, in production applications, it's recommended that developers instead specify their scopes explicitly.\n\nThe scope for this feature is `zones:detail:put`.","excerpt":"","slug":"update-zones","type":"endpoint","title":"Update Zones"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

deviceId:
required
string
Your Lono ID

Examples


Result Format


Documentation

### Permission to use this feature In applications, to provide use of any feature, you can use the scope `write` - think of it like a wildcard. However, in production applications, it's recommended that developers instead specify their scopes explicitly. The scope for this feature is `zones:detail:put`.

User Information

Try It Out

put
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}