PUT /API/RECORDINGNODE/{MACHINESID}
Report a heartbeat from a client recording node.
When available, server request(s) are located in the result body text.
JSON BODY SCHEMA
{
"servername": {"type": "string"},
"operatingsystem": {"type": "string"},
"timezoneid": {"type": "string"},
"cpu": {"type": "string"},
"uptimeseconds": {"type": "integer"},
"currentdatetimeutc": {"type": "string"},
"totalmemorymb'": {"type": "integer"},
"usedmemorymb": {"type": "integer"},
"totalhddmb": {"type": "integer"},
"usedhddmb": {"type": "integer"},
"uploadspending": {"type": "integer"},
"adapters": {
"type": "array",
"items": {
"name": {"type": "string"},
"status": {"type": "string"},
"lastpacketdatetimeutc": {"type": "string"},
"lastvoippacketdatetimeutc": {"type": "string"}
}
},
"handsetregistrations": {
"type": "array",
"items": {
"macaddress": {"type": "string"},
"ipaddress": {"type": "string"},
"displayname": {"type": "string"},
"phonenumber": {"type": "string"},
"useragent": {"type": "string"}
}
}
}
RESULT CODE
| 200 | OK |
|---|---|
| 400 | servername is empty sid is empty invalid currentdatetimeutc |
| 401 | Unauthorized |
| 406 | SSL must be used |
| 500 | Server Error |
EXAMPLE REQUEST
Example;-
PUT
https://api.calln.com/api/recordingnode/132974698372549082734497632
Headers:
Content-Type: application/json; charset=utf-8
Content-Length: {body length in bytes}
Body:
{'servername':'testpc','operatingsystem':'Windows Server 2008 R2 64-bit','cpu':'Intel Xeon 5220','uptimeseconds':328653,'currentdatetimeutc':'2013-10-09 15:23:54','totalmemorymb':8192,'usedmemorymb':1024,'totalhddmb':100000,'usedhddmb':8500, 'uploadspending':0}
Result;-
200 (OK)
Body:
<empty>
USING CURL
curl "https://api.calln.com/api/recordingnode/{machinesid}" -H "Authorization: Basic username:password | base64" -X PUT -d 'servername':'testpc','operatingsystem':'Windows Server 2008 R2 64-bit','cpu':'Intel Xeon 5220','uptimeseconds':328653,'currentdatetimeutc':'2013-10-09 15:23:54','totalmemorymb':8192,'usedmemorymb':1024,'totalhddmb':100000,'usedhddmb':8500, 'uploadspending':0

