Set the monthly cloud spend cap.
Defaults to 10 US dollars a month.
PUT/api/v1/cloud/spend-cap
Scopesconfigapprove
Spend above the cap is refused before a VM is created. The timeline records the key ID, action and outcome.
Headers.
Idempotency-Keystring
Retry the same request with the same key. Retry rules.
Body.
capUsdnumber
The most the workspace may spend on cloud VMs in a calendar month (UTC), in US dollars. A launch that would go over it is refused before a VM is created. > 0. ≤ 1000000. Default 10.
period"month"
How often the cap starts again. Only month today. Default month.
Response.
200 OK · JSON object
- 422 validation_failed
- Each schema error appears in
details.