Set site data
set_site_dataUse when the page should read a setting or value the owner controls (a price, a deadline, a switch). Sets a key-value item in a site's data store (SnapHost Data). KV is mutable config/state the published page reads. value is any JSON. Scoped to a site you own.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The item key within the namespace | |
| value | Yes | Any JSON value to store (max 256 KB) | |
| site_id | Yes | The site to write to | |
| namespace | Yes | Grouping for the key, e.g. "config" | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). |