---
title: "Update Company Secret"
method: PUT
path: "/companies/{company_id}/secrets/{key}"
tags: ["secrets"]
---

# Update Company Secret

`PUT /companies/{company_id}/secrets/{key}`

## Request

- Base URL: `https://api.nanocorp.so` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nanocorp.so/companies/{company_id}/secrets/{key}`
- Auth: HTTP bearer

## Path parameters

- `company_id` string, uuid, required
- `key` string, required

## Request body

- UpdateSecretRequest
  - `value` string, nullable
  - `description` string, nullable

## Response `200`

Successful Response

- SecretResponse
  - `key` string, required
  - `description` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nanocorp/apis/nanocorp-api.md) - [All operations](https://skmtc.dev/nanocorp/apis/nanocorp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nanocorp/apis/nanocorp-api/revisions/291bb76b720b?raw)
