put https://partner.gupshup.io/partner/app//optinMessagePreference
Use this API to enable/disable the optin message preference
Parameters
Parameters | Value | Description |
---|---|---|
Authorization | {{PARTNER_APP_TOKEN}} | Access Token for the application |
appId | {{APP_ID}} | Unique Identifier for Gupshup App |
enableOptinMessage | true/false | Enable or disable Gupshup's automated opt-in message for an app. Possible values: True, False |
Sample Request
curl --location --request PUT 'https://partner.gupshup.io/partner/app/{{APP_ID}}/optinMessagePreference' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'enableOptinMessage=true'
Sample Response
{
Status: 202 Accepted
}