Manage database settings
https://{your-workspace-slug}.{region}.xata.sh/dbs/db_name/settings
This 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/settings
Get 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/settings
Update 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;