Skip to Content
Welcome to Level2 Help Center
APIEndpointsUpdate (Delete) a user's strategy

Update (Delete) a user’s strategy

PUT https://hub2.trylevel2.com/broker/update_user_strategy

Deletes or undeletes a user’s strategy based on the provided parameters.

Request:

QUERY PARAMETERS

Required Parameters

All parameters below are mandatory to successfully modify the deletion status of a strategy.

ParameterTypeRequirementDescription
user_emailemailRequiredThe registered email address of the user who owns the strategy.
strategy_idintegerRequiredThe unique identifier of the strategy you wish to delete or undelete.
should_deletebooleanRequiredSet to true to delete the strategy, or false to undelete (restore) it.

Responces:

Successful response with strategy update confirmation 200

SCHEMA

Success Parameter

ParameterTypeDescription
messagestringA human-readable success message indicating the operation was completed.

EXAMPLE

{ "message": "Operation completed successfully" }

Responces:

Internal Server Error 500

SCHEMA

ParameterTypeDescription
errorstringA descriptive message detailing the specific issue encountered.

EXAMPLE

{ "error": "An unexpected error occurred" }
Last updated on