IBM PushNotification:未找到 - 目标资源 'PushDevice' 不存在

IBM PushNotification: Not Found - The target resource 'PushDevice' does not exist

我尝试使用 API swagger PUT /apps/{applicationId}/devices/{deviceId}https://mobile.ng.bluemix.net/imfpush/#!/devices/put_apps_applicationId_devices_deviceId 。但是我有一条错误消息

{
  "code": "FPWSE0001E",
  "message": "Not Found - The target resource 'PushDevice' does not exist. Check the '23e107c7292d17a772914af05c23d10750613aaa' parameter."
}

请帮我说说你的想法

The application or the device doesn't exist

{
  "code": "FPWSE0001E",
  "message": "Not Found - Targeted resource 'PushApplication' does not exist. Check the 'UnknownApplication' parameter"
}

表示您提供的应用程序或设备不存在。

您似乎正在尝试从 REST API 更新设备注册,因此您需要通过获取列表来确保检查当前拥有的所有已注册设备当前设备:

GET /apps/{applicationId}/devices

我不确定你的具体用例是什么,但在大多数情况下,你不必更新设备注册,你需要的任何行为都将包含在客户端中开发工具包。 See the docs 获取更多信息。