Skip to main content
PUT
/
clients
/
{client_id}
/
budget
Update Client Budget
curl --request PUT \
  --url https://api.everhour.com/clients/{client_id}/budget \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "type": "money",
  "budget": 100000,
  "period": "general",
  "appliedFrom": "<string>",
  "disallowOverbudget": true,
  "excludeUnbillableTime": true,
  "excludeExpenses": true,
  "threshold": 123
}
'
{
  "id": 4567,
  "name": "Client Name",
  "projects": [
    "ev:1234567890"
  ],
  "businessDetails": "<string>",
  "budget": {
    "type": "money",
    "budget": 100000,
    "period": "general",
    "appliedFrom": "<string>",
    "disallowOverbudget": true,
    "excludeUnbillableTime": true,
    "excludeExpenses": true,
    "threshold": 123,
    "progress": 0
  }
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

client_id
number
required

Client ID

Example:

107

Body

application/json
type
enum<string>
required

Budget Type

Available options:
money,
time,
costs
Example:

"money"

budget
number
required

Budget value in cents (for money) or seconds (for time)

Example:

100000

period
enum<string>
required

Budget periodicity (overall, monthly, weekly, daily)

Available options:
general,
monthly,
weekly,
daily
Example:

"general"

appliedFrom
string | null

Start budget from (available only for non-recurrent budgets)

disallowOverbudget
boolean
excludeUnbillableTime
boolean
excludeExpenses
boolean
threshold
number

Email admins when threshold reached. Threshold is percentage 1 - 100.

Response

OK

id
number
required
Example:

4567

name
string
required
Example:

"Client Name"

projects
string[]
required

List of projects ID

Example:
["ev:1234567890"]
businessDetails
string | null
budget
object