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

# Update virtual machine authorized SSH keys

`POST /v1/projects/{projectId}/vm/{id}/authorized-ssh-keys`

Updates the authorized SSH keys of a virtual machine.

## Path parameters

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

## Request body

- UpdateVMAuthorizedSSHKeysBody
  - `customSshKeys` string[]
  - `sshKeySource` 'SSH_KEY_SOURCE_UNKNOWN' | 'SSH_KEY_SOURCE_PROJECT' | 'SSH_KEY_SOURCE_USER' | 'SSH_KEY_SOURCE_NONE'

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