Skip to content
Select theme

Define and publish types

AI agent getting started? Read Agents: start here first.

Types define the properties and presentation of your engineering records. Publish them for the organisation, then create objects that follow those definitions. A type change is separate from a data-branch change.

Download requirement-type.json. This complete example defines four required properties, an object detail view and a collection table. It uses the distinct key guide-requirement so it does not replace the turbine example’s Requirement type.

Use an organisation where that key is not already published. The file maps type keys to definitions and is ready for the CLI’s --from argument. You can add relationships and a structure tree later.

Sign in and attach the CLI to the intended organisation, then check for an open change set:

Terminal window
openeng types draft current

The organisation shares one open change set. If one exists, inspect it with openeng types draft state --change-set <id> and coordinate with its authors. Use a draft with no other proposed changes for this exercise; do not replace someone else’s work with the example file.

When you are ready, open the draft and keep the returned identifier and revision:

Terminal window
openeng types draft open

Use the draft’s current revision when revising it, then the new revision returned by that call when validating:

Terminal window
openeng types draft revise --change-set <id> --revision <revision> --from requirement-type.json
openeng types draft validate --change-set <id> --revision <new-revision>
openeng types draft show --change-set <id> --project <project-id>

Validation should report no violations. Inspect the complete diff before publishing; accepting a change set publishes all its proposed changes.

Terminal window
openeng types draft accept --change-set <id> --revision <reviewed-revision>
  1. Open More types in the project’s navigation sidebar and select Guide Requirement. The example sets no sidebar group, so it appears there.
  2. On a working branch, create an object with the four required fields.
  3. Open it to see the configured detail panel.
  4. Select App in the type workspace to see the configured collection table. The built-in Table and Graph tabs remain available separately.

Older objects keep their saved type version; publication does not rewrite them. Next, configure views or draft types with an agent.