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

# Public Scale Pool



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json patch /api/v1/factory/k8s-pools/{pool_id}
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/factory/k8s-pools/{pool_id}:
    patch:
      tags:
        - factory-k8s-pools
      summary: Public Scale Pool
      operationId: public_scale_pool_api_v1_factory_k8s_pools__pool_id__patch
      parameters:
        - name: pool_id
          in: path
          required: true
          schema:
            type: string
            title: Pool Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScaleK8sPoolRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '401':
          description: Authorization failed
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    ScaleK8sPoolRequest:
      properties:
        nodeNames:
          items:
            type: string
          type: array
          title: Nodenames
        expectedMembershipVersion:
          type: integer
          title: Expectedmembershipversion
      type: object
      required:
        - expectedMembershipVersion
      title: ScaleK8sPoolRequest
      description: |-
        Whole-set node replacement with optimistic concurrency: the caller
        passes the membershipVersion the reservation was read at, and a stale
        edit answers 409 instead of silently clobbering another edit.
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````