Updates an existing account. All fields from the create request are available for update, and all are optional.
Path Parameters
The unique identifier of the account to update
Request Body
The update DTO extends the create DTO as a partial type, meaning all fields are optional. Only include fields you want to update.
The type of accountOptions: WALLET, SAVINGS, INVESTMENT, CREDIT_CARD
The currency code for the accountOptions: ARS, USD, EUR
Hex color identifier for the account
Icon identifier for the account
Target amount goal (primarily for SAVINGS accounts)Must be at least 1 if provided
Target date for reaching the goalFormat: ISO 8601 date string
Validation Rules
- The account must exist and belong to the authenticated user
- If
type is provided, it must be a valid AccountType enum value
- If
currency is provided, it must be one of: ARS, USD, EUR
- If
color is provided, it must be a valid hex color code
- If
targetAmount is provided, it must be at least 1
- If
targetDate is provided, it must be a valid ISO 8601 date string
Response
Returns the updated account object with all fields.
Unique identifier for the account
Current balance (unchanged by update)
Whether this is the default account
Last update timestamp (will be updated)
Error Responses
Account not found - The account doesn’t exist or doesn’t belong to the user
Bad Request - Invalid field values or validation errors
{
"name": "Emergency Fund",
"color": "#EF4444"
}
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Emergency Fund",
"type": "SAVINGS",
"currency": "USD",
"balance": 3250,
"color": "#EF4444",
"icon": "shield",
"targetAmount": 10000,
"targetDate": "2027-06-30T00:00:00Z",
"isDefault": false,
"userId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2026-02-01T14:00:00Z",
"updatedAt": "2026-03-04T11:45:00Z"
}