Rivier/ Reference/ analytics

Change an external site

patch/analytics/external/sites/{id}

Change an external site: its name, hostnames, page kinds, events or steps, or give it a new key (the old one stops working).

Before you call

Credential
Authorization: Bearer $KEY
Scope
analytics:write
Graphql
Mutation.analyticsExternalSiteUpdate
Sdk
analytics.externalSite.update
Cli
analytics external site update

Parameters

  • idstringrequired
    In the path

Request bodyapplication/json, required

  • namestring
    At most 80 characters.
  • rotateKeyboolean
  • hostslist of string
  • pageKindslist of object
    Default: [].
    • matchstringrequired
      At most 200 characters.
    • kindstringrequired
      One of: home, product, article, pricing, checkout, contact, support, account, other.
  • eventslist of string
    Default: [].
  • stepslist of object
    Default: [].
    • pagestring
      At most 200 characters.
    • eventstring
      Pattern: ^[a-z][a-z0-9_]{0,39}$.
  • ownerModestring
    One of: M0, M1, M2.
  • signalBehaviourstring
    One of: totals_only, nothing.

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown