Update a site
unulu_update_siteUpdate an existing site. All fields are optional — only provided fields are changed. Links replace the entire array (omit to keep existing). Before updating, always call unulu_get_state first to read the current links and their ids — do not guess link ids. Authorization depends on site lifecycle: X-Claim-Token header for ephemeral (pre-claim) sites, X-Edit-Token header for claimed (post-claim) sites. If neither token is available and the site is claimed, use requestEditAccess to obtain an edit_token. If you created the site in this conversation, you already have the claim_token — use it directly. Returns the full updated site state. Keep iteration fast — apply changes immediately without re-confirming minor edits unless ambiguous. Accepts a site ID, a full URL (e.g. https://abc123.unu.lu), or a bare hostname (e.g. abc123.unu.lu).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bio | No | Short bio in first person, 1–3 sentences, capturing what's distinctive — no filler phrases like 'passionate about' or 'dedicated to'. If you lack context, write something short and honest rather than generic. Supports markdown. | |
| name | No | Display name / heading for the site | |
| links | No | Replaces all links — omit to keep existing links unchanged. Order matters — place the most important link first. Well-known social links display branded icons automatically — omit leading_icon for these. | |
| site_id | Yes | Site ID, full URL (e.g. https://abc123.unu.lu), or bare hostname (e.g. abc123.unu.lu) | |
| skin_id | No | Optional theme skin. When omitted, the live site includes a visual theme chooser — prefer omitting so the user can pick their own. | |
| claim_url | No | Legacy parameter — accepts a full Claim URL from older create-site responses. The server extracts the claim_token automatically. Prefer claim_token directly. | |
| edit_token | No | JWT token for claimed sites (alternative to X-Edit-Token header) | |
| claim_token | No | HMAC token for ephemeral sites (alternative to X-Claim-Token header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bio | No | ||
| url | Yes | ||
| name | Yes | ||
| links | Yes | ||
| site_id | Yes | ||
| skin_id | No | ||
| expires_at | No |