---
title: "Changes to Replace a Directory"
method: PUT
path: "/v2/directories/{directoryId}"
---

# Changes to Replace a Directory

`PUT /v2/directories/{directoryId}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 31 revisions.

- **2026-12-03** `9c8d300657bd`: 5 breaking, 1 warning, 27 info
- **2026-08-18** `658ffb748f95`: 2 info
- **2026-06-26** `73b05fbfd2ef`: 1 info

## Changes

- **2026-12-03** `9c8d300657bd`: 5 breaking, 1 warning, 27 info
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - the response's body type changed from no type to `object` for status `409`
  - the `managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - changed the pattern of the request property `managed_by/additionalProperties/` from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$`
  - the `managed_by/additionalProperties/` request property's maxLength was increased from `63` to `127`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `400`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `401`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `403`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `409`
  - added the optional property `type` to the response with the `400` status
  - added the optional property `type` to the response with the `401` status
  - added the optional property `type` to the response with the `403` status
  - added the optional property `type` to the response with the `409` status
  - the `managed_by/additionalProperties/` response's property pattern was changed from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$` for the status `200`
  - added the required property `detail` to the response with the `400` status
  - added the required property `detail` to the response with the `401` status
  - added the required property `detail` to the response with the `403` status
  - added the required property `detail` to the response with the `409` status
  - added the required property `instance` to the response with the `400` status
  - added the required property `instance` to the response with the `401` status
  - added the required property `instance` to the response with the `403` status
  - added the required property `instance` to the response with the `409` status
  - added the required property `invalid_parameters` to the response with the `400` status
  - added the required property `status` to the response with the `400` status
  - added the required property `status` to the response with the `401` status
  - added the required property `status` to the response with the `403` status
  - added the required property `status` to the response with the `409` status
  - added the required property `title` to the response with the `400` status
  - added the required property `title` to the response with the `401` status
  - added the required property `title` to the response with the `403` status
  - added the required property `title` to the response with the `409` status
- **2026-08-18** `658ffb748f95`: 2 info
  - added the new optional request property `vault_enabled`
  - added the optional property `vault_enabled` to the response with the `200` status
- **2026-06-26** `73b05fbfd2ef`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/kong/apis/konnect-api-beta/docs/v2/directories/:directoryId/put.md) - [API](https://skmtc.dev/kong/apis/konnect-api-beta.md) - [Page](https://skmtc.dev/kong/apis/konnect-api-beta/changes/v2/directories/:directoryId/put)
