I see several answers to other questions that reference how to do this via Powershell and I've tried to replicate this in a Python script using the REST API.
{"uris": ["swis://server1.com/Orion/Orion.Nodes/NodeID=110"], "properties": {"UnmanageFrom": "2023-08-23", "UnmanageUntil": "2024-08-22"}}
The request comes back with a 200 response, but the device doesn't become unmanaged
I'm collecting the URI using:
SELECT N.Uri
FROM Orion.Nodes AS N
WHERE Caption LIKE '%device%'
Any advice would be appreciated. I've got this working using the /Invoke/Orion.Node/Unmanage endpoint but would rather not send a request per device.
Edit: After looking again it appears to be setting all of the interfaces to unmanaged rather than the node itself.