Skip to Content
Welcome to Level2 Help Center
APIEndpointsUpdate a deployment

Update a deployment

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

Deploys or undeploys a user-created strategy based on the provided parameters.

Request:

QUERY PARAMETERS

Required Parameters

All parameters below must be included in the request body to successfully update the deployment state.

ParameterTypeRequirementDescription
deployment_idintegerRequiredThe unique identifier of the specific deployment instance to update.
user_emailemailRequiredThe registered email address of the user associated with the deployment.
should_deletebooleanRequiredSet to true to undeploy (delete) the strategy, or false to deploy.

Responces:

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