> ## 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.

# Restart Gateway

> Restart Gateway container.

If config is provided, the container will be removed and recreated with new configuration.
If no config is provided, the container will be stopped and started with existing configuration.



## OpenAPI

````yaml /api-reference/openapi.json post /gateway/restart
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:
  /gateway/restart:
    post:
      tags:
        - Gateway
      summary: Restart Gateway
      description: >-
        Restart Gateway container.


        If config is provided, the container will be removed and recreated with
        new configuration.

        If no config is provided, the container will be stopped and started with
        existing configuration.
      operationId: restart_gateway_gateway_restart_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/GatewayConfig'
                - type: 'null'
              title: Config
      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:
    GatewayConfig:
      properties:
        passphrase:
          type: string
          title: Passphrase
          description: Gateway passphrase for configuration encryption
        image:
          type: string
          title: Image
          description: Docker image for Gateway
          default: hummingbot/gateway:latest
        port:
          type: integer
          title: Port
          description: Port for Gateway API
          default: 15888
        dev_mode:
          type: boolean
          title: Dev Mode
          description: Enable development mode
          default: true
      type: object
      required:
        - passphrase
      title: GatewayConfig
      description: Configuration for Gateway container deployment
    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

````