Docs
/
/

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

GET/v1/schemas

Query parameters

item_type
string

Filter schemas by item type (user, tenant, or object).

environment
string

The environment slug.

branch
string

The slug of a branch to use. This option can only be used when environment is "development".

Returns

PaginatedItemSchemaResponse

A paginated list of ItemSchema. Contains a list of entries and page information.

A list of entries.

item_id
string

The object collection key. Only present for object schemas.

item_type
enum(string)
Required

The item type the schema applies to.

usertenantobject
properties
ItemSchemaProperty[]
Required

The managed properties for the schema.

description
string

The description of the property.

item_type
string

The referenced item type when the property stores an item reference.

key
string
Required

The property key.

preview_text
string

The property preview text.

type
string

The primitive or referenced item type for the property.

visible
boolean

Whether the property is visible in the schema management UI.

page_info

The information about a paginated result.

after
string

The cursor to fetch entries after. Will only be present if there are more entries to fetch.

before
string

The cursor to fetch entries before. Will only be present if there are more entries to fetch before the current page.

page_size
integer

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

GET/v1/schemas/{item_type}

Path parameters

item_type
string

The item schema type to retrieve (user, tenant, or object).

Query parameters

collection
string

The object collection, required when item_type is object.

environment
string

The environment slug.

branch
string

The slug of a branch to use. This option can only be used when environment is "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

PUT/v1/schemas/{item_type}

Path parameters

item_type
string

The item schema type to upsert (user, tenant, or object).

Query parameters

collection
string

The object collection, required when item_type is object.

environment
string

The environment slug.

branch
string

The slug of a branch to use. This option can only be used when environment is "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

PUT/v1/schemas/{item_type}/validate

Path parameters

item_type
string

The item schema type to validate (user, tenant, or object).

Query parameters

collection
string

The object collection, required when item_type is object.

environment
string

The environment slug.

branch
string

The slug of a branch to use. This option can only be used when environment is "development".

Request body

Returns

ItemSchema

#

A managed schema configuration for users, tenants, or objects.

Attributes

item_id
string

The object collection key. Only present for object schemas.

item_type
enum(string)

The item type the schema applies to.

usertenantobject
properties
ItemSchemaProperty[]

The managed properties for the schema.

description
string

The description of the property.

item_type
string

The referenced item type when the property stores an item reference.

key
string
Required

The property key.

preview_text
string

The property preview text.

type
string

The primitive or referenced item type for the property.

visible
boolean

Whether the property is visible in the schema management UI.

New chat