Remove all registrations for device (v2)
Bulk modification of a device, allowing for removal of all registered channels at once, for a given device, without specifying all of the channels.
Returns array with two elements:
- Array Element 0 - Integer – 1 or 0, where 1 is success, and 0 is error.
- Array Element 1 - String – Description of the success or error, if available. e.g "Removed Device"
| Path Parameters |
|---|
sub_key string — REQUIREDYour app's subscribe key from Admin Portal. |
devices-apns2 string — REQUIREDID/Token of the device. Example:
|
| Query Parameters |
|---|
environment string — REQUIREDPossible values: [ Environment of the mobile application. Example:
|
topic string — REQUIREDBundle ID of the mobile application. Example:
|
uuid string — REQUIREDA UTF-8 encoded string of up to 92 characters used to identify the client. Example:
|
auth stringString which is either the auth key (Access Manager legacy) or a valid token (Access Manager) used to authorize the operation if access control is enabled. Example:
|
signature stringSignature used to verify that the request was signed with the secret key associated with the subscriber key. If Access Manager is enabled, either a valid authorization token or a signature are required. See Access Manager documentation for details on how to compute the signature. |
timestamp integerUnix epoch timestamp used as a nonce for signature computation. Must have no more than ± 60 seconds offset from NTP. Required if |
| Responses | ||
|---|---|---|
200OK
| ||
400Bad Request
| ||
403Not Enabled
| ||
500Server Error
| ||
503Service Unavailable
|
sub_key*devices-apns2*environment*topic*uuid*authsignatureIf Access Manager is enabled, either a valid authorization token or a signature are required.
See Access Manager documentation for details on how to compute the signature.
timestampRequired if
signature parameter is supplied.message"Invalid Subscribe Key"errortrueservice"Access Manager"status400error"Use of the mobile push notifications API requires Push Notifications which is not enabled for this subscribe key. Login to your PubNub Dashboard Account and enable Push Notifications. Contact support@pubnub.com if you require further assistance."error"Internal Server Error"error"Failed to retrieve account configuration"