Update Account
UpdateUser
Description: Updates the details of an existing user account including identity, group, leverage, permissions, and contact information.
Request Parameters
| Name |
Type |
Required |
Description |
| login |
int |
Yes |
Existing user login ID |
| group |
string |
Yes |
Group name to which the user belongs |
| name |
string |
Yes |
Full name of the user |
| email |
string |
Yes |
Email address |
| leverage |
int |
Yes |
Account leverage (1–10000) |
| enable |
int |
Yes |
Account enabled status (1 = active, 0 = disabled) |
| enable_read_only |
int |
No |
If 1, user cannot trade |
| enable_change_password |
int |
No |
If 0, user cannot change password |
| comment |
string |
No |
Optional comment |
| country |
string |
No |
Country |
| city |
string |
No |
City |
| address |
string |
No |
Street address |
| phone |
string |
No |
Phone number |
| id |
string |
No |
External ID or identifier |
| lead_source |
string |
No |
Marketing or acquisition source |
| user_color |
string |
No |
Optional user color code (UI feature) |
Request Example
{
"login": 102030,
"group": "standard",
"name": "John Doe",
"email": "[email protected]",
"leverage": 200,
"enable": 1,
"country": "USA",
"city": "New York",
"address": "456 Wall Street",
"phone": "+1234567890",
"comment": "Updated contact info"
}
Response Parameters
| Name |
Type |
Description |
| login |
int |
Login ID of the updated account |
| leverage |
int |
Updated leverage |
| currency |
string |
Base currency from the user group |
Response Example
{
"login": 102030,
"leverage": 200,
"currency": "USD"
}