Identities

Edit identity

Update an identity with the Python SDK.

PUT/identities/{identity_id}

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

Call the method

response = blnk.identity.update(
  "idt_3b63c8da-af29-4cc3-ad38-df17d87456e6",
  {
    "identity_type": "individual",
    "first_name": "Jane",
    "last_name": "Smith",
  },
)
FieldTypeDescription
idstrIdentity ID to update.
identity_typestrindividual 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_idstrUnique ID for the identity.
created_atstrDate and time the identity was created.

The response returns the full identity with your changes applied.