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.

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

The updated entity schema.

entity_name
string
required

Name of the entity.

Example:

"Invoice"

entity_schema
Entity Schema · object
required

The entity's stored JSON Schema. For the app's own entities this includes a name key Base44 sets on every write; the User schema does not get one.

Example: