---
title: "Update a managed database"
method: PATCH
path: "/managed_databases/{id}"
tags: ["Managed Databases"]
---

# Update a managed database

`PATCH /managed_databases/{id}`

## Path parameters

- `id` string, required

## Request body

- ManagedDatabaseUpdatePayload
  - `data` object
    - `type` 'managed_databases'
    - `attributes` object — At least one attribute is required. trusted_sources applies to any engine; parameters, pooler, backup and supabase apply to postgres only.
      - `trusted_sources` string[] — Array of CIDR addresses to allow connections from
      - `parameters` object — Custom PostgreSQL parameters (postgres only). Each value must fall within the selected plan's allowed range.
      - `pooler` object — PgBouncer pooler configuration (postgres only)
      - `backup` object — Scheduled backup configuration (postgres only)
      - `access_credentials` object — S3 credentials used with backup (postgres only)
        - `accessKeyId` string
        - `secretAccessKey` string
      - `supabase` boolean — Enable the Supabase service layer (postgres only)

## Response `200`

OK

## Changes

- **2026-09-12** `7565540b16e0` — 9 breaking
  - the response property `data/attributes/credentials` became nullable for the status `200`
  - the response property `data/attributes/namespace` became nullable for the status `200`
  - the response property `data/attributes/plan/name` became nullable for the status `200`
  - the response property `data/attributes/plan/slug` became nullable for the status `200`
  - …5 more
- **2026-09-11** `edb6e0d487d9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/latitude/apis/latitude-sh-api/changes/managed_databases/:id/patch.md)

---

[API](https://skmtc.dev/latitude/apis/latitude-sh-api.md) · [All operations](https://skmtc.dev/latitude/apis/latitude-sh-api/llms.txt) · [OpenAPI document](https://skmtc.dev/latitude/apis/latitude-sh-api/revisions/3a64859195ed?raw)
