---
title: "Enable or disable extension"
method: POST
path: "/api/v1/databases/{database_id}/extensions"
tags: ["Managed Databases"]
---

# Enable or disable extension

`POST /api/v1/databases/{database_id}/extensions`

Install or remove a PostgreSQL extension from the allowlist. PostgreSQL only.

## Path parameters

- `database_id` string, required

## Request body

- SetDatabaseExtensionRequest
  - `name` string, required — Extension name from the allowlist (see `GET /api/v1/databases/{database_id}/extensions`)
  - `enabled` boolean, required — `true` to install, `false` to remove

## Response `200`

Extension updated

- SuccessResponse
  - `success` boolean
  - `message` string

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/revisions/2f4df56be77c/schema)
