Skip to content

This page is for integrators and developers who read or write entity definitions through the API, generate entity payloads, or need the exact rules the server applies when an entity is created, changed, moved or deleted. It documents the stored model, the value shapes entries carry, the lifecycle endpoints and their refusals, and the versioning (breaking-change) system.

Writes to entities are command-driven. The HTTP controller does not persist directly — it validates the request, then sends a command (CreateDataEntityCommand, UpdateDataEntityCommand, ArchiveDataEntityCommand, and their virtual counterparts) onto the service bus and registers an invoker token. A command handler performs validation, preparation, persistence, and event publishing asynchronously, then replies over a socket. Because of this, the POST/PATCH/PUT endpoints return the entity as read back from the repository right after enqueuing; the authoritative result of the operation is delivered via the command-executed socket message.

The persisted document is defined by the DataEntity model (data-entity.model.ts). Key properties:

PropertyTypeNotes
idUUIDServer-assigned (v4()) on create; not client-supplied.
specificationVersionnumberSchema/spec version of the entity model. Default 1.
nameLocalizedValueRequired. Localized display name. Validated (required, min/max length) and must be unique within its module.
descriptionNullableLocalizedValueOptional.
normalizedNamestringRequired, globally unique (unique index). Must match NormalizedNameValidation pattern and length; cannot be a restricted name (see below).
versionnumberData/breaking-change version. Default 0. Bumped only by qualifying breaking changes (see Versioning).
isImplicitbooleanRequired. Marks system-provisioned entities with restricted edit/delete rules.
implicitOptions{allowEdit, isReadOnly}Governs whether an implicit entity may be edited.
virtualDataEntityVirtualOptionsPresent for pipeline-backed virtual entities; carries enabled, source, and computed dependsOn.
typeDataEntityTypeEnumRequired. See Entity types.
typeOptionsTypeOptions | VirtualProxyEntityOptions | AggregatorVirtualEntityOptionsType-specific configuration (e.g. virtual/proxy/joiner/aggregator sources).
iconIconRequired.
moduleUUIDRequired. Owning module.
stateDataEntityStateEnumDraft / Active / Archived.
stateHistoryStateHistory[]Append-only log of state transitions.
creationInfo / updateInfo / archiveInfoActionInfoWho/when, including delegatee. archiveInfo is set only on archive.
fieldsDataEntityField[]The entity’s own fields (see Fields).
internalEntitiesInternalEntity[]Backing schemas for block fields (nested field groups).
internalCollectionsInternalCollection[]Embedded list-of-values collections.
workflowsDataEntityWorkflow[]Attached approval/state workflows.
validationstring | nullEntity-level validation expression.
tagsstring[]Free-form tags.
metaServiceMeta | objectFor Request-type entities: service audience/observers.
displayOptionDataEntityDisplayOptionEnumLayout: KeyValue (default), TwoColumns, ThreeColumns, FourColumns.
formSettingsDataEntityFromSettingsForm-render configuration.
entryNames{singular, plural}Localized labels for a single record vs. many.
treeStructureDataEntityTreeStructureConfigConfig for self-referential tree/hierarchy entities.
indexesDataEntityIndex[]Index definitions (computed on create/update).
dataSourcesDataEntityFieldSources[]Computed field-source mappings.
storeRulesStoreRule[]Data-placement rules; defaulted from StoreService.defaultStoreRule() on create.
sharingApplicationSharingInherited from the owning module.
updateIdentifierstringOptimistic-concurrency token (v4()), rotated on every write.
displayTemplateEntityDisplayTemplate | nullOptional custom display template. Since 1.4
scriptAttributesobjectOptional bag of scripting attributes. Since 1.8
deletedFields / breakingFieldsarraysVersion bookkeeping. breakingFields is a hidden property (hiddenProperties: ['breakingFields']).

Each entry in fields is a DataEntityField (data-entity-field.model.ts):

PropertyTypeNotes
idUUIDField identity; stable across renames and used for breaking-change diffing.
specificationVersionnumberDefault 1.
nameLocalizedValueLocalized label.
normalizedNamestringUnique field key; matches NormalizedNameValidation; cannot be a restricted name.
dataTypeDataTypeEnumRequired. One of the types below.
blockFieldBlockFor Block fields, links to an internalEntity holding the sub-fields.
optionsFieldOptionsBehavioural flags incl. repeatable, multiValue, showAsTitle, showAsMainPhone, showAsEntryPicture, sensitive, displayOnly.
sourceUUID | nullDeprecated single reference target (use sources). For Entity-typed reference fields.
sourcesFieldSources[]List of available reference sources.
sourceOptionsFieldSourceOptionse.g. denyCircularRelation.
dataCollectionUUID | nullReference to a data collection (LOV).
renderOptionsFieldRenderOptionsCarries editComponent.component (e.g. RelationComponent, CategoryComponent, SwitchComponent, PasswordInputComponent, DataQuerySelectorComponent).
validationsFieldValidationIncludes required.enabled.
customValidationsCustomValidationsRule[]Optional custom rules.
lockedFieldLockedOptionLock/expression control.
virtualFieldVirtualFieldMarks a computed field (enabled).
isImplicitbooleanSystem field marker (forced false for user-supplied fields on create).
mappingDataEntityFieldMappingField-source mapping metadata.
sensitiveAccessSensitiveFieldAccessTransient, request-only. Read-access grants for a sensitive field, synced to the access_right store then stripped before persist — never stored on the entity document. Since 1.8

Supported dataType values (DataTypeEnum): Text (0), Number (1), Date (2), Time (3), DateTime (4), Boolean (5), blob (6), Entity (7), Icon (8), Block (9), LocalizedJson (10), GeoJson (11), Json (12), ObjectJson (13), SVGIcon (14).

Blocks and nested fields. A field with dataType = Block does not store its own sub-fields inline; instead block.internalEntity points at an entry in the entity’s internalEntities, which holds the block’s fields. The model helper getAllFields() flattens this: for each block it emits the sub-fields with a fullNormalizedName of <block>.<field>, an entityPath, and an isParentBlockRepeatable flag. This flattened, full-name view is what the versioning and validation code diffs against — so fields are matched by the pair (id, fullNormalizedName), not by name alone.

Show-as / titling helpers. The model exposes convenience selectors used across the service: getTitledField() (options.showAsTitle), getPhoneNumberField(), getEntryPictureField(), getRelationFields(), getSensitiveFields(), getVirtualFields(), getLocalizedFields(), and getFieldByPath(). A field marked showAsTitle (the “main title”) is subject to extra rules on update (see Update rules).

Beyond the title, a field can carry any of the semantic view-option roles (FieldViewOptionValueTypeEnum) so card/list/kanban renderers know which field to treat as what: showAsTitle, showAsSubTitle, showAsCategory, showAsSubCategory, showAsRelationField, showAsMainNumber, showAsMainDate, showAsMainPhone, and showAsEntryPicture. Set these when configuring a field — e.g. mark your “Full name” text field showAsTitle and your image field showAsEntryPicture, and card views render correctly with no extra layout work.

Sensitive fields. Any field can be flagged sensitive (options.sensitive). A sensitive field’s value is masked (****) for every user unless that user holds an explicit read grant for that specific field — a dimension separate from ordinary view/edit permissions. Grants are supplied per request through the transient sensitiveAccess property, synced to the access_right store, and never persisted on the entity document.

Reference sources that aren’t data entities. Not every value a reference (Entity-typed) field’s source/sources can carry is a DataEntity id — a seeded system entity such as the counter widget gives its query/view fields the literal platform-source strings dataQuery / dataViews instead, pointing at a saved query or a data view rather than another entity. Since 1.8, the entity designer’s reference-source picker recognises these platform sources and renders a plain label instead of trying to fetch them as a DataEntity — previously that lookup failed with an “Entity not found” toast over what was otherwise a correctly-configured field.

The field-config panel’s section list and search box (see Create and design an entity) is a UI navigation aid only: it adds nothing to DataEntityField / FieldOptions and has nothing to do with a field’s database indexing.

