Create a data-object definition
Create a data-object definition
Creates a new organization-level definition. Authorization: organization administrators only — other callers get 403. Body describes the schema: `nameSingular`/`namePlural`, labels, `fields[]` (13 field types, plus composites), `fieldGroups[]`, `labelFieldKey`, `icon`/`color`. Invalid schema returns 422 `validation_failed` (with `issues`). Returns 201 with `{ definition }`.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
nameSingular
labelSingular
labelPlural
namePlural
icon
labelFieldKey
fields
Field descriptors. Each names a key, a type and its type-specific options.
description
Defaults to ''.
color
fieldGroups
Response
The created definition.
definition
Errors
403
Forbidden Error
422
Unprocessable Entity Error