put https://partner.gupshup.io/partner/app//block
Use this API to block the user.
"Works for On-Prem Only"
Parameters
Parameters | Value | Description |
---|---|---|
Authorization | {{PARTNER_APP_TOKEN}} | Access Token for the application |
APP ID | {{APP_ID}} | Unique Identifier for Gupshup App |
phone | 91xxxxxxx | Phone number |
isBlocked | true/false | Block app user |
Sample Request
curl --location --request PUT 'https://partner.gupshup.io/partner/app/{{APP_ID}}/block' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'phone={{PHONE_NUMBER}}' \
--data-urlencode 'isBlocked=false'
Sample Response
{
"status": "success"
}