Working on a project. Currently, we don’t allow our site techs access to deleted items due to some issues we had in the past. I’m trying to create a tool that will allow them to look for a specific device and, eventually, leverage the /undelete API endpoint to do what it says on the box.
I’m running into problems finding an API endpoint that will let me locate the device in question, however. When you use the search endpoints on a device that is deleted they are unable to locate the device. The undelete endpoint requires the AssetId, which is problematic because I’m not finding a way to get the AssetId other than knowing it beforehand.
Additionally, it looks like there is an /assets/deleted endpoint which, I’m assuming, would return a list of all the deleted devices, but it returns a 404 when I send a GET request.
Anyone have any ideas? Am I doing something wrong? Any workarounds?
Best answer by curtis.bohlmeyerView original