---
title: "Update secret by key"
method: PUT
path: "/v1/secret/{key}"
tags: ["secret"]
---

# Update secret by key

`PUT /v1/secret/{key}`

## Path parameters

- `key` string, required

## Request body

- object
  - `value` string, required

## Response `200`

A description of the secret

- SecretKeyValue
  - `key` string, required — Secret key
  - `value` string, required — Secret value

---

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