sites

Rename a site, change its web address, or both.

Absent fields are left alone. A subdomain is unique across the whole service, not just this account, so a taken one is refused rather than queued.

patch/api/v1/sites/{id}

Request

  • Base URL: https://harvis.dev
  • URL: https://harvis.dev/api/v1/sites/{id}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie better-auth.session_token

Path parameters

idstring required

Request body

namestring

A label for the dashboard; not shown to visitors.

subdomainstring

5–63 lowercase letters, numbers or hyphens. The site moves to it immediately.

Response

Rename a site, change its web address, or both.

Changes

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