Item schemas mAPI reference
Complete reference documentation for the Item schemas resource.
Item schemas
#Item schemas define the managed properties for users, tenants, and objects in a given environment.
You can retrieve, update, and validate the schema for each item type, as well as list all item schemas in a given environment.
List item schemas
#Retrieve the configuration for all managed item schemas (user, tenant, and object) in a given environment. Branch-qualified reads return the schemas inherited from the parent environment.
Endpoint
Query parameters
Filter schemas by item type (user, tenant, or object).
The environment slug. When omitted, the account's default environment is used.
The slug of a branch to use. When environment is omitted, the branch is resolved from Development after the account default is injected. When environment is supplied, it must be "development".
Returns
A paginated list of ItemSchema. Contains a list of entries and page information.
A list of entries.
The object collection key. Only present for object schemas.
The item type the schema applies to.
The managed properties for the schema.
The description of the property.
The referenced item type when the property stores an item reference.
The property key.
The property preview text.
The primitive or referenced item type for the property.
Whether the property is visible in the schema management UI.
The information about a paginated result.
The cursor to fetch entries after. Will only be present if there are more entries to fetch.
The cursor to fetch entries before. Will only be present if there are more entries to fetch before the current page.
The number of entries to fetch per-page.
Get an item schema
#Retrieve the configuration for an item schema (user, tenant, or object) in a given environment, including all of its configured properties.
Endpoint
Path parameters
The item schema type to retrieve (user, tenant, or object).
Query parameters
The object collection, required when item_type is object.
The environment slug. When omitted, the account's default environment is used.
The slug of a branch to use. When environment is omitted, the branch is resolved from Development after the account default is injected. When environment is supplied, it must be "development".
Returns
Upsert item schema properties
#Applies changes for the item schema properties in the request. Omitted properties are left unchanged; hide a property with visible: false rather than removing it. The required permissions depend on what changes: changing a property's display settings (visible/description) requires item_schemas:manage; changing a property's type or example, or adding a property, requires item_schemas:edit. Adding a property that is already hidden or already has a description requires both.
Endpoint
Path parameters
The item schema type to upsert (user, tenant, or object).
Query parameters
The object collection, required when item_type is object.
The environment slug. When omitted, the account's default environment is used.
The slug of a branch to use. When environment is omitted, the branch is resolved from Development after the account default is injected. When environment is supplied, it must be "development".
Request body
Returns
Validate an item schema's configuration
#Checks an item schema configuration payload and reports which permissions it would require, without saving any changes.
Endpoint
Path parameters
The item schema type to validate (user, tenant, or object).
Query parameters
The object collection, required when item_type is object.
The environment slug. When omitted, the account's default environment is used.
The slug of a branch to use. When environment is omitted, the branch is resolved from Development after the account default is injected. When environment is supplied, it must be "development".
Request body
Returns
ItemSchema
#A managed schema configuration for users, tenants, or objects.
Attributes
The object collection key. Only present for object schemas.
The item type the schema applies to.
The managed properties for the schema.
The description of the property.
The referenced item type when the property stores an item reference.
The property key.
The property preview text.
The primitive or referenced item type for the property.
Whether the property is visible in the schema management UI.