---
title: "PUT /api/database/{id}"
method: PUT
path: "/api/database/{id}"
tags: ["/api/database"]
---

# PUT /api/database/{id}

`PUT /api/database/{id}`

Update a `Database`.

## Path parameters

- `id` integer, required

## Request body

- object
  - `auto_run_queries` boolean, nullable
  - `cache_ttl` integer, nullable — value must be an integer greater than zero.
  - `caveats` string, nullable
  - `description` string, nullable
  - `details` object, nullable — Value must be a map.
  - `engine` string, nullable — value must be a valid database engine.
  - `name` string, nullable
  - `points_of_interest` string, nullable
  - `provider_name` string, nullable
  - `refingerprint` boolean, nullable
  - `schedules` MetabaseSyncSchedulesExpandedSchedulesMap — value must be a valid map of schedule maps for a DB.
    - `cache_field_values` MetabaseUtilCronScheduleMap — value must be a valid schedule map. See schema in metabase.util.cron for details.
      - `schedule_day` 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat', nullable
      - `schedule_frame` 'first' | 'mid' | 'last', nullable
      - `schedule_hour` integer
      - `schedule_minute` integer
      - `schedule_type` 'hourly' | 'daily' | 'weekly' | 'monthly', required
    - `metadata_sync` MetabaseUtilCronScheduleMap — value must be a valid schedule map. See schema in metabase.util.cron for details.
      - `schedule_day` 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat', nullable
      - `schedule_frame` 'first' | 'mid' | 'last', nullable
      - `schedule_hour` integer
      - `schedule_minute` integer
      - `schedule_type` 'hourly' | 'daily' | 'weekly' | 'monthly', required
  - `settings` object, nullable — Value must be a map.
  - `write_data_details` object, nullable — Value must be a map.

## Response `2XX`

Successful response

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

---

[API](https://skmtc.net/metabase/apis/metabase-api.md) · [All operations](https://skmtc.net/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metabase/metabase-api/versions/08b5a2bafb4f/schema)
