{"_id":"55e996d17f564237001d5bad","__v":0,"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"},"editedParams2":true,"project":"55a47338e75ca60d00a3932f","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"},"user":"55a4f13d02b09d1900d00a9f","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-04T13:04:17.972Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"name":"","code":"curl -X POST 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.detect_zones()","language":"python"}]},"method":"post","results":{"codes":[{"name":"","code":"{\n  \"name\": \"success.detectzones\",\n  \"data\": [\n    0,\n    1,\n    4,\n    (and more)...\n  ]\n}","language":"json","status":200},{"status":400,"name":"","code":"{\n  \"name\": \"error.detectzones\",\n  \"data\": \"error message\"\n}","language":"json"}]},"settings":"","auth":"required","params":[{"_id":"55e99120461e2a390050f255","ref":"","in":"body","required":true,"desc":"Your Lono ID","default":"","type":"string","name":":deviceId"}],"url":"/devices/:deviceId/zones/detect"},"isReference":false,"order":5,"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:detect`.","excerpt":"","slug":"detect-zones","type":"endpoint","title":"Detect 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:detect`.

User Information

Try It Out

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