meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| developer:api [2026/05/18 06:56] – [Collection API Reference] claude | developer:api [2026/06/02 06:46] (current) – Update: webhooks, bulk ops, swimlanes, RLS, full function reference claude | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Collection API Reference ====== | ====== Collection API Reference ====== | ||
| - | All requests go to '' | + | All requests go to '' |
| See [[developer: | See [[developer: | ||
| - | ===== Response Envelope ===== | + | Every call requires: '' |
| - | All responses share this outer structure: | + | ===== Response Envelope ===== |
| <code json> | <code json> | ||
| Line 15: | Line 15: | ||
| " | " | ||
| " | " | ||
| - | " | + | " |
| } | } | ||
| </ | </ | ||
| - | ''" | + | ''" |
| - | ===== Functions | + | ===== Reading |
| - | ==== meta — Start here ==== | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | Returns the complete collection schema in one call: every field, view, action, and available function. Always call this first when working with an unfamiliar collection. | + | ===== Writing ===== |
| - | '' | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | Response '' | + | ===== Interactions (Audit Trail / Notes) ===== |
| - | ^ Field ^ Contents ^ | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | ==== describe ==== | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | Returns field schema only — lighter than '' | + | ===== Transitions ===== |
| - | '' | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| - | ==== readone ==== | + | **Important: |
| - | Returns all field values for a single record. | + | ===== Webhooks ===== |
| - | '' | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | ==== readlist ==== | + | Webhooks fire on create, update, or delete events. The payload mirrors the record' |
| - | Returns all distinct values in a single column across visible records. Useful for filter dropdowns. | + | ===== Bulk & Bootstrap Operations ===== |
| - | '' | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | ==== crosslist | + | ===== Swimlane Groups ===== |
| - | Returns | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | '' | + | ===== Row-Level Security (RLS) ===== |
| - | Optional: | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | ==== create ==== | + | Use **Owner** mode so each record is only visible to its creator. Use **Custom** for per-user or per-group access grants. |
| - | Creates a new record and logs a creation interaction. | + | ===== Record Linking ===== |
| - | '' | + | ^ Function ^ Purpose ^ Key params ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | Response: '' | + | ===== Filtering ===== |
| - | ==== update | + | ==== Simple |
| + | < | ||
| + | dxField=strD5_1_25& | ||
| + | </ | ||
| - | Updates an existing record. Only included fields are changed (partial update). | + | ==== Advanced (multi-condition JSON) ==== |
| - | + | <code json> | |
| - | '' | + | [ |
| - | + | {" | |
| - | ==== interactionlist | + | {"field": " |
| - | + | ] | |
| - | Returns the full audit trail for one record. | + | </ |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | ==== actionlist ==== | + | |
| - | + | ||
| - | Returns all active actions for this collection. | + | |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | ==== gdprwipe ==== | + | |
| - | + | ||
| - | Anonymises all string | + | |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | ==== addfield ==== | + | |
| - | + | ||
| - | Adds a new field to the collection. | + | |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | See [[developer: | + | |
| - | + | ||
| - | ==== bulkcreate ==== | + | |
| - | + | ||
| - | Batch-creates up to 500 records from a JSON array. | + | |
| - | '' | + | Operators: '' |
| - | Response: '' | + | ===== Pagination ===== |
| - | ==== createcollection (admin) ==== | + | Works on '' |
| - | Provisions a new collection with FX/DX/IX/GX tables. Requires admin credentials. | + | * Offset-based: |
| + | * Cursor-based: | ||
| + | * Max '' | ||
| - | '' | + | ===== Schema Inspection ===== |
| - | Does not require | + | ^ Function ^ Purpose ^ |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| - | ===== Function-Level Error Codes ===== | + | ===== Analytics |
| - | ^ Code ^ Meaning | + | ^ Function |
| - | | '' | + | | '' |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |
| - | | '' | + | |