API
Budgets
Référence OpenAPI générée pour le domaine « Budgets ».
List budget policies with current spend. Readable by all members.
Path Parameters
workspace_id*string
Response Body
application/json
application/json
curl -X GET "https://example.com/api/workspaces/string/budgets"[ { "alert_pct": 0, "id": "string", "limit_usd": 0, "pct": 0, "period": "string", "provider": "string", "resets_at": "string", "spent_usd": 0, "status": "string" }]Create or update a budget policy; requires permission to edit workspace budgets.
Path Parameters
workspace_id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/budgets" \ -H "Content-Type: application/json" \ -d '{ "limit_usd": 0, "period": "string" }'{ "alert_pct": 0, "id": "string", "limit_usd": 0, "pct": 0, "period": "string", "provider": "string", "resets_at": "string", "spent_usd": 0, "status": "string"}Delete a budget policy with edit permission, returning 404 when it is absent.
Path Parameters
workspace_id*string
budget_id*string
Response Body
application/json
application/json
curl -X DELETE "https://example.com/api/workspaces/string/budgets/string"{ "property1": "string", "property2": "string"}