Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
PUT

Update an expenses account

Scope: accounting:expenses-accounts.write https://api.alladdin.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 string required

Expenses Account ID (24-char hex ObjectId)

Request body

object name string

Display name for the expenses account

color string | null

Hex color code for UI display

Request

python
import requests

url = "https://api.alladdin.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

200 Expenses account updated application/json object id string

Error responses

400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Expenses account not found application/json 422 Validation error application/json

← PreviousCreate an expenses account →

Next →List all expenses accounts →