FruxonDocs
ApiAgent budget

Creates or updates the budget configuration for an agent. Requires Admin role on the agent.

PUT
/v1/tenants/{tenant}/agents/{agent}/budget

Path Parameters

agent*string

The agent ID.

tenant*string

The tenant identifier

The budget configuration.

amount?number
Formatdouble
thresholdRules?|null
enforceLimit?boolean|null
[key: string]?never

Response Body

curl -X PUT "https://api.fruxon.com/v1/tenants/string/agents/string/budget" \  -H "Content-Type: application/json" \  -d '{}'
{
  "agentId": "string",
  "amount": 0,
  "thresholdRules": [
    {
      "percent": 0
    }
  ],
  "enforceLimit": false,
  "currentMonthlyCost": 0,
  "usagePercent": 0,
  "periodStart": 0,
  "periodEnd": 0,
  "createdAt": 0,
  "modifiedAt": 0
}
Empty
Empty