Account

Update analytics settings

PATCH
/v1/account/analytics

Switches dashboard session replay off for this account, or back on. Has no effect on an account flagged internal in the admin panel, which never records whatever this is set to.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Request Body

application/json
  1. body
replayEnabled*boolean

False stops every future dashboard recording

Response Body

Success

application/json
  1. response

Success

replayEnabled*boolean

Whether the dashboard may send PostHog session replay for this account - off for every account flagged internal in the admin panel, whatever this reseller's own setting is, and otherwise this reseller's own choice. A rejected cookie banner or a deployment with no PostHog key configured sends nothing either way, which this field does not know about

curl -X PATCH "https://example.com/v1/account/analytics" \  -H "Content-Type: application/json" \  -d '{    "replayEnabled": true  }'
{  "replayEnabled": true}