---
title: "Update secret"
method: PATCH
path: "/v1/projects/{project_id}/secrets/{secret_id}"
tags: ["secret"]
---

# Update secret

`PATCH /v1/projects/{project_id}/secrets/{secret_id}`

## Path parameters

- `project_id` integer, required
- `secret_id` integer, required

## Request body

- Secret
  - `id` integer
  - `name` string, required
  - `data` string, required
  - `secret_storage_id` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `200`

Updated

## Changes

- **2022-11-30** `8eb6f9b67855` — 1 info
  - endpoint added
- **2020-09-16** `591b8469378b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/caraml-dev/apis/mlp-api/changes/v1/projects/:project_id/secrets/:secret_id/patch.md)

---

[API](https://skmtc.dev/caraml-dev/apis/mlp-api.md) · [All operations](https://skmtc.dev/caraml-dev/apis/mlp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/caraml-dev/mlp-api/revisions/46b857cb8713/schema)
