Skip to main content
PUT
Update entity schema

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

entity_name
string
required

Name of the entity to replace, as returned by List entity schemas. Pass User to set the built-in user entity's custom fields.

app_id
string
required

ID of the app whose entity schemas you want to work with.

Body

application/json
entity_schema
Entity Schema · object
required

The entity's full JSON Schema, replacing the stored one. Needs "type": "object" and a properties object, plus any required fields and row-level security rules under rls.

Example:

Response

Successful Response

One of an app's entities and its stored JSON Schema.

entity_name
string
required

Name of the entity.

Example:

"Invoice"

entity_schema
Entity Schema · object
required

The entity's stored JSON Schema, including its properties, required fields, and any row-level security rules under rls. For the app's own entities it also carries a name key holding the entity name. For User it holds only the custom fields added on top of the built-in ones, and has no name key.

Example: