Skip to content

Update strategy#

About#

Updates provider strategy

PUT /users/current/configuration/strategies/:strategyId

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
strategyId string Yes strategy id

Body#

Strategy payload schema: UpdatedStrategy

Response#

Responses:

  • 204 - Strategy saved successfully.
  • 400 - Strategy 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": "Test strategy",
  "description": "Some useful description about your strategy",
  "accountId": "105646d8-8c97-4d4d-9b74-413bd66cd4ed"
}' 'https://copyfactory-application-history-master-v1.agiliumtrade.agiliumtrade.ai/users/current/configuration/strategies/iAFv'