restricted: true and a null value (custom fields), or null and named in restricted_fields (dob, mobile, email, address).")}
${endpointCard("GET", "/beneficiaries/{id}", "Get a single Contact", true, [
{ name: "id", in: "path", type: "integer", required: true, desc: "Contact ID" }
], [
{ code: "200", cls: "response-2xx", desc: "Full Contact profile with all custom fields" },
{ code: "404", cls: "response-4xx", desc: "Not found" }
- ], "Opening a Contact this way is recorded in its Access Log, the audit trail of who has viewed it, under your name and marked as via the API (or via MCP when the Makerble MCP server sends X-Makerble-Client: makerble-mcp). Views less than 30 minutes apart are counted together. Use GET /beneficiaries when you only need to find or scan Contacts.")}
+ ], "Opening a Contact this way is recorded in its Access Log, the audit trail of who has viewed it, under your name and marked as via the API (or via MCP when the Makerble MCP server sends X-Makerble-Client: makerble-mcp). Views less than 30 minutes apart are counted together. Use GET /beneficiaries when you only need to find or scan Contacts. Fields hidden from you by Field Visibility come back with restricted: true and a null value (custom fields), or null and named in restricted_fields (dob, mobile, email, address).")}
${endpointCard("POST", "/beneficiaries", "Create a Contact", true, [], [
{ code: "200", cls: "response-2xx", desc: "Contact created" },
- { code: "422", cls: "response-4xx", desc: "Validation failed (name and owner_id are required)" }
- ], "Required fields: beneficiary.name, beneficiary.owner_id (User ID of the record owner). Submit custom field values as custom_fields: {\"field_id\": \"value\"}.")}
+ { code: "422", cls: "response-4xx", desc: "Validation failed (name and owner_id are required), or a field hidden from you by Field Visibility was sent" }
+ ], "Required fields: beneficiary.name, beneficiary.owner_id (User ID of the record owner). Submit custom field values as custom_fields: {\"field_id\": \"value\"}. Setting a field hidden from you by Field Visibility is refused with 422 and an errors list naming it.")}
${endpointCard("GET", "/beneficiaries/{beneficiary_id}/summary", "Get the AI summary of a Contact (SummaryMaker)", true, [
{ name: "beneficiary_id", in: "path", type: "integer", required: true, desc: "Contact ID" }
], [
@@ -1976,7 +1977,7 @@ function buildDocsPage() {
], [
{ code: "200", cls: "response-2xx", desc: "The Version, including full_object — every field as saved at that moment" },
{ code: "404", cls: "response-4xx", desc: "Not found, or not visible to you" }
- ])}
+ ], "For a Contact, fields hidden from you by Field Visibility are null in full_object and named in restricted_fields.")}
@@ -2561,6 +2562,33 @@ function buildDocsPage() {
+
+ Who can see each Contact field, as the Field Visibility settings page shows it. A field is default (everyone who can view the Contact) or restricted: only users in one of its Teams, or colleagues in any role on one of its Projects, see the value. Organisation Admins get no exception, and a restriction never gives anyone access to a Contact they can't already view. visible_to_guests says whether external guest users added through a Contact's Override see the field. Only Organisation Admins can read or change these settings.
default or restricted" },
+ { name: "page", type: "integer", required: false, desc: "Page number" },
+ { name: "per_page", type: "integer", required: false, desc: "Records per page (at most 200)" }
+ ], [
+ { code: "200", cls: "response-2xx", desc: "Paginated list: field_class_name, field_key, name, forms, visibility, teams [{id, name}], projects [{id, name}], visible_to_guests" },
+ { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin" }
+ ])}
+ ${endpointCard("PATCH", "/field_visibility_rules", "Change who can see Contact fields", true, [], [
+ { code: "200", cls: "response-2xx", desc: "data: the changed fields" },
+ { code: "403", cls: "response-4xx", desc: "Not an Organisation Admin" },
+ { code: "422", cls: "response-4xx", desc: "{errors}: a Restricted field with no Team or Project, a Team or Project from another Organisation, or an unknown field. Nothing is saved" }
+ ], "Body: charity_id and rules, a list of fields, each with field_class_name and field_key (from the list) and any of visibility, team_ids, project_ids, visible_to_guests. A Restricted field needs at least one Team or Project. Anything not sent is kept. PUT does the same.")}
+