Enable or disable template analytics setting

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

KeyDescriptionValuesData TypeRequired/Optional
appIdIdentifier of the WhatsApp app the call acts on.6f414190-d45c-4671-bca1-fb6c3018cb13StringRequired

Query parameters

KeyDescriptionValuesData TypeRequired/Optional
enableWhether the setting is turned on.trueBooleanRequired
enableOnUiWhether the setting is also shown in the portal UI.trueBooleanOptional

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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Identifier of the WhatsApp app the call acts on.

Query Params
boolean
required

Whether the setting is turned on.

boolean
Defaults to false

Whether the setting is also shown in the portal UI.

Responses

Language
Credentials
Bearer
Universal Token (UT)
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json