---
title: "Set a secret"
method: PUT
path: "/servers/{qualifiedName}/secrets"
tags: ["servers"]
---

# Set a secret

`PUT /servers/{qualifiedName}/secrets`

Create or update a secret value.

## Path parameters

- `qualifiedName` string, required

## Request body

- object
  - `name` string, required
  - `value` string, required

## Response `200`

Secret updated

- object
  - `success` boolean, required

## Other responses

- `404` — Server not found

---

[API](https://skmtc.net/smithery-ai/apis/smithery-platform-api.md) · [All operations](https://skmtc.net/smithery-ai/apis/smithery-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smithery-ai/smithery-platform-api/revisions/60b8c3d2fecf/schema)
