Update a site
PATCH
/v1/sites/:idAuth: Secret API key (rk_sk_)
Update site name, domain, or widget config. Bumps configVersion for live widget refresh.
Path parameters
| Name | Type | Description |
|---|---|---|
idrequired | uuid | Site ID |
Body parameters
| Name | Type | Description |
|---|---|---|
name | string | Display name |
domain | string | Primary domain |
widgetConfig | object | Widget configuration |
Responses
200Updated site
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"name": "My Store",
"domain": "store.example.com",
"publicKey": "rk_pk_live_abc123",
"createdAt": "2026-01-01T00:00:00Z"
}