Remove the current user and device as a subscriber of Cloud Message (CM). The will prevent the user from receiving push notifications on the device.

URL Parameters

NameDescriptionLocationRequiredDefault Value
subscriptionIdUnique identifier of the subscription (response from POST /users/me/cm/subscriptions).queryYes
deviceIdUnique identifier of the device (response from POST /users/me/cm/subscriptions).queryYes

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

OAuthAuthorizer

Example Request

URL

For Production: DELETE https://spacesapis.avayacloud.com/api/users/cm/subscriptions?subscriptionId=12344444444&deviceId=d2f9e527-c119-4ee5-c275-d5146f43240b
For Staging: DELETE https://loganstagingapis.esna.com/api/users/cm/subscriptions?subscriptionId=12344444444&deviceId=d2f9e527-c119-4ee5-c275-d5146f43240b

Headers

Authorization: "jwt eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example Response

{
    "deviceId": "d6d843bf3-ab98-49f5-9d34-23b4822bf05a",
    "dataOnly": false,
    "type": "firebase",
    "scope": [],
    "_id": "5f203973c5a013266da8c5a4",
    "__v": 0,
    "status": "removing",
    "created": "2020-07-28T14:42:59.911Z",
    "id": "5f203973c5a013266da8c5a4"
}