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

Open in Claude
Open in ChatGPT

Upsert Identity Properties

put/v1/identities/{identity_id}/properties

Upsert Identity Properties

Path ParametersExpand Collapse
identity_id: string

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

minLength45
maxLength45
Body ParametersExpand Collapse
body: array of IdentityProperty { key, type, value }
key: string

The key of the property

type: "string" or "number" or "boolean" or "json"

The type of the property

Accepts one of the following:
"string"
"number"
"boolean"
"json"
value: string or number or boolean or map[unknown]

The value of the property

Accepts one of the following:
UnionMember0 = string
UnionMember1 = number
UnionMember2 = boolean
UnionMember3 = map[unknown]
Upsert Identity Properties
curl https://api.letta.com/v1/identities/$IDENTITY_ID/properties \
    -X PUT \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $LETTA_API_KEY" \
    -d '[
          {
            "key": "key",
            "type": "string",
            "value": "string"
          }
        ]'
{}
Returns Examples
{}