Set the default fragment
Sets the site default: the fragment a page resolves to when no routing rule matches. It must be an active fragment of this site. Repeatable: the same body answers 200 with the same state.
Authorizations
A management token: ds_mgmt_ followed by 40 lowercase hexadecimal characters, created by an owner in Settings → Management tokens. Opaque: send it as is, in the Authorization header only.
Path Parameters
The site's bare domain, normalized like the console form (trimmed, lowercase). www.news-site.example and news-site.example are two different sites. A domain that is not a site of this organisation — absent, another organisation's, or not a valid domain — is 404, except on PUT /v1/sites/{domain}, which creates the site and answers 422 for an invalid domain.
Body
Send Content-Type: application/json and a JSON object of at most 262,144 bytes.
The reference of an active fragment of this site, as a plain JSON string (not URL-encoded), exact and case-sensitive: it is not trimmed.
^[A-Za-z0-9/_.:-]{1,200}$Response
The site, with its new default.
A site: a domain the organisation publishes on.
Stable site id (sit_…).
The organisation id (acc_…).
The bare domain, normalized: lowercase, without scheme, path or port. www. and the apex are two sites.
Display name, or null.
The site icon. Null for a site created through this API until the site is first opened in the console.
The site default fragment id (frg_…), or null when the site has no default.
The site default fragment reference; null when the site has no default, or when that fragment has no reference.
Creation time, UTC.
