diff --git a/NUKI-DEVELOPER-%7C-Nuki-Bridge-HTTP-API.md b/NUKI-DEVELOPER-%7C-Nuki-Bridge-HTTP-API.md index ad52d32..f8b2db7 100644 --- a/NUKI-DEVELOPER-%7C-Nuki-Bridge-HTTP-API.md +++ b/NUKI-DEVELOPER-%7C-Nuki-Bridge-HTTP-API.md @@ -187,4 +187,47 @@ Possible doorsensor states (used in Endpoints below).
URL | +http://192.168.1.50:8080/configAuth | +|
---|---|---|
Usage | +Enables or disables the authorization via /auth and the publication of the local IP and port to the discovery URL (https://api.nuki.io/discover/bridges). | +|
URL-Parameters | +enable | +Flag (0 or 1) indicating whether or not the authorization should be enabled | +
token | +The api token configured via the Nuki app when enabling the API | +|
Response | +JSON list containing the success of the operation | +|
success | +Flag indicating the success of the authorization | +|
Errors | +HTTP 400 + | Returned if the given value for enable is invalid (neither 0 nor 1) | +
HTTP 401 | +Returned if the given token is invalid or a hashed token parameter is missing. | +|
Example-Calls | +http://192.168.1.50:8080/configAuth?enable=0&token=123456 +http://192.168.1.50:8080/configAuth?enable=0&ts=2019-03-05T01:06:53Z&rnr=4711&hash=f52eb5ce382e356c4239f8fb4d0a87402bb95b7b3124f0762b806ad7d0d01cb6 | +