Skip to Content
Welcome to Level2 Help Center
APIEndpointsPublish or unpublish a user's strategy

Publish or unpublish a user’s strategy

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

Publishes or unpublishes a user’s strategy to the marketplace.

Request:

QUERY PARAMETERS

Required Parameters

Every field listed below is mandatory for the publication status to be updated successfully.

ParameterTypeRequirementDescription
strategy_idintegerRequiredThe unique identifier of the strategy to publish or unpublish.
user_emailemailRequiredThe registered email address of the user.
should_publishbooleanRequiredSet to true to publish the strategy, or false to unpublish.

Responces:

Successful response with marketplace 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