---
title: "Set Secret Value"
method: PUT
path: "/cluster/secrets/"
tags: ["secrets"]
---

# Set Secret Value

`PUT /cluster/secrets/`

This will set secrets data/value against given key

## Query parameters

- `id` string, required

## Request body

- SetSecretRequest — SetSecretRequest stores the given value/data against the key
  - `SecretValue` object

## Response `200`

success

## Changes

- **2018-04-20** `481e7907ba53` — 1 info
  - endpoint added
- **2017-12-05** `d79082f863d1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/libopenstorage/apis/osd-api/changes/cluster/secrets/put.md)

---

[API](https://skmtc.dev/libopenstorage/apis/osd-api.md) · [All operations](https://skmtc.dev/libopenstorage/apis/osd-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/libopenstorage/osd-api/revisions/9faa312702c4/schema)
