Enable analytics data gathering

This function enables or disables Interface Analytics.

Authorizations:
query Parameters
enabled
required
integer

Whether to enable Interface Analytics.

  • 1 — Enable.
  • 0 — Disable.
Enum: 0 1
Example: enabled=1

Responses

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  participate_in_analytics \
  enabled='1'

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "participate_in_analytics",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}