Forget the saved owner
DELETE
/owner
const url = 'http://127.0.0.1:7700/api/owner';const options = {method: 'DELETE', 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 DELETE \ --url http://127.0.0.1:7700/api/owner \ --header 'Authorization: Bearer <token>'Preview, owner only. Removes owner.json and goes back to BOX_OWNER, or to no owner.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The owner now, or null.
The owner’s route, called by someone who is not the box’s own screen or a device paired as the owner.
Media typeapplication/json
object
error
required
What went wrong
string
Example
{ "error": "only the box's own screen or the owner's paired device can do this"}GurtOS is open source under the Apache License 2.0.Source code on GitHub.