An entry stores each field’s value under value.<normalizedName>. The stored shape depends on the field kind — and the two reference kinds are discriminated not by dataType alone but by the edit component plus whether dataCollection is set (FieldService.isReferenceField / isADTField):

Field kindDiscriminated byStored value
TextdataType: 0Plain string — the text caster coerces with value?.toString() ?? ''.
NumberdataType: 1Plain number (Number(value)).
CategorydataType: 12 + editComponent.component: "CategoryComponent"{"id": "<option id>"} — only id is persisted; label, color, and _resolved ({label, color}) are re-injected on read from the matching option.
Entity referencedataType: 7 + "RelationComponent", entity source set{"dataEntity": "<entity id>", "dataEntry": "<entry id>"} — both required; an array of these when the field is multiValue.
Collection-item referencedataType: 7 + "RelationComponent", dataCollection set{"id": "<collection item id>"} — the id of the item inside the referenced collection.
BlockdataType: 9 + "BlockComponent"A nested object keyed by the internal entity’s field normalizedNames (e.g. value.basic_info.username); an array of such objects when options.repeatable is set. Empty values are seeded as {} — or Array(min).fill({}) for repeatable blocks.

A category field’s selectable options live at renderOptions.editComponent.options.options — an array of {id, label, color?} where id is a plain string: usually a UUID for options created in the builder, a constant string for seeded core fields (e.g. the Space entity’s type options STANDALONE / SUB_SPACE). The save-time validator rejects a category value whose id is missing or not found in that array.

Wrong reference shapes and silent failure. The two reference shapes are not interchangeable, and the failure mode is direction-dependent:

  • Sending the collection shape {"id": ...} to an entity-reference field is rejected at save with an Invalid reference property validation error.
  • Sending the entity shape {"dataEntity": ..., "dataEntry": ...} to a collection-item field passes the shape check and can save (reference existence checking is fail-open), then silently resolves to nothing on read: the collection resolve branch requires value.id, so the value falls through and _resolved comes back as an empty object — no error is raised at any point.
  • Reference validation is skipped entirely for fields listed in skipRelationCheckFields, for values whose dataEntity is FILE (attachments uploaded through POST /api/storage/v2/files, multipart form field file), when no fetcher matches the edit component, and for Entity-typed fields whose component is neither RelationComponent nor UserReferenceComponent — in those paths a wrong shape saves silently.
  • Persistence never repairs a shape: the save-time cleanup keeps whichever of dataEntity, dataEntry, and id you sent.
  • normalizedName (entity and field) must satisfy NormalizedNameValidation (regex pattern + min/max length) enforced via JSON schema on the model.
  • The entity normalizedName has a unique index; duplicates are rejected on create/update (EntityDuplicateException, or a Mongo 11000 UniqueValueException).
  • Entity name must be unique within the owning module (not globally) — enforced by checkDuplicateNamesFromDatabase(..., [{module: {eq: module}}]).
  • Reserved words cannot be used as a normalizedName for the entity, its fields, or internal-entity fields. checkRestrictedNormalizedName() rejects: switch, new, the counters name, default, class, break, private, public, protected, else, if, return, case, catch, throw, while, for, try (RestrictedNormalizedNameError).

Because the normalizedName is the stable machine key that queries and reactions bind to, it is effectively permanent after creation — the builder generates it automatically and lets you tweak it before saving, but you can change the localized display name later without affecting the machine key. It is also used in packaging import/export operations to preserve the entity’s representation across environments.

A field with mapping.enabled mirrors its value from a source field on the entity referenced by mapping.referenceFieldId. Three rules keep a mapped field’s own metadata in step with its source — resolved through the full mapping chain, so a field mapped transitively (C mirrors B, which itself mirrors A) is reached too:

  • Sensitivity inheritance. A mapped field takes on its source field’s sensitive flag — and its sensitive-field access grants — whenever the mapped entity is saved. The reverse direction now propagates immediately too: toggling a source field’s sensitivity pushes the change down onto every field mapped from it right away, instead of waiting for the next time the mapped entity happens to be saved. See Sensitive Fields for how a sensitive field is masked and unmasked at read time.
  • unique resyncs one-directionally. When a source field stops being unique, a mapped field’s stale unique flag is cleared and the owning entity’s index is rebuilt so the physical unique index is actually dropped. A mapped field never inherits unique from its source, even when the source field newly becomes unique — only a stale true is ever cleared, never set.
  • Cascaded auto-first references now fill their mapped fields correctly. A reference field set to auto-select its first value, whose own source is cascaded on another reference already set on the entry (for example, a reaction that creates an entry with only the cascade parent bound), previously resolved to nothing when computing values for fields mapped through it. Those fields — including a repeatable mapped field the payload never submitted a value for — now fill correctly.

An entity’s records are rendered from a form whose column layout is controlled by displayOption (DataEntityDisplayOptionEnum):

  • KeyValue (default) — one field per row.
  • TwoColumns / ThreeColumns / FourColumns — two, three, or four fields per row, with the remaining column space filled when a row carries an extra field.

Finer form-render behaviour (field grouping, ordering, section layout) lives in formSettings and is edited from the Form Settings panel of the entity’s Structure tab in the builder.

An entity can carry entity scripts — user-authored JavaScript lifecycle hooks attached to the entity in the designer and persisted in scriptAttributes. At runtime the client runs the stored code per view-face and then per entity-face through EntityScriptExecutorService.run, letting a builder react to entry lifecycle events without a server-side reaction.

Security caveat: entity scripts are executed eval-style — stored code is evaluated on the client — so they must be treated as trusted, admin-authored content. Editing an entity’s scripts requires Developer access to the designer, which is what mitigates the risk; do not expose script authoring to untrusted roles.

Beyond an entity’s own fields, every entry carries a set of system metadata fields that OSOS stamps and maintains automatically. They are surfaced through a virtual _metaData block so they can be selected inside a view (via ?includeMetaDataFields=true, see Read-model notes). The block is locked/read-only and virtual: it is built by metaDataBlockField(withWorkflowMetaField) and backed by an internal entity _metaDataInternalEntity (META_DATA_BLOCK_NORMALIZED_NAME = '_metaData'); its inner fields flatten to _metaData.<id>.

The registry lives in osos-shared/src/metaFields.ts, and META_DATA_PATH_MAP maps each virtual meta-field id to its actual stored path on the document:

Meta-field idStored pathType
createdBycreationInfo.doneByref USER
createdAtcreationInfo.doneAtdatetime
updatedByupdateInfo.doneByref USER
updatedAtupdateInfo.doneAtdatetime
entryIdidtext
entityVersionentityVersionnumber
invalidReasoninvalidReasonnumber enum (0 = OBSOLETE_ENTRY, 1 = INVALID_REQUIREMENT_ENTRY)

So a view that selects _metaData.createdBy actually reads creationInfo.doneBy — the registry is what lets the flattened _metaData.<id> names resolve to the inner creationInfo / updateInfo stamps described in the model table above.

Workflow metadata fields. When an entity has workflows, metaDataBlockField is called with withWorkflowMetaField = true, which adds a further set of selectable _metaData fields describing the entry’s current workflow step (read from the entry’s active current step under _metaCurrentSteps.*; history lives under _metaWorkflowHistory.* / _metaAdhocSteps.*):

Meta-field idMeaningType
currentStepLocalized name of the current steplocalized text
currentStepOwnerCurrent step ownerref USER
currentStepOriginalOwnerOriginal owner of the current stepref USER, GROUP
currentStepReceivedDateWhen the step was receiveddatetime
currentMainStepWhether the current step is a main stepboolean
currentAdhocStepWhether the current step is an ad-hoc stepboolean

CURRENT_STEP_OWNER_META_DATA_FIELDS = [_metaData.currentStepOriginalOwner, _metaData.currentStepOwner] identifies the owner-bearing meta fields used for step-ownership checks.

