---
title: "Update Database"
method: PUT
path: "/api/databases/{database_id}"
tags: ["database"]
---

# Update Database

`PUT /api/databases/{database_id}`

## Request

- Base URL: `https://app.myriade.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.myriade.ai/api/databases/{database_id}`
- Auth: none declared

Update a database. Allowed for its owner or an admin of its org —
credentials and write_mode must not be rewritable by plain org members.

## Path parameters

- `database_id` string, uuid, required

## Cookies

- `session` string, nullable

## Request body

- DatabaseUpdate
  - `name` string, required
  - `description` string, required
  - `engine` string, required
  - `details` object, required
  - `write_mode` 'read-only' | 'confirmation' | 'skip-confirmation', required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/myriade/apis/myriade-bi-api.md) · [All operations](https://skmtc.dev/myriade/apis/myriade-bi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/myriade/apis/myriade-bi-api/revisions/15b7cb96ca80?raw)
