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

# Batch enroll servers

> Enroll multiple servers at once. Accepts an array of server objects.



## OpenAPI

````yaml api-docs/archived/atlas.json post /v1/regions/{region}/infrastructure/servers/batch
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/servers/batch:
    post:
      tags:
        - Servers
      summary: Batch enroll servers
      description: Enroll multiple servers at once. Accepts an array of server objects.
      operationId: batchEnrollServers
      parameters:
        - name: region
          in: path
          required: true
          schema:
            type: string
          description: Region identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                servers:
                  type: array
                  items:
                    type: object
                    properties:
                      hostname:
                        type: string
                      bmcAddress:
                        type: string
                        nullable: true
                      serialNumber:
                        type: string
                        nullable: true
                      tags:
                        type: object
                        nullable: true
                        additionalProperties:
                          type: string
                    required:
                      - hostname
              required:
                - servers
      responses:
        '201':
          description: Servers enrolled
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Server'
                  meta:
                    type: object
                    properties:
                      total:
                        type: number
                        description: Number of servers enrolled
components:
  schemas:
    Server:
      type: object
      description: Bare-metal server inventory entry
      properties:
        id:
          type: string
          description: Server identifier
        hostname:
          type: string
          description: Server hostname
        serialNumber:
          type: string
          nullable: true
          description: Hardware serial number
        bmcAddress:
          type: string
          nullable: true
          description: BMC/IPMI management address
        status:
          type: string
          enum:
            - available
            - provisioning
            - provisioned
            - maintenance
            - decommissioned
            - error
          description: Server lifecycle status
        health:
          type: string
          enum:
            - healthy
            - degraded
            - unhealthy
            - unknown
          description: Server health status
        profileId:
          type: string
          nullable: true
          description: Assigned persona profile
        specs:
          type: object
          description: Hardware specifications
          properties:
            cpu:
              type: string
              description: CPU model/count
            memoryGB:
              type: number
              description: Memory in GB
            storageGB:
              type: number
              description: Total storage in GB
            nics:
              type: number
              description: Number of network interfaces
        tags:
          type: object
          nullable: true
          additionalProperties:
            type: string
          description: Key-value tags
        regionId:
          type: string
          description: Region this server belongs to
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - hostname
        - status
        - health
        - regionId
        - createdAt

````