Delete inventory item
DELETE
/inventory/{id}
const url = 'https://api.occulights.com/api/v1/inventory/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/inventory/example \ --header 'Authorization: <Authorization>'Deletes an inventory item (root company only)
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Unit ID
Responses
Section titled “Responses”OK
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
exampleNot Found
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Internal Server Error
Media typeapplication/json