I created a tool to fiddle around with the Microsoft Defender for Identity API.
For more information please check:
https://thalpius.com/2022/12/08/microsoft-defender-for-identity-sensordeployment-api/
https://thalpius.com/2022/12/08/microsoft-defender-for-identity-json-api/