Record Device Heartbeat
curl --request POST \
--url https://api.zerodrive.dev/v1/devices/heartbeat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device_id": "<string>",
"hostname": "<string>",
"os": "<string>",
"free_gb": 123,
"mount_status": "<string>",
"mount_path": "<string>",
"version": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
device_id: '<string>',
hostname: '<string>',
os: '<string>',
free_gb: 123,
mount_status: '<string>',
mount_path: '<string>',
version: '<string>'
})
};
fetch('https://api.zerodrive.dev/v1/devices/heartbeat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/devices/heartbeat"
payload = {
"device_id": "<string>",
"hostname": "<string>",
"os": "<string>",
"free_gb": 123,
"mount_status": "<string>",
"mount_path": "<string>",
"version": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Record Device Heartbeat
Record disk space, mount state, and heartbeat from a connected device.
POST
https://api.zerodrive.dev
/
v1
/
devices
/
heartbeat
Record Device Heartbeat
curl --request POST \
--url https://api.zerodrive.dev/v1/devices/heartbeat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"device_id": "<string>",
"hostname": "<string>",
"os": "<string>",
"free_gb": 123,
"mount_status": "<string>",
"mount_path": "<string>",
"version": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
device_id: '<string>',
hostname: '<string>',
os: '<string>',
free_gb: 123,
mount_status: '<string>',
mount_path: '<string>',
version: '<string>'
})
};
fetch('https://api.zerodrive.dev/v1/devices/heartbeat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/devices/heartbeat"
payload = {
"device_id": "<string>",
"hostname": "<string>",
"os": "<string>",
"free_gb": 123,
"mount_status": "<string>",
"mount_path": "<string>",
"version": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
