sites

Update site

put/api/v1/sites/{subdomain}

Request

  • Base URL: https://slatehut.com
  • URL: https://slatehut.com/api/v1/sites/{subdomain}
  • Auth: HTTP bearer

Request body

titlestring

Site name (required non-empty when sent)

descriptionstring

Default description when pages do not override

socialImageUrlstring
faviconUrlstring
headScriptsstring

Custom head HTML (script/meta); sanitized server-side

expectUpdatedAtinteger

If set, must match current rowUpdatedAt from GET or save fails with 409 unless force is true.

forceboolean

When true, skip expectUpdatedAt check.

gaMeasurementIdstring

Google Analytics 4 measurement ID (e.g. G-XXXXXXXX).

metaPixelIdstring

Meta Pixel numeric ID.

noIndexboolean

When true, published site is not indexed by search engines.

allowSubdomainIndexingboolean

When true, the *.slatehut.com subdomain URL may be indexed (custom domains unaffected).

hideSlatehutBadgeboolean

Paid plans only: hide the floating SlateHut badge on the live site. Ignored on Free.

Response

Updated

successboolean

Changes

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