---
title: "Update Managed Secret"
method: PATCH
path: "/v0/aws-secrets-manager/secrets/{secret-id}"
tags: ["AWS Secrets Manager Secrets"]
---

# Update Managed Secret

`PATCH /v0/aws-secrets-manager/secrets/{secret-id}`

Update a specific managed secret.

## Path parameters

- `secret-id` integer, required

## Request body

- AwsManagedSecretPatchRequest
  - `name` string — A descriptive label for this secret reference
  - `description` string, nullable — An optional description
  - `secret_identifier` string — The name or ARN of the secret in AWS Secrets Manager
  - `region` string — The AWS region where the secret is stored
  - `secret_version` string, nullable — A specific version ID or stage label
  - `version_kind` 'id' | 'stage' — Selects whether secret_version is treated as a VersionId or VersionStage for AWS GetSecretValue

## Response `200`

The request has succeeded.

- AwsManagedSecretResource
  - `id` integer — The unique identifier of the managed secret
  - `name` string — The name of the managed secret
  - `description` string, nullable — An optional description
  - `account_id` integer — The account this secret belongs to
  - `secret_identifier` string — The identifier used to fetch the secret from AWS Secrets Manager
  - `secret_version` string, nullable
  - `region` string — The AWS region where the secret is stored
  - `version_kind` 'id' | 'stage', nullable — Selects whether secret_version is treated as a VersionId or VersionStage for AWS GetSecretValue
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Validation error
- `401` — Unauthorized (missing or invalid API key)
- `403` — Forbidden
- `404` — Not found

---

[API](https://skmtc.net/oneschema/apis/templates.md) · [All operations](https://skmtc.net/oneschema/apis/templates/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneschema/templates/revisions/40674aa6d4d9/schema)
