---
title: "/sshkeys/{id}/setdefault"
method: POST
path: "/sshkeys/{id}/setdefault"
---

# /sshkeys/{id}/setdefault

`POST /sshkeys/{id}/setdefault`

Set the specified SSH Key as the default SSH Key used by Shadeform.

## Response `200`

Confirms that the specified SSH Key was as set as the default key.

## Changes

> 50 revisions in range; 1 could not be searched.

- **2025-08-19** `3628781ac93f` — 1 info
  - api operation id `sshkeys/setdefault` removed and replaced with `SshKeysSetDefault`
- **2024-05-09** `94c632679032` — 1 info
  - endpoint added
- **2024-01-11** `7d5677457388` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/shadeform/apis/shadeform-api/changes/sshkeys/:id/setdefault/post.md)

---

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