Check if an enum value is in use
Scans the table to determine whether a specific fixed-domain (enum) value is referenced by any rows. Call this before removing a domain value to avoid creating orphaned references. **Required scope:** `tables:read`
Authorization
BearerAuth Security scheme for OpenAPI endpoints. Validates both JWT tokens and API keys.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to check whether an enum (fixed-domain) value is referenced by any rows.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/tables/{catalog}/{schema}/{table_name}/enums/check" \ -H "Content-Type: application/json" \ -d '{ "fieldName": "string", "value": "string" }'{}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}{ "code": "string", "message": "string", "request_id": "string", "details": [ { "field": "string", "message": "string" } ]}Atomically replace the table's primary-key column set
The engine validates the full column list as a *combination* — a composite key whose individual columns contain duplicates is accepted when the combination is unique. All metadata changes (new PK columns, demoted PK columns, isUnique sync) land in a single commit. An empty `columns` list clears the primary key. **Required scope:** `tables:modify`
Infer schema from a CSV file
Uploads a CSV file and returns the inferred Arrow schema, detected domain-eligible fields (columns with a small set of distinct values), and the row count. Use this before `CreateTable` to preview and adjust the schema. **Required scope:** `tables:modify`