Deactivate room
curl --request POST \
--url https://api.noux.app/api/v1/room/{id}/deactivate \
--header 'Authorization: Bearer <token>' \
--header 'authorization: <authorization>'const options = {
method: 'POST',
headers: {authorization: '<authorization>', Authorization: 'Bearer <token>'}
};
fetch('https://api.noux.app/api/v1/room/{id}/deactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.noux.app/api/v1/room/{id}/deactivate"
headers = {
"authorization": "<authorization>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"roomId": "<string>",
"active": true
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}Rooms
Deactivate room
Deactivate a room so visitors cannot access it. Idempotent when the room is already deactivated. Authenticate using Bearer token with your Noux API key.
POST
/
api
/
v1
/
room
/
{id}
/
deactivate
Deactivate room
curl --request POST \
--url https://api.noux.app/api/v1/room/{id}/deactivate \
--header 'Authorization: Bearer <token>' \
--header 'authorization: <authorization>'const options = {
method: 'POST',
headers: {authorization: '<authorization>', Authorization: 'Bearer <token>'}
};
fetch('https://api.noux.app/api/v1/room/{id}/deactivate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.noux.app/api/v1/room/{id}/deactivate"
headers = {
"authorization": "<authorization>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text){
"roomId": "<string>",
"active": true
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}Authorizations
Noux API key from your integration settings
Headers
Bearer token with Noux API key
Path Parameters
The room ID