Skip to main content
POST
Create entity schema

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

ID of the app whose entity schemas you want.

Body

application/json
entity_name
string
required

Name for the new entity. Letters, numbers, and underscores only. Cannot be User.

Example:

"Invoice"

entity_schema
Entity Schema · object
required

The entity's JSON Schema: its properties, its required fields, and any row-level security rules under rls.

Example:

Response

The created 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: