Set collection access
set_collection_accessSet who can read a collection from the published page and pause/resume writes. access_mode: 'public_read' (anyone reads: a scoreboard/guestbook) or 'append_only' (visitors append but only the owner reads: a contact form / waitlist; submissions are never readable by other visitors). On the marketing site public_read means anyone on the internet, so it is refused unless you pass records_carry_no_personal_detail true, which you answer with the owner, and the waitlist collection stays append_only there whatever is asked. writes_paused stops new appends. Needs Pro; scoped to a site you own.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site that owns the collection | |
| collection | Yes | The collection name | |
| access_mode | No | 'append_only' for forms/waitlists; 'public_read' for shared lists | |
| 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). | |
| writes_paused | No | Pause (true) or resume (false) appends | |
| records_carry_no_personal_detail | No | Required to set public_read on the marketing site: confirm with the owner, in words, that these records carry no name, email or other personal detail, because public_read there means anyone on the internet can read every one of them. |