SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

atom.create

BETA

Short name: create

Version: 1.0.0

System primitive that creates an atom with optional initial data, lexemeIds, and visibility.

Back to primitive library

Inputs

KeyTypeRequiredDescription
dataobjectfalseField map for the new atom. Each entry is a FieldEntry (see Atom model).
isPublicbooleanfalseWhether the atom is publicly readable.
lexemeIdsarray<objectId>falseLexemes the new atom subscribes to. Caller must have read access to each.
ownerOrganizationAtomIdobjectId|nullfalseOrganization atom that owns the new atom. Caller must be a member or admin.

Outputs

KeyTypeRequiredDescription
atomobjectfalseCreated atom summary: { id, version, lexemeIds, data, isPublic }.
dataDriftReportobjectfalseOptional non-blocking lexeme/data drift diagnostics for unknown fields, missing required fields, type mismatches, and validator warnings.