我想执行 customTextNotification 操作,但收到错误 400 错误请求。 而且我无权访问图形资源管理器和接收消息的测试设备。我所拥有的只是 Java 后端的代码和日志。
这是详细信息。
网址 POST beta/deviceManagement/managedDevices/executeAction
身体 {“actionName”:“customTextNotification”,“deviceIds”:[“此处为单个设备 ID”],“notificationTitle”:null,“notificationBody”:“BF 测试 - 12/8/2023 - 7:34AM EST”,"设备名称":null}
我在代币中看到的角色
当我查看文档时(https://learn.microsoft.com/en-us/graph/api/intune-devices-managementdevice-executeaction?view=graph-rest-beta) 它并没有真正告诉我是否需要该字段。也许我错过了一个领域。
我想知道运行 customTextNotification 需要什么。
终于有人在他们的 Azure 服务器上测试了。 问题是“notificationTitle”是必需的。 只需要为其添加值,400 Bad Request 就消失了。