Skip to content

Remove subscription#

About#

Deletes subscription

DELETE /users/current/configuration/subscribers/:subscriberId/subscriptions/: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
subscriberId string Yes subscriber id
strategyId string Yes strategy id

Body#

Optional close instructions schema: CloseInstructions

Response#

Responses:

  • 204 - Subscription deleted successfully.
  • 401 - Authorization failed. Response schema: Error
  • 404 - Subscriber or subscription not found. Response schema: Error

Examples#

Example request:

curl -X DELETE --header 'Accept: application/json' --header 'auth-token: token' 'https://copyfactory-api-v1.new-york.agiliumtrade.ai/users/current/configuration/subscribers/105646d8-8c97-4d4d-9b74-413bd66cd4ed/subscriptions/ABCD'