Delete room
DELETE
/rooms/{id}
const url = 'https://api.occulights.com/api/v1/rooms/example';const options = {method: 'DELETE', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.occulights.com/api/v1/rooms/example \ --header 'Authorization: <Authorization>'Deletes a room by ID
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Room ID
Responses
Section titled “Responses”Room deleted
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}No Content
Media typeapplication/json
Bad Request
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Unauthorized
Media typeapplication/json
string
Example generated
exampleInternal Server Error
Media typeapplication/json