> ## 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 server action

> Perform an action on multiple servers. Provide server IDs in the request body.



## OpenAPI

````yaml api-docs/archived/atlas.json post /v1/regions/{region}/infrastructure/servers/actions
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/actions:
    post:
      tags:
        - Servers
      summary: Batch server action
      description: >-
        Perform an action on multiple servers. Provide server IDs in the request
        body.
      operationId: batchServerAction
      parameters:
        - name: region
          in: path
          required: true
          schema:
            type: string
          description: Region identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                action:
                  type: string
                  enum:
                    - provision
                    - validate
                    - start
                    - stop
                    - restart
                    - decommission
                  description: Action to perform
                ids:
                  type: array
                  items:
                    type: string
                  description: Server IDs to act on
                params:
                  type: object
                  nullable: true
                  additionalProperties: true
                  description: Action-specific parameters
              required:
                - action
                - ids
      responses:
        '200':
          description: Batch action initiated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      action:
                        type: string
                      serverCount:
                        type: number
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            serverId:
                              type: string
                            status:
                              type: string
                              enum:
                                - accepted
                                - rejected
                            reason:
                              type: string
                              nullable: true

````