Update Optin Message Preference

Use this API to enable/disable the optin message preference

Parameters

ParametersValueDescription
Authorization{{PARTNER_APP_TOKEN}}Access Token for the application
appId{{APP_ID}}Unique Identifier for Gupshup App
enableOptinMessagetrue/falseEnable 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

    }
Language
Click Try It! to start a request and see the response here!