---
title: "Update database password"
method: POST
path: "/spaces/{space_id}/databases/{database_ref}/password"
---

# Update database password

`POST /spaces/{space_id}/databases/{database_ref}/password`

Resets the database password.

## Path parameters

- `space_id` string, required
- `database_ref` string, required

## Request body

- UpdatePasswordRequest — Request to reset the database password.
  - `password` string, required — New PostgreSQL password for the default user.

## Response `204`

Password updated

## Other responses

- `default` — Error response

## Changes

- **2026-08-11** `42816b90d8d6` — 1 warning
  - added the new `signups_disabled` enum value to the `code` response property for the response status `default`
- **2026-06-23** `d0e78bae6ce1` — 1 warning
  - added the new `compute_limit_exceeded` enum value to the `code` response property for the response status `default`
- **2026-06-22** `bdf92f48aec1` — 1 info
  - added the optional property `code` to the response with the `default` status
- **2026-04-17** `a7becb6668ec` — 1 warning
  - removed the optional property `code` from the response with the `default` status

[Change history](https://skmtc.dev/timescale/apis/ghost-api/changes/spaces/:space_id/databases/:database_ref/password/post.md)

---

[API](https://skmtc.dev/timescale/apis/ghost-api.md) · [All operations](https://skmtc.dev/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/timescale/ghost-api/revisions/42816b90d8d6/schema)
