database

Set database compute settings

Changed on

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

  • Base URL
    https://api.netlify.com/api/v1
  • URL
    https://api.netlify.com/api/v1/sites/{site_id}/database/compute/settings
  • Auth
    OAuth 2
    Implicit: https://app.netlify.com/authorize

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

Changes