Set organization spending limit

Sets the monthly spending limit for the specified organization.
To remove a previously configured limit, send a DELETE request to this endpoint.
When a limit is configured, email notifications are sent at 80% and 100% of the limit.
Computes are not suspended when the limit is reached.
Available to organization admins on Launch and Scale plans only.

Path Params
string
required
^[a-z0-9-]{1,60}$

The Neon organization ID

Body Params
int64
required
≥ 1

Monthly spending cap in cents. Must be positive. To remove a
previously configured limit, send a DELETE request to the
spending_limit endpoint — 0 and null are rejected here.
The cap is alert-only: notifications fire at 80% and 100%, but
computes are not suspended. Setting a cap below the period's
already-accrued spend is permitted and will trigger the
over-limit notification on the next worker run.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json