Sites

Rename site domain

Renames the tracked domain of a site while keeping its analytics history. Requires site.manage_data (site admin or higher). The tracker only matches hits for the new domain after the rename.

put/api/sites/{id}/domain

Request

  • Base URL: https://demo.hitkeep.com
  • URL: https://demo.hitkeep.com/api/sites/{id}/domain
  • Auth: one of:
    • API key in cookie hk_token
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

idstring uuid required

Request body

domainstring required

Apex domain or subdomain without protocol, port, path, query, fragment, or www prefix (e.g. example.com or blog.example.com).

Response

Renamed site

created_atstring date-time
data_retention_daysinteger
domainstring
idstring uuid
user_idstring uuid

Changes

No recorded changes to this operation across all 1 revision of this API.