Skip to content

Update account password MT5#

About#

Update account password MT5.

PUT /users/current/mt5/provisioning-profiles/:profileId/accounts/:login/password

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 MT5 account login

Body#

Name Type Required Description
password string Yes New account password
type string Type of a password to change. master - The master password, investor - The investor password, api - API password. Default value is "master"

Response#

  • 200 - Successfully change account password.
  • 400 - Request validation failed. Response schema: Error
  • 404 - Provisioning profile with specified id not found. Response schema: Error

Examples#

Example request:

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