Skip to main content
PUT
Sync entity schemas

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
entityNameToSchema
Entitynametoschema · object
required

The app's complete set of entities, keyed by entity name. Each value is that entity's JSON Schema, which needs "type": "object" and a properties object, plus any required fields and row-level security rules under rls. Any entity the app currently has that this map leaves out is deleted.

Example:

Response

Successful Response

What a schema sync changed, split into created, updated, and deleted entities.

created
string[]
required

Entities that did not exist before and were added.

Example:
updated
string[]
required

Entities that already existed and were replaced.

Example:
deleted
string[]
required

Entities the app had and the request left out, which were removed.

Example:
warnings
string[]
required

Row-level security rules Base44 stored but can't enforce. The sync still applied, so an entity named here exists with a rule that isn't protecting anything. Base44 reports a rule this way only for an entity the sync adds fresh (one that didn't exist in the app before). On an entity the app already has, a new or changed rule of this kind fails the call with a 400. An unchanged unenforceable rule on an existing entity is left in place silently and doesn't appear here.

Example: