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

# Update secret by key

`PUT /v1/secret/{key}`

## Request

- Base URL: `https://api.octoai.cloud`
- URL: `https://api.octoai.cloud/v1/secret/{key}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/octoml/apis/octoai-api/docs/v1/secret/:key/put.ts> (a function with typed inputs; its response is checked against the schema)

## 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.dev/octoml/apis/octoai-api.md) - [All operations](https://skmtc.dev/octoml/apis/octoai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/octoml/apis/octoai-api/revisions/ff4ad53097bc?raw)
