---
title: "Update a secret."
method: PUT
path: "/system/secrets"
---

# Update a secret.

`PUT /system/secrets`

## Request body

- Secret
  - `name` string, required — Name of secret
  - `value` string — Value of secret in plain-text

## Response `200`

Ok

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `405` — Method Not Allowed. Secret update is not allowed in faas-swarm.
- `500` — Internal Server Error

---

[API](https://skmtc.net/tanklabtju/apis/openfaas-api-gateway.md) · [All operations](https://skmtc.net/tanklabtju/apis/openfaas-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tanklabtju/openfaas-api-gateway/versions/15f9c1fdaeb2/schema)
