Update client budget with the Everhour API

Creates or replaces the budget of a client. Send the whole budget, because partial updates are not supported. Reaching the threshold emails the admins of the team.

Identifier
everhour_update_client_budget

The request

POST https://connect.reportei.com/api/tools/everhour_update_client_budget/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "client_id": 1,
    "type": "money",
    "budget": 1,
    "period": "general"
  }
}

Your system sends your customer's connection id and the tool arguments. The headers are the same as the rest of the Connect API: your product's token and your customer's token.

Parameters

ParameterTypeRequiredDescription
client_idintegerYesId of the client, from List clients.
typestringYesmoney counts billable amounts, time counts hours, and costs counts money at the hourly cost of each member.Values: money, time, costs
budgetnumberYesBudget value: cents for money and costs, such as 500000 for 5,000.00, or seconds for time, such as 36000 for 10 hours.
periodstringYesgeneral is a one-off budget; the others restart every period.Values: general, monthly, weekly, daily, quarterly, yearly
appliedFromstringNoDay the budget starts counting, in YYYY-MM-DD. Only for the general period.
disallowOverbudgetbooleanNotrue stops time from being tracked over the budget.
excludeUnbillableTimebooleanNotrue leaves non-billable time out of the usage.
excludeExpensesbooleanNotrue leaves expenses out of the usage.
thresholdnumberNoUsage percentage that emails the admins of the team.

Supported connections

Your customer connects their Everhour account once, with one of the modes below. The same connection serves every tool of the toolkit.

API key

Your customer pastes the app's key on a Connect screen, or your system sends the key with POST /api/customer-toolkits, with no screen.

The response

On success, Connect preserves the app's response status and body. HTTP errors returned by the app use the {error, api_error} envelope; authentication or validation can fail before execution. The X-Toolkit-Execution-Id header identifies the recorded execution, available at GET /api/tools/executions/{uuid}.

Ready for AI agents

This tool's input is a JSON Schema, available at GET /api/tools/everhour_update_client_budget. It becomes your agent's tool definition with no conversion.

Other Everhour tools

See all 15 tools

Toolkits in the same category

See all 100 toolkits

See Connect applied to your product.

Try it for 15 days with no card, or walk our team through your use case.