post https://partner.gupshup.io/partner/app//template/analytics/buttonclick
Use this API to disable button click analytics for a template
Request Parameters
Key | Description | Value | Type | Required/Optional | Constraints |
---|---|---|---|---|---|
Authorization | Access Token for the application | {{PARTNER_APP_TOKEN}} | String | Required | Should be a valid Partner App Access Token |
APP_ID | App ID to fetch the access token | {{APP_ID}} | String | Required | The ID should be a valid app ID of Gupshup |
templateId | gs-template id of template | {{TEMPLATE_ID}} | String | Required | |
disable | flag to disable or enable button click analytics | True/False | Boolean | Required |
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 Code | Response | Comment |
---|---|---|
Success | ||
200 | { "stauts": "sucess" } | Successful response |
Error | ||
401 | { "status": "error", "message": "Unauthorised access to the resource. Please review request parameters and headers and retry" } |