API referenceEndpoints

Set organization default spend limits

Requires an application credential holding the application-admin role; the credential names the application it acts for. Generated from the production route registered in `internal/features/billing/inbound/http_application_limits.go`.

PUT/v1/application/orgs/{id}/limits

Requires an application credential holding the application-admin role; the credential names the application it acts for. Generated from the production route registered in internal/features/billing/inbound/http_application_limits.go.

Authorization

bearerAuth
AuthorizationBearer <token>

Engine-issued API key or tenant-signed JWT.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A full replacement of the stored default: an omitted or null field CLEARS that cap rather than preserving the stored one. At least one field must be non-null, neither may be negative, and soft_limit_micro_usd may not exceed hard_limit_micro_usd. Unknown members are refused.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/application/orgs/497f6eca-6276-4993-bfeb-53cbbbba6f08/limits" \  -H "Content-Type: application/json" \  -d '{}'
{  "soft_limit_micro_usd": 5000000,  "hard_limit_micro_usd": 10000000}