---
title: "Update SSH public key information"
method: POST
path: "/project/{project_id}/ssh-public-key/{ssh_public_key_reference}"
tags: ["SSH Public Key"]
---

# Update SSH public key information

`POST /project/{project_id}/ssh-public-key/{ssh_public_key_reference}`

## Request body

- union
  - object
    - `name` string, required
    - `public_key` string
  - object
    - `public_key` string, required

## Response `200`

Successful response

- SshPublicKey
  - `id` string, required — ID of the SSH public key
  - `name` string, required — Name of the SSH public key
  - `public_key` string — SSH public key data

## Other responses

- `default` — An error response

## Changes

- **2025-10-03** `0a21fdeb70fc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ubicloud/apis/clover-api/changes/project/:project_id/ssh-public-key/:ssh_public_key_reference/post.md)

---

[API](https://skmtc.dev/ubicloud/apis/clover-api.md) · [All operations](https://skmtc.dev/ubicloud/apis/clover-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ubicloud/clover-api/revisions/ae229e5ccaee/schema)
