Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Rename site

PATCHhttps://api.butterix.com/v1/sites/:site

Requires the admin role. The subdomain (slug) can't be changed after creation.

Authentication

AuthorizationBearer

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_sessionstring

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

sitestringRequired

Site slug or id

Request

This endpoint expects an object.
namestringOptional

Response

Site details
idstringOptional
slugstringOptional
namestringOptional
urlURLOptional
sourceTypeenumOptional

Content source: hosted repository, external Git repository, or CLI upload

Allowed values:
statusenumOptional

Status of the latest deployment; none when there isn't one

Allowed values:
updatedAtintegerOptional
pageCountintegerOptional

Number of pages in the production deployment

orgSlugstringOptional
gitobjectOptional

Present when a Git repository is connected

urlstringOptional
branchstringOptional
hasTokenbooleanOptional
webhookUrlstringOptional
webhookSecretstringOptional
productionobjectOptional
idstringOptional
siteIdstringOptional
kindenumOptional
Allowed values:
statusenumOptional
Allowed values:
sourcestringOptional

cli (upload), hosted (hosted repository), or git

branchstringOptional
commitShastringOptional
messagestringOptional
createdByobjectOptional

Who triggered it; with an API key, the person who created the key

idstringOptional
namestringOptional
apiKeyobjectOptional

The name, start and end of the key, when triggered with an API key (CLI / CI)

namestringOptional
prefixstringOptional

First 10 characters of the key

suffixstringOptional

Last 10 characters of the key

errorstringOptional

Reason for failure

pageCountintegerOptional
sizeBytesintegerOptional
durationMsintegerOptional
urlURLOptional

Present after success. Production deployments have the site's URL; previews use a <site>--<last 8 characters of the id> subdomain

isCurrentbooleanOptional

Whether this is the current production deployment

createdAtintegerOptional
finishedAtintegerOptional
domainslist of objectsOptional
domainstringOptional
verifiedbooleanOptional
primarybooleanOptional

Whether this is the primary domain

verifyRecordobjectOptional

TXT record to add

type"TXT"Optional
namestringOptional
valuestringOptional
cnamestringOptional

CNAME target

createdAtintegerOptional
accessobjectOptional
modeenumOptional
Allowed values:
aiobjectOptional
enabledbooleanOptional
providerenumOptional
Allowed values:
modelstringOptional
hasKeybooleanOptional

Whether a site key is set

keyMaskedstringOptional
platformKeyAvailablebooleanOptional

Whether the platform has a default key for the current provider

platformKeysmap from strings to booleansOptional

Whether each provider has a platform key

guidancestringOptional
effortenum or nullOptional

Reasoning effort; null uses the model's suggested level

Allowed values:
retentionDaysinteger or nullOptional

Days to keep questions; null keeps them forever

dailyLimitinteger or nullOptional

Maximum questions that call the model in a rolling 24 hours; null means no limit

agentbooleanOptional

Whether console AI is on

gapsbooleanOptional

Whether documentation gaps are sorted every day

supportobjectOptional

Contact when AI has no answer

enabledbooleanOptional
urlstringOptional
emailstringOptional
primaryUrlURLOptional

The address on the primary domain; the same as url without a custom domain

mcpUrlURLOptional