Update inventory item
PUT
/inventory/
const url = 'https://api.occulights.com/api/v1/inventory/';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"companyId":"example","dateClaimed":"example","hardwareVersion":"example","macAddress":"example","standalone":true,"type":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.occulights.com/api/v1/inventory/ \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "companyId": "example", "dateClaimed": "example", "hardwareVersion": "example", "macAddress": "example", "standalone": true, "type": "example" }'Updates an existing inventory item
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Unit ID
Request Body
Section titled “Request Body”Unit object
Media typeapplication/json
object
companyId
string
dateClaimed
string
hardwareVersion
PCB hardware revision, e.g. “1.0.0”. Set when the unit is added to inventory; not settable once the unit has been claimed.
string
macAddress
string
standalone
boolean
type
string
Example generated
{ "companyId": "example", "dateClaimed": "example", "hardwareVersion": "example", "macAddress": "example", "standalone": true, "type": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
hardwareVersion
PCB hardware revision (e.g. “1.0.0”, “1.0.1”), recorded when the unit is added to inventory. Copied onto tenantdb.Light at claim time, since different revisions require different firmware builds.
string
id
string
macAddress
string
orgId
string
standalone
boolean
type
string
Example
{ "type": "hub"}Bad Request
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Unauthorized
Media typeapplication/json
string
Example generated
exampleConflict
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Internal Server Error
Media typeapplication/json