---
title: "add key to KMS"
method: PUT
path: "/keymanagement/:keyname/"
tags: ["keymanagement"]
---

# add key to KMS

`PUT /keymanagement/:keyname/`

adds a key to the KMS; load key into cache and write file

## Request body

- ApiKeyManagementKey
  - `private` string
  - `public` string

## Response `200`

OK

- unknown

## Other responses

- `400` — Bad Request

## Changes

> 4 revisions in range; 1 not diffed.

- **2024-03-06** `53bae137e6cc` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/cossas/apis/soarca-api/changes/keymanagement/:keyname/put.md)

---

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