Update an account.
PUT
/api/accounts/{id}
const url = 'https://api.tradr.cloud/api/accounts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"brokerageId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","currency":"example","name":"example","timezone":"America/New_York"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
brokerageId
string format: uuid
currency
string
name
string
timezone
IANA zone name (canonical spelling). Unknown zone is a 400.
string
Example
America/New_YorkResponses
Section titled “Responses”The updated account.
Validation error (includes an unknown IANA timezone).
FORBIDDEN (cross-user brokerage).
Account not found.
Duplicate account name