Give a record to a customer
assign_record_ownerAssign a collection record to one of the site's customers and/or set who can see it: "customer" shows it to its owner in their portal, "private" keeps it staff-only, "public" puts it on the site. The customer must already be a contact on this site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site the collection belongs to | |
| record_id | Yes | The record's id (from list_collection_items or list_owned_records). | |
| 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. | |
| visibility | No | "customer" = shown to its owner in their portal, "private" = staff only, "public" = on the site. | |
| owner_email | No | The customer to give it to, by email. | |
| owner_contact_id | No | Or by contact id. |