---
title: "Changes to Rotate or re-scope a secret in place [write]"
method: PATCH
path: "/vaults/{id}/secrets/{secretId}"
---

# Changes to Rotate or re-scope a secret in place [write]

`PATCH /vaults/{id}/secrets/{secretId}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 4 revisions.

- **2026-11-02** `e5e8f0229a99`: 2 info

## Changes

- **2026-11-02** `e5e8f0229a99`: 2 info
  - added the optional property `error/request_id` to the response with the `default` status
  - added the optional property `secret/allowed_hosts` to the response with the `200` status

---

[Operation](https://skmtc.dev/agentsky/apis/agentsky-developer-api/docs/vaults/:id/secrets/:secretId/patch.md) - [API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [Page](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/vaults/:id/secrets/:secretId/patch)
