Skip to content

Update subscriber#

About#

Updates subscriber configuration

PUT /users/current/configuration/subscribers/:subscriberId

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
subscriberId string Yes subscriber id

Body#

Subscriber payload schema: UpdatedSubscriber

Response#

Responses:

  • 204 - Subscriber saved successfully.
  • 400 - Subscriber 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 subscriber",
  "subscriptions": [
    {
      "strategyId": "SMKn",
      "multiplier": 1
    }
  ]
}' 'https://copyfactory-application-history-master-v1.agiliumtrade.agiliumtrade.ai/users/current/configuration/subscribers/105646d8-8c97-4d4d-9b74-413bd66cd4ed'