Submit device inventory
Deprecated
PUT
/api/devices/v1/inventory/device/attributes
const url = 'https://example.com/api/devices/v1/inventory/device/attributes';const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
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://example.com/api/devices/v1/inventory/device/attributes \ --header 'Authorization: Bearer <token>'Device inventory update endpoint.
The device sends inventory attributes in the body: [ {“name”: “device_type”, “value”: “raspberrypi4”}, {“name”: “artifact_name”, “value”: “release-1.0”}, {“name”: “mac_address_eth0”, “value”: “00:11:22:33:44:55”}, … ]
This endpoint auto-registers devices if they don’t exist.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
example