---
title: "PUT /sites/{site_id}/database/compute/settings"
method: PUT
path: "/sites/{site_id}/database/compute/settings"
tags: ["database"]
---

# PUT /sites/{site_id}/database/compute/settings

`PUT /sites/{site_id}/database/compute/settings`

Sets project-level compute settings for the database. Applied to new branches. Can be overridden per-branch. Requires a Pro or higher plan.

## Request body

- DatabaseComputeSettingsRequest — Request body for setting compute settings. All fields are optional; only provided fields are updated.
  - `min_cu` number, double, nullable — Minimum compute units (0.25 to 16.0). Must be less than or equal to max_cu.
  - `max_cu` number, double, nullable — Maximum compute units (0.25 to 16.0). Must be greater than or equal to min_cu. max_cu - min_cu must not exceed 8.0.
  - `sleep_timeout_seconds` integer, nullable — Seconds of inactivity before the compute endpoint is suspended. Use -1 for always on, or a non-negative value.

## Response `200`

OK

- DatabaseComputeSettings — Compute settings for a database or branch
  - `min_cu` number, double — Minimum compute units
  - `max_cu` number, double — Maximum compute units
  - `sleep_timeout_seconds` integer — Seconds of inactivity before suspension

## Other responses

- `403` — Compute customization requires a Pro or higher plan
- `default` — error

---

[API](https://skmtc.net/netlify/apis/netlify-s-api-documentation.md) · [All operations](https://skmtc.net/netlify/apis/netlify-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netlify/netlify-s-api-documentation/versions/71540d1b5d9d/schema)
