post
https://partner.gupshup.io/partner/bizgate/app//template-analytics/metrics/settings
Turns template analytics collection on or off for an entire app and optionally exposes the resulting metrics on the portal UI.
Request parameters
Path parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| appId | Identifier of the WhatsApp app the call acts on. | 6f414190-d45c-4671-bca1-fb6c3018cb13 | String | Required |
Query parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| enable | Whether the setting is turned on. | true | Boolean | Required |
| enableOnUi | Whether the setting is also shown in the portal UI. | true | Boolean | Optional |
Sample cURL — Enable or disable template analytics setting.
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/app/6f414190-d45c-4671-bca1-fb6c3018cb13/template-analytics/metrics/settings?enable=true&enableOnUi=true' \
--header 'Authorization: Bearer <UT>' \
--header 'Accept: application/json'Sample success response (200)
{
"status": "success",
"data": {
"id": "102290129340398"
}
}Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…