---
title: "Changes to Replace an identity"
method: PUT
path: "/v2/directories/{directoryId}/principals/{principalId}/identities/{identityId}"
---

# Changes to Replace an identity

`PUT /v2/directories/{directoryId}/principals/{principalId}/identities/{identityId}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 5 of 155 revisions.

- **2026-11-16** `a209c8bfa7b7`: 8 breaking, 8 info
- **2026-11-12** `d8bd04cfbaf7`: 12 breaking, 8 warning, 16 info
- **2026-11-05** `ff8439091e5f`: 8 breaking, 8 info
- **2026-11-03** `72599e2b1b09`: 1 info
- **2026-11-02** `7e077577b247`: 1 info

## Changes

- **2026-11-16** `a209c8bfa7b7`: 8 breaking, 8 info
  - the `type` request property const value `auth_server_client` was added
  - the `type` request property const value `control_plane_consumer` was added
  - the `type` request property const value `custom` was added
  - the `type` request property const value `oidc` was added
  - removed the enum value `auth_server_client` of the request property `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClient]/allOf[subschema #2]/type`
  - removed the enum value `control_plane_consumer` of the request property `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumer]/allOf[subschema #2]/type`
  - removed the enum value `custom` of the request property `oneOf[#/components/schemas/KongPrincipalIdentityCustom]/allOf[subschema #2]/type`
  - removed the enum value `oidc` of the request property `oneOf[#/components/schemas/KongPrincipalIdentityOIDC]/allOf[subschema #2]/type`
  - the `type` response property const value `auth_server_client` was added for the status `200`
  - the `type` response property const value `control_plane_consumer` was added for the status `200`
  - the `type` response property const value `custom` was added for the status `200`
  - the `type` response property const value `oidc` was added for the status `200`
  - removed the `auth_server_client` enum value from the `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClientResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - removed the `control_plane_consumer` enum value from the `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumerResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - removed the `custom` enum value from the `oneOf[#/components/schemas/KongPrincipalIdentityCustomResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - removed the `oidc` enum value from the `oneOf[#/components/schemas/KongPrincipalIdentityOIDCResponse]/allOf[subschema #2]/type` response property for the response status `200`
- **2026-11-12** `d8bd04cfbaf7`: 12 breaking, 8 warning, 16 info
  - request property `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClient]/allOf[subschema #2]/type` was restricted to a list of enum values
  - request property `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumer]/allOf[subschema #2]/type` was restricted to a list of enum values
  - request property `oneOf[#/components/schemas/KongPrincipalIdentityCustom]/allOf[subschema #2]/type` was restricted to a list of enum values
  - request property `oneOf[#/components/schemas/KongPrincipalIdentityOIDC]/allOf[subschema #2]/type` was restricted to a list of enum values
  - the `type` response property const value `auth_server_client` was removed for the status `200`
  - the `type` response property const value `control_plane_consumer` was removed for the status `200`
  - the `type` response property const value `custom` was removed for the status `200`
  - the `type` response property const value `oidc` was removed for the status `200`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClientResponse]/allOf[#/components/schemas/KongPrincipalIdentityResponseBase]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumerResponse]/allOf[#/components/schemas/KongPrincipalIdentityResponseBase]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityCustomResponse]/allOf[#/components/schemas/KongPrincipalIdentityResponseBase]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityOIDCResponse]/allOf[#/components/schemas/KongPrincipalIdentityResponseBase]/allOf[#/components/schemas/KongPrincipalIdentityBase]/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 `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClient]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$`
  - changed the pattern of the request property `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumer]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$`
  - changed the pattern of the request property `oneOf[#/components/schemas/KongPrincipalIdentityCustom]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$`
  - changed the pattern of the request property `oneOf[#/components/schemas/KongPrincipalIdentityOIDC]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$`
  - added the new `auth_server_client` enum value to the `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClientResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - added the new `control_plane_consumer` enum value to the `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumerResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - added the new `custom` enum value to the `oneOf[#/components/schemas/KongPrincipalIdentityCustomResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - added the new `oidc` enum value to the `oneOf[#/components/schemas/KongPrincipalIdentityOIDCResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - the `type` request property const value `auth_server_client` was removed
  - the `type` request property const value `control_plane_consumer` was removed
  - the `type` request property const value `custom` was removed
  - the `type` request property const value `oidc` was removed
  - added the new `auth_server_client` enum value to the request property `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClient]/allOf[subschema #2]/type`
  - added the new `control_plane_consumer` enum value to the request property `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumer]/allOf[subschema #2]/type`
  - added the new `custom` enum value to the request property `oneOf[#/components/schemas/KongPrincipalIdentityCustom]/allOf[subschema #2]/type`
  - added the new `oidc` enum value to the request property `oneOf[#/components/schemas/KongPrincipalIdentityOIDC]/allOf[subschema #2]/type`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClient]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` request property's maxLength was increased from `63` to `127`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumer]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` request property's maxLength was increased from `63` to `127`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityCustom]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` request property's maxLength was increased from `63` to `127`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityOIDC]/allOf[#/components/schemas/KongPrincipalIdentityBase]/managed_by/additionalProperties/` request property's maxLength was increased from `63` to `127`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClientResponse]/allOf[#/components/schemas/KongPrincipalIdentityResponseBase]/allOf[#/components/schemas/KongPrincipalIdentityBase]/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`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumerResponse]/allOf[#/components/schemas/KongPrincipalIdentityResponseBase]/allOf[#/components/schemas/KongPrincipalIdentityBase]/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`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityCustomResponse]/allOf[#/components/schemas/KongPrincipalIdentityResponseBase]/allOf[#/components/schemas/KongPrincipalIdentityBase]/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`
  - the `oneOf[#/components/schemas/KongPrincipalIdentityOIDCResponse]/allOf[#/components/schemas/KongPrincipalIdentityResponseBase]/allOf[#/components/schemas/KongPrincipalIdentityBase]/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`
- **2026-11-05** `ff8439091e5f`: 8 breaking, 8 info
  - the `type` request property const value `auth_server_client` was added
  - the `type` request property const value `control_plane_consumer` was added
  - the `type` request property const value `custom` was added
  - the `type` request property const value `oidc` was added
  - removed the enum value `auth_server_client` of the request property `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClient]/allOf[subschema #2]/type`
  - removed the enum value `control_plane_consumer` of the request property `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumer]/allOf[subschema #2]/type`
  - removed the enum value `custom` of the request property `oneOf[#/components/schemas/KongPrincipalIdentityCustom]/allOf[subschema #2]/type`
  - removed the enum value `oidc` of the request property `oneOf[#/components/schemas/KongPrincipalIdentityOIDC]/allOf[subschema #2]/type`
  - the `type` response property const value `auth_server_client` was added for the status `200`
  - the `type` response property const value `control_plane_consumer` was added for the status `200`
  - the `type` response property const value `custom` was added for the status `200`
  - the `type` response property const value `oidc` was added for the status `200`
  - removed the `auth_server_client` enum value from the `oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClientResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - removed the `control_plane_consumer` enum value from the `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumerResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - removed the `custom` enum value from the `oneOf[#/components/schemas/KongPrincipalIdentityCustomResponse]/allOf[subschema #2]/type` response property for the response status `200`
  - removed the `oidc` enum value from the `oneOf[#/components/schemas/KongPrincipalIdentityOIDCResponse]/allOf[subschema #2]/type` response property for the response status `200`
- **2026-11-03** `72599e2b1b09`: 1 info
  - added the required property `oneOf[#/components/schemas/KongPrincipalIdentityCPConsumerResponse]/allOf[subschema #2]/control_plane_type` to the response with the `200` status
- **2026-11-02** `7e077577b247`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/kong/apis/konnect-api-go-sdk/docs/v2/directories/:directoryId/principals/:principalId/identities/:identityId/put.md) - [API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [Page](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/directories/:directoryId/principals/:principalId/identities/:identityId/put)
