PUT
Update an expenses account
Scope:
accounting:expenses-accounts.writehttps://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
expensesAccountId
stringrequiredExpenses 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/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Expenses account not foundapplication/json422Validation errorapplication/json