Hi,
I want to use the Teamviewer API to automatically remove our machines from Teamviewer, i can see there is the devices endpoint /api/v1/devices with the parameter option for "name" that will return the device ID
However when I use that endpoint with a device name (https://webapi.teamviewer.com/api/v1/devices?parameters.name=DV00310) it just returns a full list of every machine in our organisation. I can see on the returned json that "name" isn't actually an option it returns, am I using this wrong?
"devices": [
{
"remotecontrol_id": "string",
"device_id": "string",
"userid": "string",
"alias": "string",
"groupid": "string",
"description": "string",
"online_state": 0,
"policy_id": "string",
"assigned_to": true,
"supported_features": "string",
"last_seen": "2022-10-18T10:07:33.519Z",
"teamviewer_id": "string"
}
]
}
Can someone point me in the right direction? My aim is to create a script that allows us to delete a device based on its hostname, I know you need the device ID to call the endpoint which is why I'm wanting to filter out the info based on the device name
Thank you,
Andrew