Identities

Edit identity

Update an identity with the TypeScript SDK.

PUT/identities/{identity_id}

Use blnk.Identity.update to change the profile details on an identity.

Call the method

const response = await blnk.Identity.update(
  'idt_3b63c8da-af29-4cc3-ad38-df17d87456e6',
  {
    identity_type: 'individual',
    first_name: 'Jane',
    last_name: 'Smith',
  },
);
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": "alice.smith@example.com",
  "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.