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

# Start or stop the vector database



## OpenAPI

````yaml /api-reference/ai-navigator-api.json patch /api/vector-db
openapi: 3.0.0
info:
  title: AI Navigator API
  version: 1.0.0
  description: API documentation for AI Navigator
servers: []
security:
  - bearerAuth: []
tags: []
paths:
  /api/vector-db:
    patch:
      tags:
        - VectorDB
      summary: Start or stop the vector database
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VectorDBAction'
      responses:
        '200':
          description: Vector database state changed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/VectorDB'
        '400':
          description: Invalid request or database not running
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    VectorDBAction:
      type: object
      required:
        - running
      properties:
        running:
          type: boolean
          description: Whether to start (true) or stop (false) the vector database
    VectorDB:
      type: object
      required:
        - running
        - host
        - port
        - database
        - user
        - password
      properties:
        running:
          type: boolean
          description: Whether the vector database is running
        host:
          type: string
          description: Database host address
        port:
          type: integer
          description: Database port number
        database:
          type: string
          description: Database name
        user:
          type: string
          description: Database username
        password:
          type: string
          description: Database password
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - INVALID_REQUEST
                - DATABASE_NOT_RUNNING
                - INTERNAL_SERVER_ERROR
                - INVALID_SERVER_ID
                - SERVER_NOT_RUNNING
                - SERVER_RUNNING
                - INTERNAL_SERVER_ERROR
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: UUID
      description: Enter your API key here

````