Disable button click analytics

Use this API to disable button click analytics for a template

Request Parameters

KeyDescriptionValueTypeRequired/OptionalConstraints
AuthorizationAccess Token for the application{{PARTNER_APP_TOKEN}}StringRequiredShould be a valid Partner App Access Token
APP_IDApp ID to fetch the access token{{APP_ID}}StringRequiredThe ID should be a valid app ID of Gupshup
templateIdgs-template id of template{{TEMPLATE_ID}}StringRequired
disableflag to disable or enable button click analyticsTrue/FalseBooleanRequired

Sample Request

curl --location --request POST '{{BASE_URL}}/partner/app/{{APP_ID}}/template/analytics/buttonclick' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'templateId={{TEMPLATE_ID}}' \
--data-urlencode 'disable=false'

Sample Response

{
    "status": "success"
}

Status Codes

Status CodeResponseComment
Success
200{ "stauts": "sucess" }Successful response
Error
401{ "status": "error", "message": "Unauthorised access to the resource. Please review request parameters and headers and retry" }
Language
Click Try It! to start a request and see the response here!