Manage database settings
https://{your-workspace-slug}.{region}.xata.sh/dbs/db_name/settingsThis endpoint allows to access & modify database settings
Expected parameters
| Name | Description | In | Required | Schema |
|---|---|---|---|---|
db_name | The Database Name | path | ✅ | string |
Database Settings
GEThttps://{your-workspace-slug}.{region}.xata.sh/dbs/db_name/settingsGet database settings
Responses
type GetDatabaseSettings = {
searchEnabled: boolean;
};type GetDatabaseSettings = {
id?: string;
message: string;
};{
"message": "invalid API key"
}type GetDatabaseSettings = {
id?: string;
message: string;
};type GetDatabaseSettings = void;type GetDatabaseSettings = void;Update Database Settings
PATCHhttps://{your-workspace-slug}.{region}.xata.sh/dbs/db_name/settingsUpdate database settings, this endpoint can be used to disable search
Request Body Type Definition
type UpdateDatabaseSettings = {
searchEnabled?: boolean;
};Responses
type UpdateDatabaseSettings = {
searchEnabled: boolean;
};type UpdateDatabaseSettings = {
id?: string;
message: string;
};{
"message": "invalid API key"
}type UpdateDatabaseSettings = {
id?: string;
message: string;
};type UpdateDatabaseSettings = void;type UpdateDatabaseSettings = void;