KongPrincipalIdentity

Update an identity

Changed on

Partially updates an existing principal identity by modifying only the provided fields. Unspecified fields will retain their current values.

patch/v2/directories/{directoryId}/principals/{principalId}/identities/{identityId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

directoryId, string uuid required

ID of the directory

principalId, string uuid required

Unique identifier of the principal (UUID format)

identityId, string uuid required

Unique identifier of the principal identity (UUID format)

Request body

UpdatePrincipalIdentityBody required

Request body for partially updating a principal identity. The identity type cannot be changed. All fields are optional; only the fields relevant to the existing identity type will be applied.

issuer, string

The issuer URL. Applicable to oidc type identities.

claim, object
auth_server_id, string uuid

The auth server ID. Applicable to auth_server_client type identities.

client_id, string

The client ID. Applicable to auth_server_client type identities.

control_plane_id, string

The control plane ID. Applicable to control_plane_consumer type identities.

workspace_id, string

The workspace ID. Applicable to control_plane_consumer type identities.

consumer_id, string

The consumer ID. Applicable to control_plane_consumer type identities.

key, string

The key. Applicable to custom type identities.

value, string

The value. Applicable to custom type identities.

Response

A principal identity

union required
KongPrincipalIdentityOIDCResponse required
OR
KongPrincipalIdentityAuthServerClientResponse required
OR
KongPrincipalIdentityCPConsumerResponse required
OR
KongPrincipalIdentityCustomResponse required

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "labels": {
    "env": "test"
  },
  "managed_by": {
    "owner": "terraform"
  },
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • info

      the type response property const value auth_server_client was added for the status

    • info

      the type response property const value control_plane_consumer was added for the status

    • info

      the type response property const value custom was added for the status

    5 more changes in this revision