> ## 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 Reserve Pool



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json post /api/v1/factory/k8s-pools
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:
    post:
      tags:
        - factory-k8s-pools
      summary: Public Reserve Pool
      operationId: public_reserve_pool_api_v1_factory_k8s_pools_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReserveK8sPoolRequest'
      responses:
        '201':
          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:
    ReserveK8sPoolRequest:
      properties:
        primeClusterId:
          type: string
          title: Primeclusterid
        poolName:
          type: string
          title: Poolname
        nodeNames:
          items:
            type: string
          type: array
          title: Nodenames
        memberUserIds:
          items:
            type: string
          type: array
          title: Memberuserids
        tailscaleCredentialId:
          type: string
          maxLength: 64
          minLength: 1
          title: Tailscalecredentialid
      type: object
      required:
        - primeClusterId
        - poolName
        - tailscaleCredentialId
      title: ReserveK8sPoolRequest
      description: |-
        Team self-service pool reservation. The acting user's identity comes
        from the adapter's authentication (GCP-forwarded session user on the
        team routes, API-token user on the public routes) — never from this
        body, which is why there is no `user_id` field here.
    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

````