Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

Upsert Identity Properties

identities.properties.upsert(stridentity_id, PropertyUpsertParams**kwargs) -> object
put/v1/identities/{identity_id}/properties

Upsert Identity Properties

ParametersExpand Collapse
identity_id: str

The ID of the identity in the format 'identity-'

minLength45
maxLength45
key: str

The key of the property

type: Literal["string", "number", "boolean", "json"]

The type of the property

Accepts one of the following:
"string"
"number"
"boolean"
"json"
value: Union[str, float, bool, Dict[str, object]]

The value of the property

Accepts one of the following:
ValueUnionMember0 = str
ValueUnionMember1 = float
ValueUnionMember2 = bool
ValueUnionMember3 = Dict[str, object]
ReturnsExpand Collapse
object
Upsert Identity Properties
from letta_client import Letta

client = Letta(
    api_key="My API Key",
)
response = client.identities.properties.upsert(
    identity_id="identity-123e4567-e89b-42d3-8456-426614174000",
    body=[{
        "key": "key",
        "type": "string",
        "value": "string",
    }],
)
print(response)
{}
Returns Examples
{}