Create a usage threshold
POST/api/v1/usage/thresholds
Creates a usage alert threshold on a project. Thresholds are immutable apart from deletion — to change one, delete and recreate it (which resets its fire state).
Request
Responses
- 201
- 400
- 401
- 403
- 413
- 429
- 500
The created threshold
Bad Request (missing/invalid metric, window, or threshold)
Unauthorized
Forbidden
REQUEST_REJECTED — the request body is over the size the body parser accepts
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Retry-After
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded