Import enrolled devices as assets
POST
/v1/assets/sync-hosts
const url = 'https://api.varman.io/v1/assets/sync-hosts';const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/assets/sync-hosts \ --header 'X-API-Key: <X-API-Key>'Adds every enrolled device of the organization as a hardware asset owned by the device user. Devices imported before get their name and model refreshed. Returns imported, updated and unchanged counts.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string