---
title: "Rename VM"
method: PATCH
path: "/api/v1/vms/{id}/rename"
tags: ["Virtual Machines"]
---

# Rename VM

`PATCH /api/v1/vms/{id}/rename`

Rename a virtual machine.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Project-ID` string, uuid, required

## Request body

- RenameVMRequest
  - `name` string, required — New name for the virtual machine

## Response `200`

VM renamed

- SuccessResponse
  - `success` boolean
  - `message` string

## Other responses

- `400` — X-Project-ID header is required for this endpoint
- `401` — Authentication required
- `404` — Resource not found

---

[API](https://skmtc.net/rafftechnologies/apis/raff-api.md) · [All operations](https://skmtc.net/rafftechnologies/apis/raff-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rafftechnologies/raff-api/versions/a3f123570011/schema)
