Delete light
DELETE
/lights/{id}
const url = 'https://api.occulights.com/api/v1/lights/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/lights/example \ --header 'Authorization: <Authorization>'Deletes a specific light by its ID
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Light ID
Responses
Section titled “Responses”Light deleted
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}No Content
Media typeapplication/json
Invalid light ID
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Unauthorized
Media typeapplication/json
string
Example generated
exampleLight not found
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Internal Server Error
Media typeapplication/json