Restart the controller
POST
/api/v1/reboot
const url = 'http://pwrman.local/api/v1/reboot';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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/reboot \ --header 'Authorization: Bearer <token>'Restarts the controller 300 ms after replying. Port power stays on, and the ports keep their contracts.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The restart is scheduled.
Media typeapplication/json
object
ok
required
boolean
action
required
string
Example
{ "ok": true, "action": "reboot in 300ms"}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"}USB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.