Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5362,7 +5362,7 @@ paths:
School, Gender or Date of birth. This is what a cell of the **Bio per Contact** and **Custom Table**
views saves in Edit mode, and it goes through the same save as the Contact's Edit Bio page.

Each field is named by `field_class` and `field_id`:
Each field is named by `field_class` and `field_id`, as each custom field in GET /beneficiaries/{id} gives them:

- `CustomField`: a text, number, date, time or telephone field, by its id. `value` is a string.
Dates may be `YYYY-MM-DD` and times `HH:MM` (24-hour).
Expand Down Expand Up @@ -32134,6 +32134,16 @@ components:
id:
type: integer
example: 173
description: The field's place on one of the Contact's forms. To change the answer, use `field_class` and `field_id` instead.
field_class:
type: string
enum: [CustomField, RatioSet]
example: "CustomField"
description: With `field_id`, names the field itself, as PATCH /beneficiaries/{beneficiary_id}/bio_fields takes it. RatioSet is a Dropdown.
field_id:
type: integer
example: 412
description: The field's own id (a custom field or Dropdown id), to send to PATCH /beneficiaries/{beneficiary_id}/bio_fields.
name:
type: string
example: "Employment Status"
Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ function buildDocsPage() {
], [
{ code: "200", cls: "response-2xx", desc: "Full Contact profile with all custom fields, and <code>weekly_availability</code>" },
{ code: "404", cls: "response-4xx", desc: "Not found" }
], "Opening a Contact this way is recorded in its <strong>Access Log</strong>, 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 <code>X-Makerble-Client: makerble-mcp</code>). Views less than 30 minutes apart are counted together. Use <code>GET /beneficiaries</code> when you only need to find or scan Contacts. Fields hidden from you by <strong>Field Visibility</strong> come back with <code>restricted: true</code> and a null value (custom fields), or null and named in <code>restricted_fields</code> (<code>dob</code>, <code>mobile</code>, <code>email</code>, <code>address</code>). <code>weekly_availability</code> is the Contact's <strong>Weekly availability</strong>: the most recently saved answer to a Weekly availability field on their Contact Forms, as <code>times</code> (<code>[{day, from, to}]</code>, in the organisation's timezone) with <code>source_form_id</code>, <code>source_field_id</code> and <code>answered_at</code>, or null. When Field Visibility hides that field from you, <code>times</code> is null and <code>restricted</code> is true.")}
], "Opening a Contact this way is recorded in its <strong>Access Log</strong>, 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 <code>X-Makerble-Client: makerble-mcp</code>). Views less than 30 minutes apart are counted together. Use <code>GET /beneficiaries</code> when you only need to find or scan Contacts. Fields hidden from you by <strong>Field Visibility</strong> come back with <code>restricted: true</code> and a null value (custom fields), or null and named in <code>restricted_fields</code> (<code>dob</code>, <code>mobile</code>, <code>email</code>, <code>address</code>). <code>weekly_availability</code> is the Contact's <strong>Weekly availability</strong>: the most recently saved answer to a Weekly availability field on their Contact Forms, as <code>times</code> (<code>[{day, from, to}]</code>, in the organisation's timezone) with <code>source_form_id</code>, <code>source_field_id</code> and <code>answered_at</code>, or null. When Field Visibility hides that field from you, <code>times</code> is null and <code>restricted</code> is true. Each custom field also has <code>field_class</code> and <code>field_id</code>, which name the field itself: send them to <code>PATCH /beneficiaries/{beneficiary_id}/bio_fields</code> to change its answer (<code>id</code> is the field's place on a form).")}
${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), a field hidden from you by Field Visibility was sent, or a Weekly availability answer can't be read" }
Expand All @@ -1935,7 +1935,7 @@ function buildDocsPage() {
{ code: "403", cls: "response-4xx", desc: "You can't edit the Contact, or Field Visibility hides a field from you" },
{ code: "404", cls: "response-4xx", desc: "The Contact or a field wasn't found" },
{ code: "422", cls: "response-4xx", desc: "A field isn't on the Contact's forms or can't be changed here, a mandatory field was left empty, or a Dropdown answer isn't one of its choices" }
], "Changes a Contact's answers to Bio fields, as a cell of <strong>Bio per Contact</strong> or a <strong>Custom Table</strong> does in Edit mode. <code>field_class</code> is <code>CustomField</code> (a text, number, date, time or telephone field, by id, with a string value), <code>RatioSet</code> (a Dropdown, by id, with an array of answer ids; <code>[]</code> clears it) or <code>BeneficiaryColumn</code> (<code>date_of_birth</code> or <code>address</code>). Dates may be <code>YYYY-MM-DD</code> and times <code>HH:MM</code>. A blank string clears an answer. Every field is checked before anything is saved, so one refused field leaves the Contact unchanged. File, signature, weekly availability and extended table fields are changed on the Contact's Edit Bio page.")}
], "Changes a Contact's answers to Bio fields, as a cell of <strong>Bio per Contact</strong> or a <strong>Custom Table</strong> does in Edit mode. <code>field_class</code> is <code>CustomField</code> (a text, number, date, time or telephone field, by id, with a string value), <code>RatioSet</code> (a Dropdown, by id, with an array of answer ids; <code>[]</code> clears it) or <code>BeneficiaryColumn</code> (<code>date_of_birth</code> or <code>address</code>). Dates may be <code>YYYY-MM-DD</code> and times <code>HH:MM</code>. A blank string clears an answer. Take <code>field_class</code> and <code>field_id</code> from the Contact's <code>custom_fields</code> in <code>GET /beneficiaries/{id}</code>. Every field is checked before anything is saved, so one refused field leaves the Contact unchanged. File, signature, weekly availability and extended table fields are changed on the Contact's Edit Bio page.")}
${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" }
], [
Expand Down
Loading