Skip to content

Update an account.

PUT
/api/accounts/{id}
curl --request PUT \
--url https://api.tradr.cloud/api/accounts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--data '{ "brokerageId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "currency": "example", "name": "example", "timezone": "America/New_York" }'

Authed. All fields optional. startingBalance is deliberately absent — it is creation-only. timezone IS editable: it changes only subsequent trading-day evaluations and rewrites no history.

id
required
string format: uuid
Media typeapplication/json
object
brokerageId
string format: uuid
nullable
currency
string
>= 3 characters <= 3 characters
name
string
>= 1 characters
timezone

IANA zone name (canonical spelling). Unknown zone is a 400.

string
Example
America/New_York

The updated account.

Validation error (includes an unknown IANA timezone).

FORBIDDEN (cross-user brokerage).

Account not found.

Duplicate account name