Devices
Take a Lusor Phone off its static IP
Moves the phone back to the shared residential route. Its static IP is kept, unrenewed, to the end of its paid term; nothing is refunded. An API key may use phones in its own workspace; a signed-in user needs the admin role.
Retries: safe: a phone already off its static IP answers disabled.
DELETE
/
v1
/
workspaces
/
{workspaceId}
/
devices
/
{deviceId}
/
static-ip
Take a Lusor Phone off its static IP
curl --request DELETE \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip \
--header 'X-Api-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip', 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}/static-ip"
headers = {"X-Api-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"data": {
"state": "active",
"static": {
"state": "active",
"country": "<string>",
"publicIp": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"operationId": "<string>"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Path Parameters
Was this page helpful?
⌘I
Take a Lusor Phone off its static IP
curl --request DELETE \
--url https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip \
--header 'X-Api-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/workspaces/{workspaceId}/devices/{deviceId}/static-ip', 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}/static-ip"
headers = {"X-Api-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"data": {
"state": "active",
"static": {
"state": "active",
"country": "<string>",
"publicIp": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"operationId": "<string>"
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
