---
title: "Update a GPG Key"
method: PATCH
path: "/gpg-keys/{gpg_key}"
tags: ["gpg_keys"]
---

# Update a GPG Key

`PATCH /gpg-keys/{gpg_key}`

This endpoint updates a GPG key.

## Path parameters

- `gpg_key` string, required

## Response `200`

Updated.

## Other responses

- `403` — User unauthorized to perform action.
- `404` — GPG key not found or user unauthorized to perform action.
- `422` — Malformed request body (missing attributes, wrong types, etc.).
- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/revisions/fc927526ad12/schema)
