Account API
Update an account
Changed onUpdates an account. Set validateCredentialsOnChange to true together with a new loginAccountPassword to verify the new credentials against the broker before they are stored: the call then fails with [WRONG_CREDENTIALS] instead of returning a stale accountInformation. If a callbackUrl is provided in the request body, the update is processed asynchronously: the API returns 202 Accepted immediately with a requestId, and POSTs the result to the callback URL once done.
put/rest/api/v1/accounts/{accountId}
Request
- Base URLhttps://api.metacopier.io
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
accountIdstring uuid required
Request body
Example request
{
"accountInformation": {
"expertAdvisorResources": [
{
"cpuPercent": 3.4,
"memoryBytes": 734003200
}
]
},
"callbackUrl": "https://example.com/webhook/account-created"
}Response
The updated account
Example response
{
"accountInformation": {
"expertAdvisorResources": [
{
"cpuPercent": 3.4,
"memoryBytes": 734003200
}
]
},
"callbackUrl": "https://example.com/webhook/account-created"
}Changes
- info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status
- info
- info
added the optional property
////to the response with the status - info
added the optional property
///to the response with the status
- info