---
title: "Changes to Update a Secret"
method: POST
path: "/secrets/{id}/update"
---

# Changes to Update a Secret

`POST /secrets/{id}/update`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 79 revisions.

- **2026-02-24** `6df97b60796c`: 2 breaking, 6 info
- **2026-02-14** `31f80d10d31a`: 7 breaking, 4 warning, 6 info
- **2026-02-09** `831637d06c77`: 5 info

## Changes

- **2026-02-24** `6df97b60796c`: 2 breaking, 6 info
  - removed the request body
  - removed the success response with the status `204`
  - api tag `Secret` added
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`
  - added the non-success response with the status `503`
  - added the success response with the status `200`
- **2026-02-14** `31f80d10d31a`: 7 breaking, 4 warning, 6 info
  - request body became required
  - removed the media type `text/plain` from the request body
  - added `#/components/schemas/Driver` to the `Driver` request property `allOf` list
  - added `#/components/schemas/Driver` to the `Templating` request property `allOf` list
  - the `Driver` request property type changed from `object` to no type
  - the `Templating` request property type changed from `object` to no type
  - removed the success response with the status `200`
  - removed the request property `Driver/Name`
  - removed the request property `Driver/Options`
  - removed the request property `Templating/Name`
  - removed the request property `Templating/Options`
  - api tag `Secret` removed
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `404`
  - removed the non-success response with the status `500`
  - removed the non-success response with the status `503`
  - added the success response with the status `204`
- **2026-02-09** `831637d06c77`: 5 info
  - added optional request body
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `404`
  - added the media type `application/json` for the response with the status `500`
  - added the media type `application/json` for the response with the status `503`

---

[Operation](https://skmtc.dev/hexlet/apis/docker-engine-api/docs/secrets/:id/update/post.md) - [API](https://skmtc.dev/hexlet/apis/docker-engine-api.md) - [Page](https://skmtc.dev/hexlet/apis/docker-engine-api/changes/secrets/:id/update/post)
