Skip to main content
POST
/
v2
/
budgets
/
{budget_id}
/
reset-consumption
Reset budget consumption
curl --request POST \
  --url https://api.orq.ai/v2/budgets/{budget_id}/reset-consumption \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "budget": {
    "budget_id": "<string>",
    "workspace_id": "<string>",
    "scope": {
      "workspace": {},
      "project": {
        "project_id": "<string>"
      },
      "identity": {
        "identity_external_id": "<string>"
      },
      "api_key": {
        "api_key_id": "<string>"
      },
      "provider": {
        "provider": "<string>"
      },
      "model": {
        "model_id": "<string>"
      }
    },
    "limits": {
      "amount": 123,
      "token_limit": "<string>"
    },
    "rate_limit": {
      "requests_per_minute": 123
    },
    "is_active": true,
    "expires_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

budget_id
string
required

Budget id whose current-period counters should be cleared.

Body

application/json

The body is of type object.

Response

200 - application/json

OK

budget
object

Budget after reset. The record itself is unchanged; only counters were cleared.