---
title: "Add or update a secret"
method: PUT
path: "/servers/{namespace}/secrets"
tags: ["servers"]
---

# Add or update a secret

`PUT /servers/{namespace}/secrets`

Set a secret value for the server.

## Path parameters

- `namespace` 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

## Changes

- **2026-01-27** `12e546828dc5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/changes/servers/:namespace/secrets/put.md)

---

[API](https://skmtc.dev/smithery-ai/apis/smithery-platform-api.md) · [All operations](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/revisions/9d53933ba12e?raw)
