---
title: "Update Custom Secret"
method: PUT
path: "/api/secrets/{secret_id}"
---

# Update Custom Secret

`PUT /api/secrets/{secret_id}`

## Path parameters

- `secret_id` string, required

## Request body

- CustomSecretWithoutValueModel — Custom secret model without value
  - `name` string, required
  - `description` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/all-hands/apis/openhands.md) · [All operations](https://skmtc.dev/all-hands/apis/openhands/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/all-hands/openhands/revisions/4daa2bb4dbf1/schema)
