Skip to main content
PUT
Write a website file onto a review branch

Authorizations

X-API-Key
string
header
required

Company API key - scoped to a specific company. Generate from the Integrations page in your dashboard.

Path Parameters

websiteId
string
required

Body

application/json

Write a website file

companyId
string
required

Company ID that owns the website

path
string
required

Absolute file path within the site, e.g. /pages/about.html

content
string
required

Full new file content

branch
string
required

Review branch to read from or write to. Omit (or "main") to read the live site. To propose fixes, write files to a NEW branch name (e.g. "seo-optimizer-2026-09-03") — the branch is created on first write and is reviewed and approved by the owner. Writing to "main" is refused. Required here and must not be "main".

Response

{ok: true}

ok
boolean