Open or close Wi-Fi setup
POST
/api/v1/improv
const url = 'http://pwrman.local/api/v1/improv';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"open":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://pwrman.local/api/v1/improv \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "open": true }'{"open": true} opens
Wi-Fi setup
for 10 minutes; {"open": false} closes it.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
open
required
boolean
Example
{ "open": true}Responses
Section titled “Responses”Done.
Media typeapplication/json
object
ok
required
boolean
improv
required
Wi-Fi setup over Bluetooth.
string
Example
{ "ok": true, "improv": "advertising"}The body has no open boolean.
Media typeapplication/json
object
error
required
Why the request was refused, in words.
string
Example generated
{ "error": "example"}The token is missing or wrong, or no token is set yet.
Media typeapplication/json
object
error
required
Why the request was refused, in words.
string
Examples
{ "error": "bearer token required"}{ "error": "no API token set yet: finish first-time setup first"}This controller has no Wi-Fi.
Media typeapplication/json
object
error
required
Why the request was refused, in words.
string
Example
{ "error": "Wi-Fi setup is not available on this controller"}USB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.