Modify Identity
client.identities.modify(stringidentityID, IdentityModifyParams { agent_ids, block_ids, identifier_key, 3 more } body, RequestOptionsoptions?): Identity { id, agent_ids, block_ids, 5 more }
/v1/identities/{identity_id}
Modify Identity
Parameters
Returns
Modify Identity
import Letta from '@letta-ai/letta-client';
const client = new Letta({
apiKey: 'My API Key',
});
const identity = await client.identities.modify('identity-123e4567-e89b-42d3-8456-426614174000');
console.log(identity.id);
{
"id": "identity-123e4567-e89b-12d3-a456-426614174000",
"agent_ids": [
"string"
],
"block_ids": [
"string"
],
"identifier_key": "identifier_key",
"identity_type": "org",
"name": "name",
"project_id": "project_id",
"properties": [
{
"key": "key",
"type": "string",
"value": "string"
}
]
}Returns Examples
{
"id": "identity-123e4567-e89b-12d3-a456-426614174000",
"agent_ids": [
"string"
],
"block_ids": [
"string"
],
"identifier_key": "identifier_key",
"identity_type": "org",
"name": "name",
"project_id": "project_id",
"properties": [
{
"key": "key",
"type": "string",
"value": "string"
}
]
}