objects creates an object inside a data scope’s space. The scope already names the space, so the object doesn’t repeat it. Objects are created through the standard object services — the same versioning, search indexing, and events as an object created in the UI.

Tip

Every later version of the package can only add objects under new key values. An object installed by an earlier version is never updated or deleted by an upgrade, even if a newer version no longer declares it.

Minimal JSON

{
  "key": "",
  "objectTypeKey": "",
  "name": ""
}
{
  "key": "customer_db",
  "objectTypeKey": "core_data_catalog#database",
  "name": "Customer DB",
  "attributes": [
    {
      "attributeTypeKey": "core#description",
      "value": "Sample database used across the onboarding tour."
    }
  ]
}

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey. Stays stable across package versions — it’s the identity a later version uses to add new objects without re-creating or touching this one.stringYes
objectTypeKeyKey of the object’s object type.stringYes
nameName of the object.stringYes
attributesArray of attribute values to set on creation. Each attribute consists of: attributeTypeKey: Key of the attribute type., value: Value to set. May embed an image reference token dawiso-pkg://object-image/<imageKey> (declared in objectImages), rewritten to the image’s serving URL when the package installs.arrayNo
parentKeykey of another object declared in the same package, used as this object’s parent. Object hierarchies are supported; a cycle among parentKey values fails package validation.stringNo