---
title: "Changes to Create a secret"
method: POST
path: "/secrets/create"
---

# Changes to Create a secret

`POST /secrets/create`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 79 revisions.

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

## Changes

- **2026-02-24** `6df97b60796c`: 2 breaking, 5 info
  - removed the request body
  - removed the success response with the status `200`
  - api tag `Secret` added
  - added the non-success response with the status `409`
  - 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 `201`
- **2026-02-14** `31f80d10d31a`: 3 breaking, 1 warning, 10 info
  - request body became required
  - the request's body type changed from no type to `object`
  - removed the success response with the status `201`
  - removed `#/components/schemas/SecretSpec, subschema #2` from the request body `allOf` list
  - api tag `Secret` removed
  - added the new optional request property `Data`
  - added the new optional request property `Driver`
  - added the new optional request property `Labels`
  - added the new optional request property `Name`
  - added the new optional request property `Templating`
  - removed the non-success response with the status `409`
  - 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 `200`
- **2026-02-09** `831637d06c77`: 5 info
  - added optional request body
  - added the media type `application/json` for the response with the status `201`
  - added the media type `application/json` for the response with the status `409`
  - 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/create/post.md) - [API](https://skmtc.dev/hexlet/apis/docker-engine-api.md) - [Page](https://skmtc.dev/hexlet/apis/docker-engine-api/changes/secrets/create/post)
