Let customers see or add to a collection
set_collection_portal_accessChoose what the site's own signed-in CUSTOMERS can do with one collection in their customer area (/account): see their own records ("owned") or nothing ("none"), open new ones themselves (customer_can_create), and which fields they may write (customer_writable_fields; everything else stays the business's). Each customer only ever sees records they own. The same setting as the collection's "Client portal access" in Mission Control; only what you name changes. Customer login must be on (update_customer_login_settings). For a complete support-ticket portal use set_up_support_portal instead. Visitors see it after the next publish.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>",
"collection_type": "<collection_type>"
},
"name": "set_collection_portal_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | The heading the customer area shows for this collection, e.g. "Your tickets". | |
| site_id | Yes | The site the collection belongs to | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| collection_type | Yes | The collection's slug, as list_collections returns it (e.g. "blog", "menu", "products", "faqs"). | |
| customer_access | No | "owned": each signed-in customer sees their own records of this collection in the customer area (/account). "none": staff only. | |
| allow_signed_out | No | Visitors who are not signed in may open one with their email (support tickets); it belongs to that email's customer and they get a sign-in link. Needs customer_can_create. | |
| customer_can_create | No | Signed-in customers may open new records here themselves (a ticket, a request). Implies "owned". | |
| customer_writable_fields | No | The ONLY fields a customer may write, by field name (list_collections shows them). Replaces the list; [] makes it read-only for customers. The record title is always theirs to set when they open one. |