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

# Rename Server

> Updates the display name of a server.



## OpenAPI

````yaml PATCH /servers/{server}/rename
openapi: 3.0.3
info:
  title: CloudBlast API
  description: >-
    The CloudBlast V2 API provides a modern RESTful interface for managing your
    cloud infrastructure programmatically. All responses follow a consistent `{
    "data": ... }` or `{ "error": ... }` format.
  version: 2.0.0
servers:
  - url: https://console.cloudblast.io/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /servers/{server}/rename:
    patch:
      tags:
        - Servers
      summary: Rename server
      description: Updates the display name of a server.
      operationId: renameServer
      parameters:
        - $ref: '#/components/parameters/ServerIdentifier'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  maxLength: 40
                  description: New server name
                  example: my-web-server
      responses:
        '200':
          description: Updated server
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Server'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  parameters:
    ServerIdentifier:
      name: server
      in: path
      required: true
      schema:
        type: string
      description: >-
        Server identifier — any of: numeric `id`, `uuid_short` (8 chars), or
        full `uuid` (36 chars).
      example: a1b2c3d4
  schemas:
    Server:
      type: object
      properties:
        id:
          type: integer
          description: >-
            Numeric server ID. Can be used as the `{server}` path parameter (as
            can `uuid` and `uuid_short`).
          example: 42
        uuid:
          type: string
          format: uuid
          description: >-
            Server UUID. Use this (or `uuid_short`) as the `{server}` path
            parameter.
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        uuid_short:
          type: string
          description: >-
            First 8 characters of the UUID. Can also be used as the `{server}`
            path parameter.
          example: a1b2c3d4
        name:
          type: string
          example: Starter VPS
        status:
          type: string
          nullable: true
          description: Application status. `null` means the server is healthy.
          enum:
            - null
            - installing
            - install_failed
            - suspended
            - restoring_backup
            - restoring_snapshot
            - deleting
            - deletion_failed
          example: null
        cpu:
          type: integer
          description: CPU cores
          example: 2
        memory:
          type: integer
          description: RAM in bytes
          example: 2147483648
        disk:
          type: integer
          description: Disk in bytes
          example: 42949672960
        bandwidth_usage:
          type: integer
          description: Current month bandwidth usage in bytes
          example: 536870912
        bandwidth_limit:
          type: integer
          nullable: true
          description: Monthly bandwidth limit in bytes
          example: 1073741824000
        node_id:
          type: integer
          example: 1
        created_at:
          type: string
          format: date-time
          example: '2026-01-10T14:00:00+00:00'
        ip_addresses:
          type: array
          items:
            $ref: '#/components/schemas/IpAddress'
    IpAddress:
      type: object
      properties:
        address:
          type: string
          example: 203.0.113.50
        type:
          type: string
          enum:
            - ipv4
            - ipv6
          example: ipv4
        gateway:
          type: string
          example: 203.0.113.1
        cidr:
          type: integer
          example: 24
        rdns:
          type: string
          nullable: true
          description: Reverse DNS hostname
          example: server1.example.com
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code
            message:
              type: string
              description: Human-readable error message
          required:
            - code
            - message
  responses:
    Unauthenticated:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHENTICATED
              message: >-
                Missing or invalid Authorization header. Use: Authorization:
                Bearer <token>
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Server not found.
    ValidationError:
      description: Validation failed
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  message:
                    type: string
                    example: The given data was invalid.
                  details:
                    type: object
                    additionalProperties:
                      type: array
                      items:
                        type: string
                    example:
                      name:
                        - The name field is required.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token from your CloudBlast account settings. Pass as `Authorization:
        Bearer <token>`.

````