Wipe a Lusor Phone (destructive)
Destructive and irreversible. Wipes the phone back to a freshly
provisioned state: every installed app, account sign-in, file and
setting on it is erased, and a GPS location set on it is cleared.
The phone stays in its workspace and on the plan. Answers 202;
follow the progress with GET …/reset (minutes).
Refused with 409 while the phone runs a session (device_busy; stop
it first) or is already being wiped (reset_in_progress). An API key
may wipe phones in its own workspace; a signed-in user needs the
admin role. Confirm with the person you act for before calling.
Retries: not safe once the wipe has finished: a later call is a new wipe. On a lost response (502 reset_outcome_unknown), read GET …/reset before calling again.
curl --request POST \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/reset \
--header 'X-Api-Key: <api-key>'const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/reset"
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"device_id": "<string>",
"attempt": 123,
"state": "accepted"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
Path Parameters
Was this page helpful?
curl --request POST \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/reset \
--header 'X-Api-Key: <api-key>'const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/reset', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/reset"
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"device_id": "<string>",
"attempt": 123,
"state": "accepted"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