When you create an entity you choose an Entity Type. Entities you define yourself are usually Custom; the platform ships many other built-in types that you will see but rarely create by hand. The type field is a DataEntityTypeEnum: the value both categorises the entity and gates what operations are allowed. The Entity Type is fixed at creation and cannot be changed afterward — like the normalizedName, it is part of the entity’s permanent identity. Notable values (verified in enums.ts):

NameValueMeaning
Custom0A regular builder-defined entity.
ADT1Abstract/primitive data-type entity.
Service2Service entity.
Request3Request-type entity; the only implicit type that stays editable and supports service-permission updates.
Contact, TimelinePost, CalendarEvent, Notification, Task, User, Group, OrganizationUnit, Configuration, Dashboard, Report, PostCategory, Comment, AllRequests, Person, Role, Assignment, …4–29Built-in product entity kinds.
Core30Core platform entity.
System40System entity.
VirtualProxy50Virtual entity backed by a single primary source.
JoinerProxy51Virtual entity joining multiple sources via relations.
VirtualAggregator52Virtual entity aggregating multiple sources (with field mappings).
Space, SpaceUsers, Delegation, WorkingHours, Interceptors, Templates, Validators, SystemObject, Audit60–90Infrastructure/system entity kinds.
Section titled “The Services Catalog and its related entity Since 1.8”

A service entry in the Services Catalog carries a pointer to the (typically Request-type) entity that actually backs it. Since 1.8, archiving or restoring a Services Catalog entry now cascades to that related entity’s own entries: archiving the catalog entry also archives its backing entity’s active entries, and restoring it restores them — which in turn cascades onward to the mirrored request rows the same way archiving or restoring the related entity directly (from the Data Entities admin page) already did. Before this, archiving a service from the Services Catalog only flipped the state on the catalog row itself, leaving already-submitted requests for that service still visible in My Requests / Inbox.

This is a data-modeling note about the cascade only; the Services Catalog admin workflow itself is covered under Services & Requests, and the request-side effect under Requests & services (API and internals).

Created via POST /v1/entities with type = Custom (or another non-virtual, non-system type). Their entries are created by hand, and they are fully editable and deletable subject to permission voters.

Entities with isImplicit = true are system-provisioned — built-in kinds such as Users, Groups, Organization Units, and Audit, which are often protected or partially read-only. Their editability and deletability are constrained by two service predicates:

isEntityEditDenied(e) = e.isImplicit && !e.implicitOptions?.allowEdit && e.type !== Request
isEntityDeleteDenied(e) = e.isImplicit && e.type !== Request

So an implicit entity can only be edited if implicitOptions.allowEdit is set (or it is a Request entity), and can only be deleted if it is a Request entity. Violations raise ImplicitEntityUpdateException / ImplicitEntityDeleteException. Additionally, on update of an implicit entity the handler preserves the persisted definition and only accepts a whitelisted subset of incoming properties (fields, internalEntities, displayOption, formSettings, workflows, indexes, internalCollections, storeRules, templates) — everything else is kept from the stored entity.

The Core module (CORE_MODULE_ID = 00000000-0000-0000-0000-000000000000) is itself protected: creating an entity in it, or moving an entity into it, raises ImplicitModuleException.

Virtual entities are read-only: their entries are computed from other source entities rather than entered by hand. There are three kinds:

  • Proxy (VirtualProxy) — surfaces a single source entity so it can be reached and interacted with from another part or module, without duplicating its data.
  • Joiner (JoinerProxy) — joins the primary source with its related entities through relations, presenting the primary entity’s information together with related fields.
  • Aggregator (VirtualAggregator) — computes aggregated values (count, sum, min/max, average) from a source entity grouped by one or more fields, so each entry is a read-only summarized row that is never edited manually.

Virtual entities are not created through POST /v1/entities — the create and update handlers explicitly reject VirtualProxy / JoinerProxy / VirtualAggregator with DataNotSupportedException. They have their own endpoints:

  • POST /v1/entities/virtual — create.
  • PUT /v1/entities/virtual/{id} — update.

typeOptions for a virtual entity accepts two shapes, handled in createVirtual:

  1. Flat / interactive — {sourceEntityNormalizedName, sourceQuery}. This is wrapped into a single VirtualProxyEntityOptions with one Primary source.
  2. Persisted / packaged — {sources: [...]}. Passed through untouched (used when a packaging import replays a previously-exported virtual entity, including aggregator sources with fieldMappings), because rebuilding it would strip aggregator-specific fields.

VirtualProxyEntitySourceTypeEnum distinguishes Primary (0) from Additional (1) sources. findById resolves source entities and returns type-specific detail DTOs: DataEntityAggregatorDetailsDto for aggregators, DataEntityJoinerDetailsDto for joiner/proxy (with resolved relation scopes). Aggregator responses also include mappedSources, computed by getVirtualEntityMappedSources — one entry per source-entity/view mapping. Since 1.8

There is no separate delete endpoint for virtual entities; DELETE /v1/entities/{id} (archive) applies.

DataEntityStateEnum: Draft (0), Active (1), Archived (2). A Draft entity is still being built; publish it to Active so end users can create entries in it. Every transition is appended to stateHistory with changedAt, newState, changedBy, and optional delegatee.

POST /v1/entities → CreateDataEntityHandler.handle. The handler:

  1. Rejects if the id already exists (EntityDuplicateException) or the type is virtual (DataNotSupportedException).
  2. If virtual.enabled, resets workflows to [].
  3. Stamps creationInfo, updateInfo, a fresh updateIdentifier, and default storeRules.
  4. Validation phase: entity validate, duplicate-normalizedName check, name validation & module-scoped duplicate-name check, implicit-field validation (unless isSystemModification), field checks (duplicate fields, repeatable settings, source-required, show-as options, per-field validation), timeline-contribution validation, workflow validation, and internal-entity validation.
  5. Preparation phase: defineWorkflowHappyPath, handleFieldsOptions, appendImplicitConfigs, index-definition creation, and calculateEntityMappingFieldSources.
  6. Syncs sensitive-field access rights and strips the transient sensitiveAccess.
  7. Persists via repository.create, publishes DataEntityCreatedEvent, and emits a CommandExecutedMessage over the socket.

New entities start at version = 0 (model default) and — barring an explicit state in the payload — take their state from the model. Permissions supplied in the create DTO are not stored on the entity; the controller strips them and routes them to the access-rights store (EntitlementEnum.DataEntity).

The POST /v1/entities body is the DataEntity document (plus an optional permissions array), with the lifecycle fields excluded from the request schema. Below is a minimal-but-valid fields + internalEntities pair — one text field and one block field whose sub-fields live in a sibling internal entity; the entity-level properties (name, normalizedName, type, icon, module, …) are documented in the structure table. Every field must carry dataType, options, renderOptions, and validations, and renderOptions requires both editComponent and viewComponent, each a {component, options} descriptor whose component is a plain string. The owning module must be an existing, non-core module — list modules with GET /v1/data-module (through the gateway: /api/v1/data-module).

