Skip to content

Update account#

About#

Updates account configuration

PUT /users/current/configuration/accounts/:accountId

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 account id

Body#

Account payload schema: UpdatedAccount

Response#

Responses:

  • 204 - Account saved successfully.
  • 400 - Account payload validation failed. Response schema: Error
  • 401 - Authorization failed. Response schema: Error

Examples#

Example request:

curl -X PUT --header 'Accept: application/json' --header 'auth-token: token' -d '{
  "name": "Demo account",
  "connectionId": "105646d8-8c97-4d4d-9b74-413bd66cd4ed",
  "subscriptions": [
    {
      "strategyId": "SMKn",
      "multiplier": 1
    }
  ]
}' 'https://trading-api-v1.agiliumtrade.agiliumtrade.ai/users/current/configuration/accounts/2DLmSEibEc1UeNpTXGcoZ22FqhFiaiUpxykfTuX2VbLMDD0NCuBXUlH8Jye6wWSQ'