Skip to content

Change user password MT4#

About#

Change user password MT4.

POST /users/current/mt4/provisioning-profiles/:profileId/accounts/:login/changePassword

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
login number Yes MT4 account login

Body#

Name Type Required Description
password string Yes New user password
type string Type of a password to change. master - The master password, investor - The investor password. By default is master

Response#

  • 200 - Successfully change user password.
  • 400 - Validation failed. Response schema: Error
  • 401 - Authorization failed. Response schema: Error
  • 404 - Provisioning profile with specified id not found. Response schema: Error

Examples#

Example request:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'auth-token: token' -d '{
  "password": "qwerty1",
  "type": "1"
}' 'https://mt-manager-api-v1.vint-hill.agiliumtrade.ai/users/current/mt4/provisioning-profiles/profileId/accounts/12345/changePassword'