Skip to main content

Data

Generated from apiome-rest/openapi.yaml (API version 1.204.1) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: data · 6 operations

GET /v1/data/{tenant_slug}​

Data Api Info

Verify data API is mounted and tenant is authenticated. Returns 200 with tenant_slug.

Operation id: data_api_info_v1_data__tenant_slug__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for data api info.application/json object
422Validation Errorapplication/json HTTPValidationError

POST /v1/data/{tenant_slug}/records​

Create Data Record

Create a new data record and data_snapshot row. Embedding is computed asynchronously and stored in data_snapshot.

Operation id: create_data_record_v1_data__tenant_slug__records_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for create data record.

Responses

StatusDescriptionBody
200Successful response for create data record.application/json object
422Validation Errorapplication/json HTTPValidationError

GET /v1/data/{tenant_slug}/records/{record_id}​

Get Data Record

Get the current snapshot data for a record (for edit form). Returns 404 if record not found or deleted.

Operation id: get_data_record_v1_data__tenant_slug__records__record_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
record_idpathstringyesData record identifier.
class_schema_idquerystringyesClass schema ID
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get data record.application/json object
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/data/{tenant_slug}/records/{record_id}​

Update Data Record

Update an existing data record and data_snapshot. Embedding is recomputed asynchronously and stored in data_snapshot.

Operation id: update_data_record_v1_data__tenant_slug__records__record_id__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
record_idpathstringyesData record identifier.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for update data record.

Responses

StatusDescriptionBody
200Successful response for update data record.application/json object
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/data/{tenant_slug}/records/{record_id}​

Delete Data Record

Delete a data record (append deleted event, remove data_snapshot row).

Operation id: delete_data_record_v1_data__tenant_slug__records__record_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
record_idpathstringyesData record identifier.
class_schema_idquerystringyesClass schema ID
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for delete data record.application/json object
422Validation Errorapplication/json HTTPValidationError

POST /v1/data/{tenant_slug}/records/{record_id}/restore​

Restore Data Record

Restore a deleted data record (recreate data_snapshot from deleted event, append restored event).

Operation id: restore_data_record_v1_data__tenant_slug__records__record_id__restore_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
record_idpathstringyesData record identifier.
class_schema_idquerystringyesClass schema ID
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for restore data record.application/json object
422Validation Errorapplication/json HTTPValidationError

Schemas used​

DataRecordCreateBody​

DataRecordCreateBody schema.

PropertyTypeRequiredDescription
class_schema_idstringyesClass schema ID (frozen version class)
dataobjectyesRecord payload validated against schema

DataRecordUpdateBody​

DataRecordUpdateBody schema.

PropertyTypeRequiredDescription
class_schema_idstringyesClass schema ID
dataobjectyesUpdated record payload

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.