{
"fields": [
{
"specificationVersion": 1,
"name": {"en": "Title", "ar": "العنوان"},
"normalizedName": "title",
"dataType": 0,
"options": {
"hideForEmptyValues": false,
"showInTableView": true,
"showAsTitle": false,
"showAsSubTitle": false,
"showAsCaption": false,
"showAsMainDate": false,
"showAsMainNumber": false,
"showAsEntryPicture": false
},
"renderOptions": {
"editComponent": {"component": "TextInputComponent", "options": {}},
"viewComponent": {"component": "ViewTextComponent", "options": {}}
},
"validations": {
"required": {"enabled": false, "expression": null},
"min": {"enabled": false, "value": null, "valueSourceType": 0},
"max": {"enabled": false, "value": null, "valueSourceType": 0}
}
},
{
"specificationVersion": 1,
"name": {"en": "Basic Info", "ar": "المعلومات الأساسية"},
"normalizedName": "basic_info",
"dataType": 9,
"block": {"internalEntity": "<uuid-A>"},
"options": {
"hideForEmptyValues": false,
"showInTableView": false,
"showAsTitle": false,
"showAsSubTitle": false,
"showAsCaption": false,
"showAsMainDate": false,
"showAsMainNumber": false,
"showAsEntryPicture": false
},
"renderOptions": {
"editComponent": {"component": "BlockComponent", "options": {}},
"viewComponent": {"component": "BlockComponent", "options": {}}
},
"validations": {
"required": {"enabled": false, "expression": null},
"min": {"enabled": false, "value": null, "valueSourceType": 0},
"max": {"enabled": false, "value": null, "valueSourceType": 0}
}
}
],
"internalEntities": [
{
"id": "<uuid-A>",
"validation": "",
"fields": [
{
"specificationVersion": 1,
"name": {"en": "Username", "ar": "اسم المستخدم"},
"normalizedName": "username",
"dataType": 0,
"options": {
"hideForEmptyValues": false,
"showInTableView": true,
"showAsTitle": false,
"showAsSubTitle": false,
"showAsCaption": false,
"showAsMainDate": false,
"showAsMainNumber": false,
"showAsEntryPicture": false
},
"renderOptions": {
"editComponent": {"component": "TextInputComponent", "options": {}},
"viewComponent": {"component": "ViewTextComponent", "options": {}}
},
"validations": {
"required": {"enabled": false, "expression": null},
"min": {"enabled": false, "value": null, "valueSourceType": 0},
"max": {"enabled": false, "value": null, "valueSourceType": 0}
}
}
]
}
]
}

Notes on the shape:

  • options — the eight booleans shown are the required: true members of FieldOptions; the rest are optional or defaulted. Properties that are required with a default (specificationVersion, several of these booleans) are auto-filled by model instantiation, but real payloads — including the seeded core entities — include them explicitly.
  • validations — requires required ({enabled, expression?}) and min / max ({enabled, value?, valueSourceType}, with valueSourceType defaulting to 0).
  • Component descriptors are plain strings. The seeded entities use e.g. TextInputComponent, LocalizedTextInputComponent, BooleanComponent, CategoryComponent, RelationComponent, and BlockComponent on the edit side, and ViewTextComponent, ViewLocalizedTextInputComponent, ViewCategoryComponent, ViewRelationComponent on the view side.
  • Field id is optional (server default: a new v4 UUID). internalEntities[].id also defaults to a UUID — supply it explicitly so block.internalEntity can point at it; seeded internal entities use validation: "".
  • Category fields use dataType: 12 with "CategoryComponent" and put their selectable options at renderOptions.editComponent.options.options:
"renderOptions": {
"editComponent": {
"component": "CategoryComponent",
"options": {
"options": [
{"id": "STANDALONE", "label": {"en": "Standalone", "ar": "مستقل"}, "color": "#FF0000"}
]
}
},
"viewComponent": {"component": "ViewCategoryComponent", "options": {}}
}

Creating an entity requires a license that includes administration plus edit access on the (non-core) module, and runs asynchronously — a 2xx means the CreateDataEntityCommand was enqueued, not that the entity exists yet (see the architecture note at the top of this page).

PATCH /v1/entities/{id} → UpdateDataEntityHandler.handle. Preconditions checked in the controller before enqueuing:

  • isEntityEditDenied → ImplicitEntityUpdateException.
  • Client updateIdentifier must equal the persisted one, else UpdateIdentifierConflictException (optimistic concurrency, see below).
  • The entity must not be locked by another user (LockedObjectException).

The handler then re-validates (duplicate normalizedName, archived-state guard, implicit whitelist merge, name checks, field/unique/implicit-field validation, workflow validation), recomputes options/indexes/mappings, recalculates deleted fields and entity version, rotates updateIdentifier, and performs an atomic conditional write (see below). It publishes DataEntityUpdatedEvent (with re-index and change flags and a diff) and, if the version was bumped, DataEntityVersionChangedEvent.

From the builder’s Edit Entity flow, the structure you can change on an existing entity includes its display name and icon, its singular/plural entry names, description, fields, reactions, workflows, validation, and timeline; normalizedName and type stay fixed (and module too, on a normal update).

Additional update rules enforced by the handler:

  • Archived entities cannot be updated unless skipArchiveCheck is set (EntityArchiveException).
  • normalizedName is never changed on update — it is forced back to the stored value.
  • module cannot be changed on a normal update; it is forced back to the stored value unless allowModuleUpdate is set (used by the move-module endpoint).
  • Main-title constraints (validateMainTitleNotNestedReference): the showAsTitle field may not be repeatable/multiValue (MainTitleCannotBeRepeatableOrMultipleException), and if it is a reference (Entity) field it may not create a nested reference title — neither the source entity’s main title nor any entity referencing this one may itself use a reference field as its title (NestedReferenceMainTitleSourceIsReference / NestedReferenceMainTitleReferencedByOtherEntity).

Every write rotates updateIdentifier to a new v4(). The controller’s equality check happens before the command is enqueued, leaving a check-then-act window during which a concurrent writer (another client, or one of the many event subscribers that write back to the entity) can bump the token. To close the lost-update window, the update handler writes with a conditional updateAll matching on the originally-read identifier:

updateAll(dataEntity, {id, updateIdentifier: oldEntity.updateIdentifier})

If Mongo updates 0 documents, the write is aborted and UpdateIdentifierConflictException is surfaced to the caller. Since 1.8

Since 1.10 — an entry now carries a token of its own too. It is a separate, independently rotated updateIdentifier on the entry document, not the one on the entity definition described here, and sending it back is opt-in per write request rather than required as it is above. Which endpoints accept it, and the 409 UPDATE_CONFLICT it produces, are on Calling the HTTP API.

The retry loop, and re-projection onto a fresh read Since 1.10

Section titled “The retry loop, and re-projection onto a fresh read Since 1.10”

A caller can opt an entry write into automatic conflict retry instead of failing outright on 409 UPDATE_CONFLICT. Alongside the entry’s updateIdentifier above, the write payload accepts two further optional fields: expectedUpdateIdentifier and changedPaths (the specific field paths this write intends to change). When both are supplied:

  • On a conflict, the entry is re-read fresh, and only the caller’s changedPaths are re-applied onto that fresh value — never the caller’s original snapshot, which could otherwise silently overwrite a concurrent writer’s change to a field the caller never touched.
  • The write is retried against the freshly-read token, up to 3 attempts total (1 initial + 2 retries), with 250ms then 500ms between them.
  • Each attempt re-runs the full read → validate → diff → persist sequence, not just the final write, so anything watching for a change (links, aggregators, map fields) is always notified from the current entry, not a stale one.

changedPaths cannot be safely reconstructed from a diff after a conflict — a stale snapshot compared against a fresh read conflates the caller’s own intent with a concurrent writer’s change — so the caller has to declare its intended paths up front. Both fields are optional and purely additive: a write that omits them behaves exactly as it did before this change.

Reaction-driven writes gain the same protection, behind a flag Since 1.10
Section titled “Reaction-driven writes gain the same protection, behind a flag Since 1.10”

The Update Data Entry action in Reactions & Automation can send its writes through this same retry guard, but only when every one of the following holds for that specific write:

  • The REACTION_ENTRY_OPTIMISTIC_LOCKING_ENABLED environment flag is on for the deployment.
  • The target entry actually carries an updateIdentifier — a token-less entry is never guarded, even with the flag on, rather than risk sending an unconditional write while an operator believes the guard is active.
  • At least one field path actually changed as a result of the write.

This is deliberately narrow: it protects the Update Data Entry reaction action specifically, not reaction writes in general, and it does not change how a human editor’s own edit is guarded. With the flag off, or for a write that doesn’t meet the conditions above, behavior is identical to before this change.

PATCH /v1/entities/{id}/module with {module, updateIdentifier} (and optional ?force=true). Requires an updateIdentifier match and no lock, and refuses the core module. It sends an UpdateDataEntityCommand with allowModuleUpdate = true and force as skipArchiveCheck. When the module actually changes, the handler cascades the new module id to the entity’s child views and collections. Since 1.8 (module cascade)

