Edit an interface definition

Breaking

Because interfaces expose API names, any change to an interface definition has the potential to break downstream applications and will necessarily break existing object implementations. When adding a new required property or link type constraint to an interface, all implementations for object types that use the interface must be made in the same update to your Ontology. We also recommend updating your interface definitions and consumers at the same time.

If your downstream applications cannot be updated at the same time as interface changes, you can alternatively create a new version of the interface (as an extension or a standalone interface) and migrate to the new interface definition as soon as possible.

Add new properties

From the Properties tab of the interface configuration, choose New property. This will open an interface property configuration side panel.

Edit interface properties.

The available options for editing property metadata are clustered into four different tabs which give access to the following configurations:

  1. Display name and description: Select into the existing display name or description to edit the text.
  2. API name: Select into the existing API name to change its value.
  3. Property base type: Select the property’s base type from the dropdown menu. The type of the property constrains the possible set of operations that can be done on the property’s values.
    • For example, a property with base type timestamp can be shown in a timeline widget in Object Explorer.
  4. Primary key constraint: Indicate whether a property should be a primary key or cannot be a primary key.

If you make a change to the interface property types, you must also update all object types implementing this interface.

  1. Type classes: Apply type classes as additional metadata that can be interpreted by applications.
  2. Render hints: Improve how a property value is rendered and indexed into Object Storage V1 (Phonograph) by selecting render hints from the checklist.
  3. Visibility: Select the existing visibility to open a dropdown menu of available visibilities. A prominent property will lead applications to show this property first to users. A hidden property will not appear in user applications.

Add shared properties

From the Properties tab of the interface configuration, select Add shared properties and choose a shared property to add to the interface.

From the Link type constraints tab, select Create new link type constraint and add the necessary constraint metadata.

Remove properties

From the Properties tab, select ... next to the property you wish to remove from the interface. Alternatively, open the interface property side panel and select the trash icon in the upper right corner.

Remove property from an interface.

From the Link type constraint tab, select ... next to the link type constraint you wish to edit or remove from the interface.

Remove or edit a link type constraint.

If editing a constraint, you can update the metadata as you would if you were creating the link type constraint for the first time.