API
Set the pay as you go limit
How much extras may cost in a calendar month.
PUT/billing/pay-as-you-go/limit
Runs the real call on your workspace.
PUT /billing/pay-as-you-go/limit
How much extras may cost in a calendar month.
Example
Needs billing:write. limitCents is one of the limits that GET /billing/pay-as-you-go lists. Extras stop for the rest of the month once it is reached.
curl -X PUT "$OE/billing/pay-as-you-go/limit" -H "$AUTH" -H 'content-type: application/json' \ -d '{ "limitCents": 10000 }'{ "object": "pay_as_you_go_limit", "limitCents": 10000 }A workspace where pay as you go was never set up is a 409 pay_as_you_go_not_enrolled.
An OAuth access token needs a verification code for this call. Until the app has verified one in the last 60 minutes, the call answers 403 step_up_required and changes nothing. An API key is never asked. The Authentication page shows how to ask for a code and verify it.