Who may call it changed in 1.10: the module voter no longer decides; the route is reserved for system administrators (see below).

Admin move, bulk move and what a move repairs Since 1.10

Section titled “Admin move, bulk move and what a move repairs Since 1.10”

Who may move. PATCH /v1/entities/{id}/module is now system-admin only: the SystemAdmin role (the license must include administration). Trusted service calls (a package import) carry no user permissions and are let through; a request bound to an end-user view is refused. Expect these refusals:

SituationResponse
Target is the core module400 (ImplicitModuleException)
Target unknown or not visible404
Target module is being permanently deleted409 MODULE_BEING_DELETED
Entity is already in that module400 ENTITY_ALREADY_IN_MODULE (a trusted service caller gets a 200 no-op, so a re-run import stays idempotent)

Virtual entities (proxy, joiner, aggregator) can be moved too. Their move changes nothing but the module; before 1.10 it answered 500 "The data not supported".

Bulk move. POST /v1/entities/move with {entityIds[], module} moves 1 to 50 distinct entities into one module, under the same authorisation. The target is checked once — the core module, an unknown module or one being deleted refuses the whole request and moves nothing. The entities are then moved one at a time, in request order (the old module’s page clean-up rewrites whole pages, so parallel moves would lose removals). The response is always 200:

{
"module": "<target module id>",
"moved": [{ "id": "<entity id>", "repairIncomplete": false }],
"failed": [{ "id": "<entity id>", "code": "ENTITY_ARCHIVE", "message": { "en": "…", "ar": "…" } }]
}

moved and failed list the outcomes in request order. repairIncomplete is true only when the move itself landed but a follow-up repair step failed (the failure is logged). The bulk path skips the updateIdentifier check (the writer’s conditional write still catches a concurrent edit) and never forces, so an archived entity always fails with ENTITY_ARCHIVE. Codes without their own message, such as LOCKED_OBJECT and UPDATE_CONFLICT, fall back to the generic ENTITY_MOVE_FAILED text.

What a move rewrites. A move is more than a field change on the entity. The platform re-parents and repairs everything that points at the old module:

WhatEffect
Views and collectionsFollow the entity into the new module.
Sensitive-field scopesRe-keyed to the new module in place; module wildcards are untouched.
Sidebar system linksRe-parented; duplicates are archived.
Counter widgets, timeline postsRe-stamped with the new module.
View access objects, permission and profile epochsRefreshed.
Old module’s pages and dashboardsLose whatever is linked to the moved entity (its id and the ids of its views, charts, queries and reports): matching list items and widgets are removed from that module’s pages, and its summaries are pulled from the module dashboard. System pages, other modules’ pages and the entity’s own dashboard are untouched. A page editor that is open at the time gets an update conflict.
ReactionsSendNotification actions are re-stamped with the new module.
AuditDataEntityUpdatedEvent carries EntityChanges.MODULE_CHANGED and previousModule.

Design consequence: moving an entity out of a module removes its widgets and summaries from that module’s pages and dashboard — it does not carry them along. Rebuild them in the target module afterwards. The admin UI says so in its warning.

In the admin UI. The single move is on the entity card menu and the entity details page (System Entities and a module’s Entities tab), with a target select that can also add a new module. The bulk move is in a module page’s header menu: it switches the list into selection mode (the selection survives paging) and disables Move above 50 entities.

Update service permissions (Request entities)

Section titled “Update service permissions (Request entities)”

PATCH /v1/entities/{id}/meta/permissions updates meta.audience / meta.observers on a Request-type entity only; any other type raises EntityNotOfTypeRequestException. Subject to the implicit-edit and lock checks.

DELETE /v1/entities/{id} → ArchiveDataEntityCommand → ArchiveDataEntityHandler. This route never hard-deletes: the handler sets state = Archived, stamps archiveInfo, appends to stateHistory, persists, and publishes DataEntityArchivedEvent (which downstream archives the entity’s entries). Delete is blocked for implicit non-Request entities (isEntityDeleteDenied → ImplicitEntityDeleteException) and gated further by Helper.checkEntityForArchiving. Since 1.10 a separate, admin-only route removes an entity for good — see Permanent delete.

Archiving an entity that is already archived answers 422 ENTITY_ARCHIVE Since 1.10 (message The data entity has been archived). It used to surface as a 500 and reach error tracking; the code and message are unchanged, only the status is now a client error. The same refusal applies to updating or moving an archived entity, so those also answer 422, and a bulk module move no longer logs an archived entity as a server failure. Do not confuse it with ENTITY_ARCHIVED (past tense, also 422), which the permanent-delete route below raises for an entity archived without a purge marker.

DELETE /v1/entities/{id}/permanent irreversibly removes an entity and everything it owns. It applies to Custom, Request and virtual (proxy, joiner, aggregator) entities, and it is system-admin only (the SystemAdmin role; the license must include administration). The ordinary DELETE /v1/entities/{id} above is unchanged and still only archives.

Unlink first. The purge refuses to leave dangling references. Before it removes anything it asks the dependency service what outside the entity still points at it, and refuses while that list is not empty. The checks, in order:

CheckRefusal
Not a purgeable type, implicit, in the core module, or a restricted / configuration / code-owned entity400 ENTITY_PURGE_NOT_ALLOWED
Archived through the ordinary route (no purge marker)422 ENTITY_ARCHIVED
Installed from a package403
Locked by another user409 LOCKED_OBJECT
Something outside the entity still references it409 ENTITY_HAS_DEPENDENTS (details.count)
The dependency check cannot answer503 DEPENDENCY_CHECK_UNAVAILABLE (not retried)

In the admin UI the delete dialog lists those references grouped by category, each with an Open link, and keeps Delete disabled until none remain; with nothing listed, an “I understand…” checkbox enables it.

What is removed. The entity is first archived and marked for purge (without an archive event, so its archive reactions never fire). Then its functions, views, pages, dashboard, reports, buttons, counter widgets, definitions, grants, entries collection and every row keyed by it go — for a Request entity also its catalog row, mirrors, drafts, service system objects and delegation exceptions. Just before the entity document itself is deleted, DataEntityDeletedEvent is published (a snapshot plus the ids deleted) and the audit trail records DATA_ENTITY_DELETED; downstream services each remove their own rows.

Resumable, not transactional. Every step is idempotent. If one fails, the entity stays archived and marked, and calling Delete again finishes the job. Success is 200 {success: true, result: null} (the OpenAPI document declares 204).

To remove a whole module with its entities, use the module’s own permanent delete — see Modules.

Entity cap and the isImplicit flag Since 1.10

Section titled “Entity cap and the isImplicit flag Since 1.10”

A tenant can carry a limit on the number of entities. When it is reached, creating an entity or a virtual entity is refused with 403 ENTITY_CAP_EXCEEDED and details: {cap, current} (message Creating this entity would exceed this application’s limit of N entities (it has M).). What to expect as a builder or integrator:

  • Which limit. The smaller of two, either of which may be absent: the plan’s maxEntities Since 1.10 (see Plan limits) and the per-tenant entity cap an operator can set (the tenant’s registry record, or a single-tenant install setting). With neither, nothing is ever capped.
  • What counts. Every entity that is not implicit and not in the core module, whatever its type, across every space of the tenant. Virtual entities count. Archived entities are not excluded. A creation in the core module is never checked. The check runs before the entity is persisted, so concurrent creations can overshoot the cap by at most their own number.
  • A package import counts the entities it would create up front and refuses the whole import before writing any module or entity — design packages with the target tenant’s limit in mind.
  • Entries have a limit too. The plan’s maxEntries refuses new entries with 403 ENTRY_CAP_EXCEEDED once usage would pass 110% of it, and a package install that would pass it is refused before it starts (see The entries limit and Installing). Entries of core-module entities do not count, and archived entries weigh a quarter.

Because implicit entities are exempt, isImplicit is ignored for user callers: POST /v1/entities stores isImplicit: false with no implicitOptions, and PATCH /v1/entities/{id} keeps the stored values whatever the body says. Package imports, bus commands and seed migrations are unchanged — only they can create implicit entities.

