---
title: "update database"
method: PATCH
path: "/databases/{id}"
tags: ["Databases"]
---

# update database

`PATCH /databases/{id}`

## Request

- Base URL: `https://api.aptible.com`
- URL: `https://api.aptible.com/databases/{id}`
- Auth: API key in header `Authorization`

Partially updates a database's attributes.

## Path parameters

- `id` integer, required

## Query parameters

- `with_deleted` boolean
- `no_embed` boolean

## Headers

- `Prefer` 'no_sensitive_extras=true'

## Request body

- UpdateDatabaseRequest
  - `current_configuration` integer
  - `handle` string
  - `initial_disk_size` integer
  - `initial_continer_size` integer
  - `database_image_id` integer
  - `current_kms_arn` string
  - `enable_backups` boolean

## Response `200`

successful

## Other responses

- `default`: Error response. Often a 4xx or 5xx status code

## Changes

- **2026-08-24** `0bd1bb990024`: 1 info
  - added the new optional `query` request parameter `with_deleted`
- **2026-07-24** `1dc1e5b8c6eb`: 1 breaking, 2 info
  - the `current_kms_arn` request property type changed from `integer` to `string`
  - added the new optional `header` request parameter `Prefer`
  - added the new optional `query` request parameter `no_embed`
- **2025-01-14** `e2b8c5639d89`: 1 info
  - added the new optional request property `enable_backups`

[Operation history](https://skmtc.dev/aptible/apis/aptible-api-v1/changes/databases/:id/patch.md)

---

[API](https://skmtc.dev/aptible/apis/aptible-api-v1.md) - [All operations](https://skmtc.dev/aptible/apis/aptible-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/aptible/apis/aptible-api-v1/revisions/a21f6b1bc6fe?raw)
