ObjectSchemaCreate event fires when a user defines a new custom object type within a sub-account. Custom object schemas establish the structure — labels, searchable properties, and display rules — for any user-defined data model. Subscribe to this event to react to new data models being introduced, provision related resources, or audit schema changes across accounts.
Payload
| Field | Type | Description |
|---|---|---|
key | string | Unique key identifying this object type, scoped to the location (e.g., "custom_objects.pet") |
locationId | string | Sub-account ID where the schema was created |
primaryDisplayProperty | string | The property key used as the primary display name for records of this type |
labels | object | Human-readable names for the object type |
labels.singular | string | Singular label for the object type (e.g., "pet") |
labels.plural | string | Plural label for the object type (e.g., "pets") |
objectType | string | Always "USER_DEFINED" for custom schemas |
searchableProperties | array | List of property keys that can be searched on records of this type |
createdAt | string | ISO 8601 timestamp of when the schema was created |
updatedAt | string | ISO 8601 timestamp of the last schema modification |
createdBy | object | Identity of the user who created the schema |
updatedBy | object | Identity of the user who last modified the schema |
Example payload
Related
- Object Schema Update — fires when an existing schema is modified
- Record Create — fires when a record of a custom object type is created
- Objects API — manage custom object schemas and records
.png?fit=max&auto=format&n=EQK5eX9kTD8NzWwA&q=85&s=878008bf159fcc4964d0c0d508b6e400)