Entities carry a numeric version (default 0). This is not a per-save revision counter — it is bumped only when a change would break existing data, and only when the entity already has entries. The logic lives in DataEntityVersionService and is driven from UpdateDataEntityHandler.handleEntityVersion.

if (entriesAtAnyVersion == 0 && currentVersion == 0) → no versioning work
newVersion = (entriesAtAnyVersion > 0 && breakingChanges.length) ? current+1 : current

So the version increments only when (a) the entity has at least one entry — at any version, including entries already obsolete from an earlier unresolved breaking change — and (b) the change set contains at least one breaking change. Non-breaking edits, and edits to an entity that has no entries yet, keep the same version.

calculatingBreakingChanges diffs the old vs. new flattened field sets (matched by id + fullNormalizedName) plus workflow changes, and records reasons from BreakingChangesReasons:

Reason (enum)Triggered when
AddedRequiredFieldA brand-new field is required.
ChangeFieldToRequiredAn existing field becomes required.
FieldTypeChangeddataType differs from the old field.
FieldEncryptionChangedThe field’s Encrypt option is turned on or off Since 1.10. Added even when another reason already applies to the same field, so the encryption transition is always stamped. See Toggling Encrypt.
ChangeFieldToRepeatedField becomes repeatable.
ChangeFieldToNonRepeatableField stops being repeatable.
ChangeFieldToMultivalueField becomes multiValue.
ChangeFieldToSingleValueField stops being multiValue.
EnableDenyCircularRelationOnFieldsourceOptions.denyCircularRelation is turned on.
FieldRestoredA previously-deleted field is re-added with a different type.
EntityWorkflowChangedAny workflow step added/removed/reordered/changed, or a workflow deleted.

Not currently emitted (commented out in source): AddedUniqueField, ChangeFieldToUnique. ReferenceSourceChanged exists in the enum and has a detector (isSourceChangedOnReferenceField) but is not wired into the breaking set — so changing a reference field’s source does not, by itself, bump the version today. Deleting a field is not a breaking reason either: the diff walks only the fields present in the new definition; deleted fields are recorded separately in the version’s deletedFields (see Version records). A re-added field whose breaking-relevant flags (dataType, repeatable, required) all match its deleted predecessor is treated as a restore and is not breaking.

Rule of thumb: additive changes (a new optional field) are safe; type changes, new required fields, repeatable/multi-value changes, Encrypt changes and workflow changes are breaking and call for an upgrade pass.

When a breaking change bumps a published entity’s version, existing entries stay at their old version and are shown as obsolete until they are upgraded to the latest version. If the entity has a workflow, that workflow stops: the manager must decide what to do with the old values — leave them or update them — and the workflow reverts to its initial step. To migrate entries, use Upgrade entries (or Bulk upgrade) to move them to the new version, and Bulk update to mass-set field values across entries.

PATCH /v1/entities/{id}/breaking-changes runs the same diff against a payload without persisting — this backs the builder’s Preview breaking changes action, letting you see the impact on existing entries before publishing. The controller merges the partial payload onto the stored entity (dropping undefined keys so omitted fields are not read as deletions), pins id/version, and calls previewBreakingChanges, returning a BreakingChangesResult:

{ version, fields: DataEntityBreakingField[], hasBreakingChanges: boolean, workflowChanges?: [] }

Each version is stored as a DataEntityVersion document (collection DATA_ENTITY_VERSION_NAME) with: id, dataEntityId, version, createdAt, changes (DataEntityVersionChanges[] — each {changeType, isBreaking, field}), a diff (from just-diff over fields/internalEntities/workflows, kept as a fallback), and deletedFields. upsertDataEntityVersion updates the current version record in place (pruning breaking changes that no longer apply via isFieldStillBreaking, adding new non-duplicate ones) or creates a new one. Deleted fields are recorded separately via addDeletedFieldsToEntityVersion.

  • GET /v1/entities/{entity}/breaking-changes/{version} — diff between the given old version and the entity’s current version (calculateDiffBetweenChanges).
  • GET /v2/entities/{entity}/breaking-changes?versions=... — batch several versions at once; changes already reported by a higher version are filtered out of lower ones (dedup by field.normalizedName), and per-version errors are returned inline rather than failing the whole request. Since 1.4

All routes are under the data-service and require the OSOS OAuth2 authentication strategy plus the entity authorization voter. Roles noted where the handler declares them.

Method & pathPurposeNotes
POST /v1/entitiesCreate a (non-virtual) entityModule voter. Rejects core module & virtual types. Permissions routed to access-rights.
POST /v1/entities/virtualCreate a virtual entityModule voter. Flat or sources-shaped typeOptions.
GET /v1/entities/countCount entities (access-filtered)Roles: SystemViewer, Restricted.
GET /v1/entitiesList entities as DTOsRoles: SystemViewer, Restricted. Adds entriesCount, moduleDetails, metaFields.
GET /v1/entities/allList raw entities?includeImplicit= to include implicit entities.
GET /v1/entities/all/countCount raw entities?includeImplicit=.
GET /v1/entities/{id}Get one entity (DTO)Roles: SystemViewer, Restricted — definition only, never entry data. ?includeMainTitleFields= and ?includeMetaDataFields= (adds the locked _metaData block). Resolves virtual typeDetails and per-request sensitive-field access.
PATCH /v1/entities/{id}Update entityRequires matching updateIdentifier, no lock, not implicit-denied.
PATCH /v1/entities/{id}/breaking-changesPreview breaking changesNo persistence.
PATCH /v1/entities/{id}/moduleMove to another moduleSystem admin (license must include administration) Since 1.10 (was the module voter). ?force=. See Admin move.
POST /v1/entities/moveBulk move 1–50 entitiesSince 1.10. Same authorisation; per-entity moved/failed outcome.
PATCH /v1/entities/{id}/meta/permissionsUpdate service audience/observersRequest type only.
PUT /v1/entities/virtual/{id}Update a virtual entityRequires matching updateIdentifier, no lock.
DELETE /v1/entities/{id}Archive (soft delete)Blocked for implicit non-Request entities.
DELETE /v1/entities/{id}/permanentPermanent delete (purge)Since 1.10. System admin (license must include administration); refused while anything outside the entity references it. See Permanent delete.
GET /v1/entities/{id}/index-pathsFields that a custom index may useSince 1.10. [] for entities that cannot carry custom indexes. See Entity indexes.
POST /v1/entities/{id}/indexes/{indexId}/retryRebuild a failed custom indexSince 1.10. Entity edit access (license must include administration).
GET/POST /v1/entities/{entity}/tag-groups, PATCH/DELETE …/tag-groups/{id}Manage tag groupsSince 1.10. See Tag groups.
GET /v3/entities/{entity}/entries/exportQuick export of the entity’s entriesSince 1.10. format=xlsx or csv. See Quick export.
GET /v1/entities/{entity}/breaking-changes/{version}Diff old→current version
GET /v2/entities/{entity}/breaking-changesBatch version diffs?versions= array. Since 1.4
  • GET /v1/entities/{id} deliberately returns only the entity definition (fields, types, module, meta) — never entry data — so viewers and Restricted-with-grants users can render reference-field pickers for entities outside their grants. Entity ids are space-scoped UUIDs, so this is not an enumeration vector.
  • Each returned DTO carries sensitiveMaskedFields, computed per request for the current user (never cached, never persisted). Since 1.8
  • ?includeMetaDataFields=true appends a locked virtual _metaData block (and its backing internal entity) so entry metadata fields can be selected inside a view. Since 1.8

Referenced entities on the entity DTO Since 1.10

Section titled “Referenced entities on the entity DTO Since 1.10”

To render reference fields a client used to call GET /v1/entities/{id} once per referenced entity. The DTO now carries what it needs in a response-only referencedEntities array:

