KongPrincipalIdentity

Replace an identity

Changed on

Completely replaces an existing principal identity with the provided data. All fields must be specified; any omitted fields will be reset to their defaults.

put/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

union required
KongPrincipalIdentityOIDC required
OR
KongPrincipalIdentityAuthServerClient required
OR
KongPrincipalIdentityCPConsumer required
OR
KongPrincipalIdentityCustom required

Example request

{
  "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"
}

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

    • breaking

      the oneOf[#/components/schemas/KongPrincipalIdentityAuthServerClientResponse]/managed_by/additionalProperties response property's maxLength was increased from 63 to 127 for the response status

    • breaking

      the oneOf[#/components/schemas/KongPrincipalIdentityCPConsumerResponse]/managed_by/additionalProperties response property's maxLength was increased from 63 to 127 for the response status

    • breaking

      the oneOf[#/components/schemas/KongPrincipalIdentityCustomResponse]/managed_by/additionalProperties response property's maxLength was increased from 63 to 127 for the response status

    13 more changes in this revision