Update MT4 account readonly right#
About#
Update MT4 account readonly right
PUT /users/current/mt4/provisioning-profiles/:profileId/accounts/:login/readonly
For more information see swagger documentation
Headers#
Name | Type | Required | Description |
---|---|---|---|
auth-token | string | Yes | MetaApi account token. See Authentication & authorization |
Path parameters#
Name | Type | Required | Description |
---|---|---|---|
profileId | string | Yes | Id of the provisioning profile that will be used as the basis for set enabled state this account |
login | number | Yes | MT4 account login |
Body#
Name | Type | Required | Description |
---|---|---|---|
readonly | boolean | Yes | Enable or disable account readonly right |
Response#
- 204 - Successfully change account readonly right
- 400 - Validation failed. Response schema: Error
Examples#
Example request:
curl -X PUT --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'auth-token: token' -d '{}' 'https://mt-manager-api-v1.new-york.agiliumtrade.ai/users/current/mt4/provisioning-profiles/profileId/accounts/123/readonly'