> ## Documentation Index
> Fetch the complete documentation index at: https://condor.hummingbot.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy V2 Controllers

> Deploy a V2 strategy with controllers by generating the script config and creating the instance.
This endpoint simplifies the deployment process for V2 controller strategies.

Args:
    deployment: V2ControllerDeployment configuration
    docker_manager: Docker service dependency

Returns:
    Dictionary with deployment response and generated configuration details

Raises:
    HTTPException: 500 if deployment fails



## OpenAPI

````yaml /api-reference/openapi.json post /bot-orchestration/deploy-v2-controllers
openapi: 3.1.0
info:
  title: Hummingbot API
  description: API for managing Hummingbot trading instances
  version: 1.0.1
servers:
  - url: http://localhost:8000
    description: Local development server
security: []
paths:
  /bot-orchestration/deploy-v2-controllers:
    post:
      tags:
        - Bot Orchestration
      summary: Deploy V2 Controllers
      description: >-
        Deploy a V2 strategy with controllers by generating the script config
        and creating the instance.

        This endpoint simplifies the deployment process for V2 controller
        strategies.


        Args:
            deployment: V2ControllerDeployment configuration
            docker_manager: Docker service dependency

        Returns:
            Dictionary with deployment response and generated configuration details

        Raises:
            HTTPException: 500 if deployment fails
      operationId: deploy_v2_controllers_bot_orchestration_deploy_v2_controllers_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2ControllerDeployment'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    V2ControllerDeployment:
      properties:
        instance_name:
          type: string
          title: Instance Name
          description: Unique name for the bot instance
        credentials_profile:
          type: string
          title: Credentials Profile
          description: Name of the credentials profile to use
        controllers_config:
          items:
            type: string
          type: array
          title: Controllers Config
          description: >-
            List of controller configuration files to use (without .yml
            extension)
        max_global_drawdown_quote:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Global Drawdown Quote
          description: Maximum allowed global drawdown in quote usually USDT
        max_controller_drawdown_quote:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Controller Drawdown Quote
          description: Maximum allowed per-controller drawdown in quote usually USDT
        image:
          type: string
          title: Image
          description: Docker image for the Hummingbot instance
          default: hummingbot/hummingbot:latest
        script_config:
          anyOf:
            - type: string
            - type: 'null'
          title: Script Config
          description: Generated script configuration file name
        headless:
          type: boolean
          title: Headless
          description: Run in headless mode (no UI)
          default: false
      type: object
      required:
        - instance_name
        - credentials_profile
        - controllers_config
      title: V2ControllerDeployment
      description: Configuration for deploying a bot with controllers
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic

````