Skip to content

Update profit/drawdown tracker#

About#

Updates a profit/drawdown tracker

PUT /users/current/accounts/:accountId/trackers/:id

For more information see Swagger documentation

Headers#

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

Path parameters#

Name Type Required Description
accountId string Yes id of the MetaApi account
id string Yes id of the tracker

Body#

Update tracker schema: {name: string}

Response#

Responses:

  • 204 - Tracker updated.
  • 401 - Authorization failed. Response schema: Error
  • 404 - MetaApi account not found. Response schema: Error

Examples#

Example request:

curl -X PUT --header 'Accept: application/json' --header 'auth-token: token' -d '{
  "name": "Tracker 1"
}' 'https://risk-management-api-v1.new-york.agiliumtrade.ai/users/current/accounts/105646d8-8c97-4d4d-9b74-413bd66cd4ed/trackers/ABCD'