Set primary domain
POSThttps://api.butterix.com/v1/sites/:site/domains/:domain/primary
Requires the admin role. Canonical URLs, the sitemap, llms.txt, and .md pages switch to this domain, and the live version is redeployed automatically. The domain must be verified and its HTTPS certificate active.
Authentication
Authorization
An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.
biti_session
The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.
Path parameters
Response
Primary domain