Skip to main content
PUT
/
api
/
accounts
/
{id}
Update account
curl --request PUT \
  --url https://api.easierprop.com/api/accounts/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "label": "<string>",
  "broker_host": "<string>",
  "broker_port": 123,
  "server_name": "<string>",
  "mt5_login": 123,
  "password": "<string>",
  "is_enabled": true,
  "auto_connect": true,
  "hardware_id": "<string>",
  "proxy_host": "<string>",
  "proxy_port": 123,
  "proxy_user": "<string>",
  "proxy_password": "<string>"
}
'
{
  "ok": true,
  "data": {
    "id": "70f60784-20f1-45ba-9a04-8e01c0b810c3",
    "label": "ICMarkets Demo",
    "broker_host": "mt5-demo.icmarkets.com",
    "broker_port": 443,
    "server_name": "ICMarketsSC-Demo",
    "mt5_login": 51234567,
    "is_enabled": true,
    "auto_connect": false,
    "hardware_id": "<string>",
    "has_proxy": false,
    "session_status": "disconnected",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

Client API key (prefixed with sk_)

Path Parameters

id
string<uuid>
required

Account ID

Body

application/json
label
string
broker_host
string
broker_port
integer
server_name
string
mt5_login
integer<int64>
password
string
is_enabled
boolean
auto_connect
boolean
hardware_id
string
proxy_host
string
proxy_port
integer
proxy_user
string
proxy_password
string

Response

Updated account

ok
boolean
Example:

true

data
object