Data schema
Custom Data Objects are your own tables: an object (orders, properties, inspections) with fields, views, forms and permissions. This page covers the structure. The rows inside it are Records.
Scope: data-schema:read · data-schema:write
Schema writes change storage
Creating, converting or deleting a field alters the object's storage. These are not high-frequency calls — build the schema once (in the app or with a setup script) and let your integration write records. A type conversion on a populated field rewrites every row.
Objects
/objectsList objects with their fields.Try it/objectsCreate an object. key is slugged from name when omitted.Try it/objects/{key}One object with its full field list.Try it/objects/{key}Rename or re-icon (at least one).Try it/objects/{key}Delete the object and its rows.Try it/objects/{key}/field-statsFill rate and distinct-value stats per field.Try it/data-qualityCross-object data-quality summary.Try itkey is the stable identifier you use in every other path (/objects/orders/records). Omit it on create and it is slugged from name. It is lowercase, alphanumeric plus underscores.
curl -X POST https://api.onivos.com/objects \
-H "Authorization: Bearer onv_live_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "name": "Inspections", "key": "inspections", "icon": "clipboard-check" }'Fields
/objects/{key}/fieldsAdd a field. Type-specific settings go in config.Try it/objects/{key}/fields/{fieldId}Update label, config, required flag or position.Try it/objects/{key}/fields/{fieldId}Remove a field and its data.Try it/objects/{key}/fields/{fieldId}/convertChange a field type in place, coercing existing values.Try it/objects/{key}/fields/{fieldId}/copyCopy this field's values into another field.Try it/objects/{key}/fields/{fieldId}/recomputeRecompute a formula, rollup or lookup across every row.Try it/objects/{key}/fields/{fieldId}/generateRun an AI field over the whole object.Try it/objects/{key}/fields/{fieldId}/generate/statusProgress of that run.Try it/objects/{key}/formula/previewEvaluate a formula against a sample row before saving it.Try it/objects/{key}/layoutReorder or group fields in the record detail layout.Try itField types
| Category | Types |
|---|---|
| Text | text · long_text · email · phone · url · barcode |
| Numeric | number · currency · percent · duration · rating · auto_number |
| Choice | single_select · multi_select · checkbox |
| Time | date · datetime |
| Structured | json · attachment |
| References | relation · user · contact |
| Computed | lookup · rollup · formula · ai · ai_image · button |
Per-type behaviour, options and limits are documented for end users in Field types — the same vocabulary the API takes in type. Type-specific settings go in config (select options, relation target, formula expression, rating maximum, rich-text toggle on long_text).
Computed fields (lookup, rollup, formula, ai, ai_image, auto_number) are read-only over the API: send them in a record write and they are ignored.
Views
A view is a saved lens over the object — filters, sort, visible fields, grouping, and the display mode (grid, kanban, calendar, gantt).
/objects/{key}/viewsList views.Try it/objects/{key}/viewsCreate a view.Try it/objects/{key}/views/{viewId}Update a view.Try it/objects/{key}/views/{viewId}Delete a view.Try itPermissions
/objects/{key}/grantsCurrent per-role and per-group grants.Try it/objects/{key}/grantsReplace the grant set.Try itGrants control read/write level and row scope (all rows vs only the actor's own). They apply to API traffic exactly as they apply in the app — see Permissions.
Forms
Public forms that write records into the object.
/data-formsList forms across objects.Try it/data-formsCreate a form.Try it/data-forms/{formId}One form.Try it/data-forms/{formId}Update a form.Try it/data-forms/{formId}Delete a form.Try it/data-forms/{formId}/publishPublish the current draft.Try it/data-forms/{formId}/statusOpen or close submissions.Try itTwo public endpoints serve the rendered form and accept submissions. They take the form's public token and no API key:
/public/data-forms/{token}The form definition to render.no keyTry it/public/data-forms/{token}/submitSubmit an entry.no keyTry itRelated
- Records — reading and writing rows.
- Create your first object — the same model, explained for end users.