Update Site Metadata
Update a site’s metadata without publishing a new version. Use this to change the title, description, add password protection, or set an expiry.Path Parameters
The site slug (e.g.,
bright-canvas-a7k2).Headers
| Header | Required | Description |
|---|---|---|
Content-Type | Yes | application/json |
Authorization | Yes | Bearer sh_live_... |
Request Body
All fields are optional. Only include the fields you want to change. Set a field tonull to clear it.
Page title shown in browser tab and social previews.
Meta description for social previews.
Path to an existing file in the site to use as the Open Graph image.
Set a password to protect the site. Set to
null to remove protection. Passwords are hashed server-side.Set an expiry in seconds from now. Set to
null to make permanent.