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

# Add switch

> Add a network switch to inventory



## OpenAPI

````yaml api-docs/archived/atlas.json post /v1/regions/{region}/infrastructure/switches
openapi: 3.1.1
info:
  title: Infrastructure API
  version: 1.0.0
  description: >-
    Infrastructure API for the k0rdent Enterprise platform. Provides bare-metal
    server lifecycle management, inventory tracking, bulk enrollment, persona
    profiles, and network switch management.
  contact:
    name: k0rdent Enterprise API Support
    email: api-support@example.com
    url: https://support.example.com
  license:
    name: Proprietary
    url: https://k0rdent.example.com/license
servers:
  - url: ''
    description: For documentation only
  - url: https://api.internal.example.com
    description: Atlas API Base URL
  - url: https://api.example.com
    description: Arc API Base URL
  - url: http://localhost:{port}
    description: Local Development
    variables:
      port:
        default: '4010'
        description: Infrastructure service port
security: []
paths:
  /v1/regions/{region}/infrastructure/switches:
    post:
      tags:
        - Switches
      summary: Add switch
      description: Add a network switch to inventory
      operationId: addSwitch
      parameters:
        - name: region
          in: path
          required: true
          schema:
            type: string
          description: Region identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                model:
                  type: string
                  nullable: true
                managementAddress:
                  type: string
                portCount:
                  type: number
              required:
                - name
                - managementAddress
      responses:
        '201':
          description: Switch added
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/Switch'
components:
  schemas:
    Switch:
      type: object
      description: Network switch
      properties:
        id:
          type: string
          description: Switch identifier
        name:
          type: string
          description: Switch name
        model:
          type: string
          nullable: true
          description: Switch model
        managementAddress:
          type: string
          description: Management IP address
        status:
          type: string
          enum:
            - active
            - maintenance
            - offline
          description: Switch status
        portCount:
          type: number
          description: Total port count
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - name
        - managementAddress
        - status

````