---
title: "Update virtual machine password"
method: POST
path: "/v1/projects/{projectId}/vm/{id}/password"
tags: ["Virtual machines"]
---

# Update virtual machine password

`POST /v1/projects/{projectId}/vm/{id}/password`

Updates the root or administrator password of a virtual machine.

## Path parameters

- `projectId` string, required
- `id` string, required

## Request body

- UpdateVMPasswordBody
  - `password` string, required

## Response `200`

A successful response.

- object

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/cudocompute/apis/cudo-compute-service.md) · [All operations](https://skmtc.net/cudocompute/apis/cudo-compute-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cudocompute/cudo-compute-service/revisions/93dc40dababc/schema)
