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 to work with.

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. 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: