v1

latestSwagger 2.02026-07-13180103150.2 KB
database

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

put/sites/{site_id}/database/compute/settings

Request body

min_cunumber double nullable

Minimum compute units (0.25 to 16.0). Must be less than or equal to max_cu.

max_cunumber 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_secondsinteger nullable

Seconds of inactivity before the compute endpoint is suspended. Use -1 for always on, or a non-negative value.

Response

OK

min_cunumber double

Minimum compute units

max_cunumber double

Maximum compute units

sleep_timeout_secondsinteger

Seconds of inactivity before suspension