Skip to content

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 ​

GET/objectsList objects with their fields.Try it
POST/objectsCreate an object. key is slugged from name when omitted.Try it
GET/objects/{key}One object with its full field list.Try it
PATCH/objects/{key}Rename or re-icon (at least one).Try it
DELETE/objects/{key}Delete the object and its rows.Try it
GET/objects/{key}/field-statsFill rate and distinct-value stats per field.Try it
GET/data-qualityCross-object data-quality summary.Try it

key 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.

bash
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 ​

POST/objects/{key}/fieldsAdd a field. Type-specific settings go in config.Try it
PATCH/objects/{key}/fields/{fieldId}Update label, config, required flag or position.Try it
DELETE/objects/{key}/fields/{fieldId}Remove a field and its data.Try it
POST/objects/{key}/fields/{fieldId}/convertChange a field type in place, coercing existing values.Try it
POST/objects/{key}/fields/{fieldId}/copyCopy this field's values into another field.Try it
POST/objects/{key}/fields/{fieldId}/recomputeRecompute a formula, rollup or lookup across every row.Try it
POST/objects/{key}/fields/{fieldId}/generateRun an AI field over the whole object.Try it
GET/objects/{key}/fields/{fieldId}/generate/statusProgress of that run.Try it
POST/objects/{key}/formula/previewEvaluate a formula against a sample row before saving it.Try it
PATCH/objects/{key}/layoutReorder or group fields in the record detail layout.Try it

Field types ​

CategoryTypes
Texttext · long_text · email · phone · url · barcode
Numericnumber · currency · percent · duration · rating · auto_number
Choicesingle_select · multi_select · checkbox
Timedate · datetime
Structuredjson · attachment
Referencesrelation · user · contact
Computedlookup · 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).

GET/objects/{key}/viewsList views.Try it
POST/objects/{key}/viewsCreate a view.Try it
PATCH/objects/{key}/views/{viewId}Update a view.Try it
DELETE/objects/{key}/views/{viewId}Delete a view.Try it

Permissions ​

GET/objects/{key}/grantsCurrent per-role and per-group grants.Try it
PUT/objects/{key}/grantsReplace the grant set.Try it

Grants 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.

GET/data-formsList forms across objects.Try it
POST/data-formsCreate a form.Try it
GET/data-forms/{formId}One form.Try it
PATCH/data-forms/{formId}Update a form.Try it
DELETE/data-forms/{formId}Delete a form.Try it
POST/data-forms/{formId}/publishPublish the current draft.Try it
POST/data-forms/{formId}/statusOpen or close submissions.Try it

Two public endpoints serve the rendered form and accept submissions. They take the form's public token and no API key:

GET/public/data-forms/{token}The form definition to render.no keyTry it
POST/public/data-forms/{token}/submitSubmit an entry.no keyTry it