EddytorDocs & API
Tables

Update column settings (uniqueness, primary key, nullable) with data validation

When enabling `isUnique`, the engine checks for duplicate non-NULL values. When enabling `isPrimaryKey`, the engine checks that the new composite key set has no duplicate combinations. When setting `isNullable` to `false`, the engine checks for existing NULL values. Disabling uniqueness/primary key or enabling nullable is always safe. **Required scope:** `tables:modify`

PUT
/v1/tables/{catalog}/{schema}/{table_name}/columns/{column}/settings

Authorization

BearerAuth
AuthorizationBearer <token>

Security scheme for OpenAPI endpoints. Validates both JWT tokens and API keys.

In: header

Path Parameters

_column*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request to update column settings (uniqueness, primary key) with data validation.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/tables/{catalog}/{schema}/{table_name}/columns/{column}/settings" \  -H "Content-Type: application/json" \  -d '{}'
{}
Empty
Empty
{  "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"    }  ]}