Note: For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.

Push Device Subscription (DELETE)

Delete subscription by subscriptionId.

Description

Using the subscriptionId it unsubscribes the tag from the device. The call would not delete the device registration or the tag.

Method

DELETE

Path

/apps/applicationId/subscriptions/subscriptionId

Example

https://example.com:443/imfpush/v1/apps/myapp/subscriptions/mysubscription

Path Parameters

applicationId
The name or identifier of the application.
subscriptionId
The identifier of the subscription.

Header Parameters

Some header parameters are optional.

Accept-Language
(Optional) The preferred language to use for error messages. Default: en-US
Authorization
The token with the scope "subscriptions.write" and "push.application.<applicationId>" obtained using the confidential client in the format Bearer token. This parameter is mandatory.

Produces

application/json

Errors

401
Unauthorized - The caller is either not authenticated or not authorized to make this request.
404
The subscription with the specified subscriptionId is not found.
500
An internal error occurred.