---
title: "Update a secret"
method: PUT
path: "/secrets/{secret_id}"
tags: ["Management"]
---

# Update a secret

`PUT /secrets/{secret_id}`

Update secret settings

## Path parameters

- `secret_id` integer, required

## Request body

- Secret
  - `id` integer
  - `name` string
  - `project_id` integer
  - `project_name` string
  - `kind` string
  - `username` string
  - `key` string

## Response `201`

Successfully

## Changes

> 50 revisions in range; 1 could not be searched.

- **2021-01-31** `ecd12e02213d` — 1 info
  - added optional request body
- **2021-01-31** `6dffc3a4de00` — 1 breaking
  - removed the request body

[Change history](https://skmtc.dev/kraken-ci/apis/server-api/changes/secrets/:secret_id/put.md)

---

[API](https://skmtc.dev/kraken-ci/apis/server-api.md) · [All operations](https://skmtc.dev/kraken-ci/apis/server-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kraken-ci/server-api/revisions/1f2ae877f985/schema)
