Skip to content

Undeploy account replica


Stops API server and trading terminal for trading account replica. The request will be ignored if trading account replica is already undeployed

POST /users/current/accounts/:accountId/replicas/:replicaId/undeploy

For more information see swagger documentation


Name Type Required Description
auth-token string Yes Authorization token. See Authentication and authorization

Path parameters

Name Type Required Description
accountId string Yes MetaTrader primary account id
replicaId string Yes MetaTrader account replica id


  • 204 - Trading account replica was successfully undeployed
  • 401 - Authorization failed. Response schema: Error
  • 403 - Method or resource access permissions are missing. Response schema: Error
  • 404 - Trading account replica with specified id not found. Response schema: Error


Example request:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'auth-token: token' ''