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

# Update server metadata



## OpenAPI

````yaml /openapi.json patch /servers/{server}
openapi: 3.1.0
info:
  title: Wenium Cloud API
  version: 2.0.0
  description: >-
    Complete API documentation for the Wenium Cloud platform.


    **Authentication.** All authenticated endpoints require a personal access
    token. Send the token in the `Authorization: Bearer <token>` header.
servers:
  - url: https://console.wenium.com/api
    description: Production API Server
security:
  - bearerAuth: []
paths:
  /servers/{server}:
    patch:
      summary: Update server metadata
      parameters:
        - name: server
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                hostname:
                  type: string
                  example: updated-hostname
                firewall_group_id:
                  type: integer
                  nullable: true
                  example: 5
      responses:
        '200':
          description: Server updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Server updated.
                  data:
                    $ref: '#/components/schemas/Server'
components:
  schemas:
    Server:
      type: object
      properties:
        id:
          type: integer
          example: 10
        name:
          type: string
          example: web-server-01
        vcpu:
          type: integer
          example: 2
        ram:
          type: integer
          example: 2048
        disk:
          type: integer
          example: 40
        bw_used:
          type: number
          example: 12.34
        main_ipv4:
          type: string
          format: ipv4
          example: 192.168.1.100
        main_ipv6:
          type: string
          format: ipv6
          nullable: true
          example: 2001:db8::1
        template:
          type: string
          example: Ubuntu 22.04
        firewall_group_id:
          type: integer
          nullable: true
          example: 5
        created_at:
          type: string
          format: date-time
          example: '2026-07-03T00:00:00.000000Z'
        renewed_at:
          type: string
          format: date-time
          example: '2026-07-03T00:00:00.000000Z'
        due_date:
          type: string
          format: date-time
          nullable: true
          example: '2026-08-03T00:00:00.000000Z'
        recurring_amount:
          type: number
          example: 15
        amount_paid:
          type: number
          example: 15
        payment_currency:
          type: string
          example: USD
        billing_cycle:
          type: string
          example: monthly
        status:
          type: string
          example: running
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum personal access token

````