Update (Delete) a user’s strategy
PUT https://hub2.trylevel2.com/broker/update_user_strategyDeletes or undeletes a user’s strategy based on the provided parameters.
Request:
QUERY PARAMETERS
QUERY PARAMETERS
Required Parameters
All parameters below are mandatory to successfully modify the deletion status of a strategy.
| Parameter | Type | Requirement | Description |
|---|---|---|---|
| user_email | email | Required | The registered email address of the user who owns the strategy. |
| strategy_id | integer | Required | The unique identifier of the strategy you wish to delete or undelete. |
| should_delete | boolean | Required | Set to true to delete the strategy, or false to undelete (restore) it. |
Responces:
Successful response with strategy update confirmation 200
SCHEMA
SCHEMA
EXAMPLE
EXAMPLE
{
"message": "Operation completed successfully"
}Responces:
Internal Server Error 500
SCHEMA
SCHEMA
| Parameter | Type | Description |
|---|---|---|
| error | string | A descriptive message detailing the specific issue encountered. |
EXAMPLE
EXAMPLE
{
"error": "An unexpected error occurred"
}Last updated on