Mem0 icon

Mem0

Interact with the Mem0 API - intelligent memory layer for AI

Entity → Update

AI-generated

Summary

Update an entity with new fields or metadata

Inputs

  • authType — Choose between Mem0 cloud or your own instance
  • entityType (required) — Entity type for the selected operation
  • entityId (required) — Unique identifier of the entity
  • entityUpdateFields — Select the fields you want to update

Output shape

a single entity record returned by Mem0

Fields returned depend on server; typically includes id, type, and any updated metadata.

Examples

Example 1: Rename a user and add metadata

authType: cloud, entityType: user, entityId: user_123, entityUpdateFields: { name: 'John Doe', metadata: { entries: [{ key: 'department', value: 'engineering' }] } }

Example 2: Rename an organization

authType: cloud, entityType: organization, entityId: org_456, entityUpdateFields: { name: 'Acme Corp' }

Example 3: Add metadata to a project

authType: cloud, entityType: project, entityId: proj_789, entityUpdateFields: { metadata: { entries: [{ key: 'priority', value: 'high' }] } }

Links

Discussion