Check for a new release
POST
/api/v1/update/check
const url = 'http://pwrman.local/api/v1/update/check';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/update/check \ --header 'Authorization: Bearer <token>'Asks the update source for the newest release now. The answer
appears in the status update object.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Started. The result shows up later.
Media typeapplication/json
object
ok
required
boolean
Example
{ "ok": true}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"}A check cannot start now, for example with no update source set.
Media typeapplication/json
object
error
required
Why the request was refused, in words.
string
Example generated
{ "error": "example"}USB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.