Skip to main content
PUT

Update an expenses account

Scope:accounting:expenses-accounts.write
https://api.holded.com/api/v2/expenses-accounts/{expensesAccountId}

Updates an existing expenses account. You can change the name, color, and account number. Updating an expenses account does not affect documents or contacts that already reference it.

Parameters

Path parameters

expensesAccountIdstringrequired

Expenses Account ID (24-char hex ObjectId)

Request body

object
namestring

Display name for the expenses account

colorstring | null

Hex color code for UI display

Request

python
import requests

url = "https://api.holded.com/api/v2/expenses-accounts/{expensesAccountId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "name": "string",
    "color": "#FF5733"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "string"
}

Success responses

200Expenses account updatedapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Expenses account not foundapplication/json
422Validation errorapplication/json