DELETE /events/notifications/{pusher_type}/subscriptions/{subscription_ID}

Use this method to delete a specific subscription.

Note: This API requires Lenovo XClarity Administrator v1.3.0 or later.

Authentication

Authentication with user name and password is required.

Request URL

DELETE https://{management_server_IP}/events/notifications/{pusher_type}/subscriptions/{subscription_ID}
where
  • {pusher_type} is the type of push notification service. This can be one of the following values.

    • AndroidPusher. Google device push service

    • iOSPusher. Apple device push service

    • WebSocketPusher. WebSocket service

    Tip:
    • Because the subscription ID is unique, specifying the type of push notification service is optional.

    • You can delete the specified subscription even if it does not match the specified type of push notification service.

  • {subscription_ID} is the UID of the subscription to be retrieved. To obtain the subscription UID, use the GET /events/notifications/subscriptions method.

Query parameters

None

Request body

None

Response codes

Code Description Comments
200 OK The request completed successfully.
400 Bad Request A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
401 Unauthorized The user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body.
500 Internal Server Error An internal error occurred. A descriptive error message is returned in the response body.

Response body

None