delete https://partner.gupshup.io/partner/app//subscription/
Use this API to delete specific subscription for an app
Request Parameters
Key | Value | Description | Data Types | Require/Optional | Constraints |
---|---|---|---|---|---|
Authorization | {{PARTNER_APP_TOKEN}} | Partner app access token issued post partner login | String | Required | Should be a valid Partner app access token belonging to the passed appId |
appId | {{App_ID}} | App ID for the app to be deleted | String | Required | Valid app ID |
SUBSCRIPTION_ID | 2xxxx | Subscription ID | String | Required | Id of the subscription to be deleted |
Sample Request
curl --location --request DELETE 'https://partner.gupshup.io/partner/app/{{APP_ID}}/subscription/{{SUBSCRIPTION_ID}}' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}'
Sample Response
Status Codes
Status Code | Response | Comments |
---|---|---|
Success | ||
204 | Success when subscriptions are deleted. No content. | |
Error | ||
400 | { "status": "error", "message": "API key is not associated with partner" } | Error with respect to API Key |
429 | { "status": "error", "message": "Too Many Requests" } | Rate limit exceeded |