"referencedEntities": [
{
"id": "<entity id>",
"moduleId": "<module id>",
"isStatic": false,
"mainTitleField": {
"id": "…", "normalizedName": "name", "fullNormalizedName": "name",
"dataType": "…", "renderOptions": { }
}
}
]
  • Where it is returned: GET /v1/entities/{id}, GET /v2/entities/{entity}/entries/{id} and GET /v2/entities/{entity}/entries/draft/{id} — not the entity list routes.
  • What it covers: every reference field of the entity, including block sub-fields, display-only fields and meta fields (both sources[].entity and the legacy comma-separated source), de-duplicated in first-seen order. A referenced entity that has been deleted is simply left out, so keep a fallback fetch.
  • Static targets. References to DataModule, DataEntity, DataView, DataViews, Report, GenericView and System are flagged isStatic: true and described under the core module with a localized title. Entry values that point at one of them now come back with a real _resolved (title, module and entity ids) on entry reads that resolve relations and on tree reads. These titles are resolved without a per-target access check, so a reader of the host entry sees the names of the modules, entities and views it points at — keep that in mind before storing such references on widely readable entities.

Nothing is persisted and no migration is involved.

Deep-linking to an entity designer tab Since 1.8

Section titled “Deep-linking to an entity designer tab Since 1.8”

The entity designer’s active tab is reflected in the page URL as a named ?tab=<slug> query parameter, so a tab is an addressable place rather than transient UI state. In practice this means you can:

  • Bookmark or share a tab. Copy the URL while the Queries tab is open and it reopens on Queries for whoever follows the link — useful when handing a colleague a specific part of an entity to look at.
  • Refresh without losing your place. Reloading the designer keeps you on the tab you were working in.
  • Step back through the tabs you visited. Opening a tab adds a browser history entry, so Back and Forward walk through the tabs you opened instead of jumping straight out of the entity.
  • Link into a tab from your own runbooks or tooling by appending ?tab=<slug> to the entity’s designer URL.

The slugs below are the complete set, listed in the order the tabs appear in the designer:

Tab?tab= slug
Entriesentries
Queriesqueries
Viewsviews
Reactionsreactions
Announcementsannouncements
Buttonsbuttons
Listslists
Dashboarddashboard
Reportsreports
Relationsrelations
Templatestemplates
Storesstores
Informationinformation
Lock historylock-history
Functionsfunctions
Permissionspermissions
Scriptsscripts

Fallbacks. A designer URL with no ?tab= parameter opens on Entries. A slug that is not in the table above is ignored — the designer simply opens on the tab it last remembered for that entity, with no error. Note that older numeric deep links (?tab=1, ?tab=3, …) are no longer recognised; replace any you have kept with the named slug.

Quick edit and entity-level validators Since 1.8

Section titled “Quick edit and entity-level validators Since 1.8”

Inline (quick) edit changes one field on an entry and is applied as a patch rather than a full update, so its validation used to be narrower than the entry form’s. A patch was blocked only when a validation error named a field the patch actually touched, or when a configured Standalone/Value function validator rejected the change.

That left a gap. An entity-level custom validator — the business and uniqueness rules an entity enforces across its fields — raises an error that is not tied to any single field, and is not a function validator. Those errors were silently dropped, so a quick edit could save even though the rule had failed. The full create and update paths never had this gap.

Since 1.8 any error raised by an entity-level custom validator blocks the quick edit, and the validator’s own message is returned to the caller instead of being flattened into the generic list of field-validation errors — so the user sees the rule’s real explanation rather than a vague “invalid entry”.

Example. An organizational-unit entity enforces “only one manager per org unit”. Quick-editing a member’s role to Manager on a unit that already has one used to save quietly: the rule’s error carried no field name, and the patch had touched only the role field. It now blocks the save and surfaces the rule’s own “multiple manager role not allowed” message.

The entity builder (Edit Entity) has an Indexes tab, next to Workflows, Timeline and RTC, where an administrator defines extra MongoDB indexes for the entity’s entries — typically to speed up a filter or sort that a large entity uses all the time, or to enforce uniqueness across a combination of fields. The tab is offered for the same entities as the Timeline and RTC tabs, so not for core-module, Request or virtual (proxy, joiner, aggregator) entities, and it is read-only on an entity installed from a package.

Defining an index. Give it a name, an ordered list of fields with a direction for each (drag or use the keyboard to reorder), optionally Unique, and an optional partial filter written as MongoDB JSON. The dialog runs the same checks as the server, so Save stays disabled on an invalid draft. The server’s rules (422 ENTITY_INDEX_* on violation):

RuleLimit
Custom indexes per entityat most 10
Fields per index1 to 8 distinct fields, from the pickable paths (GET /v1/entities/{id}/index-paths): indexable value.* fields plus state, creationInfo.doneAt, creationInfo.doneBy.dataEntry, updateInfo.doneAt, updateInfo.doneBy.dataEntry
Names and key setsunique, also against system and migration-defined indexes
Partial filter operators$eq, $exists: true, $gt, $gte, $lt, $lte, $type; no embedded-document operands
Advanced MongoDB optionsnot accepted
Unique indexmust carry a partial filter that excludes entries where the field is empty (ENTITY_INDEX_UNIQUE_REQUIRES_FILTER)

The last rule matters because MongoDB indexes a missing value as null, so a plain unique index would reject the second entry that leaves the field empty. For example, a unique index on value.code needs a filter such as:

{ "value.code": { "$type": "string" } }

Existing indexes that you do not change are grandfathered, even if they would fail a rule today.

Saving. Index edits are staged in the form and saved with the entity (PATCH/PUT). A PATCH that omits indexes keeps the stored ones, so other integrations that update an entity do not wipe them. Removing a field also removes the custom indexes built on it.

Status and retry. Indexes are built asynchronously by the indexing service, not during the save. The server keeps an indexStatus[] per custom index — building right after a save, then ready or failed with MongoDB’s error. The tab refreshes while anything is building, shows the error on a failed index (typically duplicate data under a unique index; a field’s own Unique option is switched back off when its unique build fails) and offers Retry, which calls POST /v1/entities/{id}/indexes/{indexId}/retry. An edited index that has not been saved shows Not saved yet. Custom indexes are named IXU_<entity>_<12 hex>; the entity’s system indexes are listed but locked.

A view is not modelled on this page — the view builder is documented in Data Views. Four recent changes belong here anyway, because each of them is about how a view reacts to the entity’s fields and settings, and each was previously discovered the hard way.

System buttons, per-button order, and the API button

Section titled “System buttons, per-button order, and the API button”

A view’s action buttons live in systemButtons, an array in which each entry names the button and carries its own order. That per-button order replaces systemButtonsOrder, the older array-of-ids property, which is now deprecated: it is still read for backward compatibility — a view that still carries one has it honoured, and its sequence decides the final order — but new configuration should express order per button. When a view carries no legacy order at all, the buttons follow their canonical sequence and the interface applies its own default.

The implicit buttons a view can expose are View, Edit, Archive, Create, Duplicate and API, plus one per document template on the entity. Which of them are allowed follows from the view’s own configuration rather than being chosen from a free list — Create, Edit and Archive from the operations the view permits, View from its entries configuration, Duplicate from its duplicate-entry setting. Buttons the configuration no longer permits are reconciled away when the view is saved, rather than blocking the save.

Since 1.10 — the API button appears only when that view’s Swagger document is turned on. It is the button that opens the view’s own per-view OpenAPI document; turning the setting off removes the button again, leaving the order of the others intact.

A view is saveable again after one of its fields is deleted

Section titled “A view is saveable again after one of its fields is deleted”

Deleting a field from an entity used to make every view still referencing it unsaveable — including a permissions-only change, which offers no field picker with which to clear the dangling reference. A view now prunes those stale references silently and saves, under three rules that keep the pruning from hiding real breakage:

  • Existing views only. A reference is pruned only if the stored view already carried it. A field path a client has just invented still reaches validation and is still rejected, and creating a view never prunes at all.
  • Never down to empty. If every entry in a collection is stale, the feature is broken rather than merely drifted, so validation is allowed to fire and name what an administrator has to fix. Grouping is the single exception, because it has no enabled/disabled switch of its own — an empty level list is itself the valid “no grouping” state.
  • Collections only. Settings that name a single required field are load-bearing and are never dropped: a kanban’s category field, a tree’s main title, and their kind. Only list-shaped settings are pruned — the view’s field list, filter-first fields, grouping levels, a table face’s columns and a calendar face’s date mappings.

