#schema Endpoints (14)

GET/v1/schemaopen-api (Python :8010)#schema

Get Schemas Api

Returns all registered schemas for the tenant as a dictionary keyed by api_name. Matches frontend expectation: schemas[object.toLowerCase()]

POST/v1/schemaopen-api (Python :8010)#schema

Create Schema Api

Creates a new custom object: compiles CREATE TABLE and inserts schema metadata.

PATCH/v1/schemaopen-api (Python :8010)#schema

Update Schema Api

Updates schema metadata (title, prefix, required, properties).

GET/v1/schema/sync/statusopen-api (Python :8010)#schema

Get Schema Sync Status Api

Detects drift between the physical PostgreSQL database and Valstorm schemas metadata. Designed for engineering teams who directly execute SQL or run migrations.

POST/v1/schema/syncopen-api (Python :8010)#schema

Sync Schema From Postgres Api

Introspects native PostgreSQL tables/columns and synchronizes them into Valstorm schemas metadata. Enables engineering teams to run direct SQL migrations (Alembic/Prisma/Flyway) and immediately reflect new tables and columns into the dynamic UI grids, GraphQL, and AI agent runtime.

GET/v1/schema/{object_name}open-api (Python :8010)#schema

Get Schema By Name Api

Returns a single schema by api_name or schema ID.

GET/v1/schema/{object_name}/field/{field_name}open-api (Python :8010)#schema

Get Schema Field Api

Returns definition and metadata for a specific field on an object schema.

POST/v1/schema/fieldopen-api (Python :8010)#schema

Create Schema Field Api

Adds a field to an existing object: executes ALTER TABLE ADD COLUMN and updates schemas.

PATCH/v1/schema/fieldopen-api (Python :8010)#schema

Update Schema Field Api

Updates an existing field's metadata in the schema definition.

DELETE/v1/schema/{schema_id}open-api (Python :8010)#schema

Delete Schema Api

Deletes an object schema and drops the physical table.

DELETE/v1/schema/{object_id}/{field_name}open-api (Python :8010)#schema

Delete Schema Field Api

Drops a column from the table and removes it from schemas metadata.

POST/v1/schema/{object_id}/validation-ruleopen-api (Python :8010)#schema

Create Validation Rule Api

Adds a validation rule to an object schema.

PATCH/v1/schema/{object_id}/validation-rule/{rule_api_name}open-api (Python :8010)#schema

Update Validation Rule Api

Updates an existing validation rule on an object schema.

DELETE/v1/schema/{object_id}/validation-rule/{rule_api_name}open-api (Python :8010)#schema

Delete Validation Rule Api

Deletes a validation rule from an object schema.