curl --request PATCH \
--url https://api.orq.ai/v2/budgets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"budget": {
"period": "monthly",
"amount": 300
},
"is_active": true
}
'{
"_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"workspace_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "contact",
"budget": {
"period": "monthly",
"amount": 250
},
"is_active": true,
"api_key_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"contact_id": "user_123",
"consumption": {
"current_amount": 125.5,
"remaining_amount": 124.5,
"period_start": "2024-01-01T00:00:00Z",
"period_end": "2024-01-31T23:59:59Z"
},
"created": "2025-12-08T10:34:25.425Z",
"updated": "2025-12-08T10:34:25.425Z"
}Update budget configuration by ID
curl --request PATCH \
--url https://api.orq.ai/v2/budgets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"budget": {
"period": "monthly",
"amount": 300
},
"is_active": true
}
'{
"_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"workspace_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "contact",
"budget": {
"period": "monthly",
"amount": 250
},
"is_active": true,
"api_key_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"contact_id": "user_123",
"consumption": {
"current_amount": 125.5,
"remaining_amount": 124.5,
"period_start": "2024-01-01T00:00:00Z",
"period_end": "2024-01-31T23:59:59Z"
},
"created": "2025-12-08T10:34:25.425Z",
"updated": "2025-12-08T10:34:25.425Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Budget ID
"01K1J1AX8PGR63QRP7423NY008"
Whether this budget configuration is currently active
true
Budget configuration updated successfully
Budget configuration details
Unique ULID for the budget configuration
"01ARZ3NDEKTSV4RRFFQ69G5FAV"
Workspace identifier that owns this budget configuration
"550e8400-e29b-41d4-a716-446655440000"
Budget entity type
api_key, contact, workspace "contact"
Whether this budget configuration is currently active
true
API Key identifier (present when type is "api_key")
"01ARZ3NDEKTSV4RRFFQ69G5FAV"
Contact external identifier (present when type is "contact")
"user_123"
Show child attributes
Current period consumption in USD
x >= 0125.5
Remaining budget (amount - current_amount)
124.5
When the current period started
"2024-01-01T00:00:00Z"
When the current period will reset
"2024-01-31T23:59:59Z"
The date and time the resource was created
The date and time the resource was last updated
Was this page helpful?