New Upsert Properties API for Identities

The Upsert Properties API has been added to the Identities endpoint, allowing you to update or create properties for an identity.

1from letta_client import IdentityProperty, Letta
2client = Letta(
3 token="YOUR_TOKEN",
4)
5client.identities.upsert_properties(
6 identity_id="IDENTITY_ID",
7 request=[
8 IdentityProperty(
9 key="name",
10 value="Caren",
11 type="string",
12 ),
13 IdentityProperty(
14 key="email",
15 value="caren@example.com",
16 type="string",
17 )
18 ],
19)