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

# Update server

> Update server metadata, tags, or profile assignment



## OpenAPI

````yaml api-docs/archived/atlas.json patch /v1/regions/{region}/infrastructure/servers/{id}
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/{id}:
    patch:
      tags:
        - Servers
      summary: Update server
      description: Update server metadata, tags, or profile assignment
      operationId: updateServer
      parameters:
        - name: region
          in: path
          required: true
          schema:
            type: string
          description: Region identifier
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Server identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                profileId:
                  type: string
                  nullable: true
                tags:
                  type: object
                  nullable: true
                  additionalProperties:
                    type: string
      responses:
        '200':
          description: Server updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/Server'
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

````