Identities

Edit identity

Update an identity with the Java SDK.

PUT/identities/{identity_id}

Use blnk.identity().update for this operation.

Call the method

String identityId = "idt_073f7ffe-9dfd-42ce-aa50-d1dca1788adc";

ApiResponse<JsonNode> response = blnk.identity().update(
    identityId,
    IdentityData.create()
        .identityType("organization")
        .organizationName("Acme Corp")
        .category("customer"));
FieldTypeDescription
idStringIdentity ID to update.
identity_typeStringindividual or organization.
Profile fieldsstringAny field from create you want to change.

Verify the changes

Read response.data() to confirm the updated profile fields. The identity ID stays the same.

Response

{
  "identity_id": "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
  "identity_type": "individual",
  "first_name": "Jane",
  "last_name": "Smith",
  "email_address": "[email protected]",
  "created_at": "2024-11-26T08:36:36.238244338Z"
}
FieldTypeDescription
identity_idStringUnique ID for the identity.
created_atStringDate and time the identity was created.

The response returns the full identity with your changes applied.