Meta-data (virtual) fields are never mistaken for drift.

Section titled “Restricted link permissions and navigation order”

Two fixes to how a link — the navigation or restricted-access entry pointing at a view — reacts to that view being saved:

  • An upgrade no longer empties a Restricted link’s audience. Upgrading a tenant used to clear the users and groups on every active Restricted link, so restricted pages and views silently lost their audience and became unreachable to exactly the people who should have seen them. The link handlers now read the live grants rather than trusting the event that triggered the rebuild, and a guarded repair restores audiences that the old behaviour emptied. Archived Restricted links were never affected.
  • A navigation link keeps its order across a save. Saving the owning view used to reset the link’s position, collapsing the navigation order onto its alphabetical tiebreaker — and an upgrade, which re-saves every view, flattened the whole navigation in one pass. A link now inherits the view’s own display order instead. This one self-heals on the next save of each affected view; there is nothing to run.

Document templates over a view — current limitation

Section titled “Document templates over a view — current limitation”

Exporting a document template from a view over an entity containing a block field used to produce a file with zero records, while the same template exported from the administration area worked. That is fixed.

What is not fixed, and is worth designing around: a document template that references a field the triggering view does not display still renders that field blank. The view’s field list drives both which relations are resolved and which values are read, so widening one widens the other — which is what caused the empty exports. Until that is separated, make sure a view used to trigger a template export displays every field the template prints.

An entity’s admin tags — queries with tag set, offered to end users as one-click filters — can be organised into tag groups. In the UI they live in a Tag groups sub-tab of the entity’s Queries tab, and the query form’s group control is a clearable select with + New group.

A group is a TagGroup document with a name (3–128 characters, trimmed, unique per entity in each language ignoring case), a normalizedName (unique per entity, its identity in packages) and a fixed grey colour. Membership is stored on the tag itself (DataQuery.tag.tagGroup), so a tag belongs to at most one group.

RouteBehaviour
GET /v1/entities/{entity}/tag-groupsGroups with queries: the ids of the entity’s enabled admin tags in each.
POST /v1/entities/{entity}/tag-groupsCreate a group (entity edit access).
PATCH /v1/entities/{entity}/tag-groups/{id}Only name and queries; queries sets membership to exactly the listed tags, moving them out of any other group.
DELETE /v1/entities/{entity}/tag-groups/{id}Ungroups the tags, then deletes the group. Answers 200 {success: true, result: null}. Galleries that referenced the group are not rewritten; the UI drops the dangling id.

Errors: 400 TAG_GROUP_NAME_DUPLICATE (with details.locale), 400 TAG_GROUP_INVALID_QUERY (not an enabled admin tag of this entity), 404 TAG_GROUP_NOT_FOUND. Note the changed behaviour of tag.tagGroupName on query create/update: it now creates a group only when the name is free and otherwise fails with TAG_GROUP_NAME_DUPLICATE — it no longer silently reuses an existing group of the same name. Tag groups travel with the entity in packages, and a gallery that points at a missing tag or group imports without that option instead of failing.

Quick export of an entity’s entries (admin) Since 1.10

Section titled “Quick export of an entity’s entries (admin) Since 1.10”

The admin entity page has an Export Entries action. It is the gallery quick export without a view, backed by GET /v3/entities/{entity}/entries/export:

ParameterMeaning
formatxlsx or csv (case-insensitive); anything else is refused.
fieldsThe columns. Without it: every entity field in defined order, each block expanded into its fields.
filterCriteria, search, include_virtual, appliedQuickFilters, appliedTagsFilters, groupBy, quickFilterParametersThe same filters as the admin list.

The response is the file, or — when the matches exceed MAX_ENTRIES_RESULT_LIMIT (default 10,000) — a bus messageId, and the file is delivered in the background. The file and its sheet are named after the entity.

How it differs from the gallery route GET /v3/entities/{entity}/views/{id}/entries/export: rows are scoped like the admin entries list rather than by a view, so there is no allowExport, filter-first, human-verification or anonymous truncation. Access is the right to list the entity’s entries, re-checked when a background export runs; anonymous callers are refused, because a background export needs a recipient.

Where CSV is available. CSV exists only in these two quick exports — this admin route and the gallery quick export. Template exports (/v1/entities/{entity}/entries/export/{templateId}) produce whatever the template defines (document, XLSX or PDF), and reports remain XLSX and PDF.

Derived entries and entry permanent delete Since 1.10

Section titled “Derived entries and entry permanent delete Since 1.10”

A derived entry is a copy that a source entry produces in another entity: a proxy, aggregator or joiner entry of a virtual entity. An index links each copy to its source. Permanently deleting a source entry must remove its copies, or they are left orphaned — and once the source’s files are released, the orphan sweeper may delete files the copies still show.

  • Bulk permanent delete cascades. Permanently deleting entries in bulk used to leave their proxy, aggregator and joiner copies behind (only the single-entry delete cascaded). Each of the three cascades now also runs for a bulk delete, for every entry in it, and a failure makes the whole delete event retry.
  • A retried cascade finishes every copy. If a copy was already deleted but its index cleanup failed, the retry no longer stops on the missing copy: it skips that copy’s delete and still cleans its index row.
  • A stale index row does not stop the cascade. An index row can outlive the derived entity it points to. The aggregator and proxy cascades used to give up on that row and skip every remaining copy (or leave the row behind); now, like the joiner cascade, they delete the stale row, log a warning and carry on. A genuinely missing source entity still skips the cascade.

When an entry is saved, the platform records which entity owns its files, so file cleanup knows when they are no longer used. An entry saved in a custom store that names no entity at all (neither the entity id nor the entry’s dataEntity) used to be registered under a global owner, which the cleanup could not match to any entry — so it could delete files the entry still listed. Such a save now fails with 500 (Cannot record the files of a <store> entry: it has no entity id) instead. A normal entry write always carries its entity and is unaffected; the fixed stores keep their global, module and entity scopes.

  • Async writes. A 2xx from POST/PATCH/PUT means the command was accepted and enqueued, not that it succeeded. Validation failures inside the handler are reported via the command-executed socket message, not the HTTP response. Use the invoker token / socket reply to confirm the real outcome.
  • Field identity matters. Renaming a field keeps its id, so it is not treated as delete+add by the versioning diff. Reusing a normalizedName for a new field (new id) after deleting the old one may register as FieldRestored.
  • source is deprecated on fields in favour of the sources array, though much of the codebase still reads source for single-reference fields.
  • Internal-entity block fields have their block.internalEntity back-filled to the internal entity’s id during validation, so clients need not set it precisely as long as the block/internal-entity pairing is consistent.

Changes to behaviour that integrators may still meet in older data or older clients:

  • Custom validation message and async uniqueness (form). A field’s custom validation error message could briefly disappear right after being set, if the field also carried an async uniqueness check: the uniqueness result used to overwrite the whole error object, wiping out the custom-rule error even though the field was still invalid. Now the uniqueness errors are merged with the custom-rule errors.
  • Query builder rows loaded from a saved query. In the query builder used by a data query’s criteria and by filter/expression rows, a row loaded from a saved query could stay invalid until hand-edited — blocking Save Query / Apply on a valid row — and Clear Query could leave a stale field selected in a row’s field picker. Both are fixed.
  • Platform reference sources. Before 1.8 the entity designer’s reference-source picker tried to fetch dataQuery / dataViews sources as entities and showed an “Entity not found” toast over a correctly-configured field.
  • Services Catalog archive. Before 1.8, archiving a service from the Services Catalog only changed the catalog row, leaving already-submitted requests for that service visible in My Requests / Inbox.

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27