# Update a managed memory entry

Launch stage: Beta

`PATCH /api/2.0/agents/{name=memory-stores/*/entries/*}`

Updates selected mutable fields on a managed memory entry. Identity fields are immutable.

API scopes: agent-kit

## Path parameters

- `name` (string, required, ID, Immutable)
  Resource name in the form
   `memory-stores/{managed_memory_store_id}/entries/{managed_memory_entry_id}`.

## Query parameters

- `update_mask` (string, required)
  Fields to update. Only `content` and `description` may be updated.

## Request body

The managed memory entry to update.
- `actor_id` (string, required, Immutable)
  Customer-provided identifier for the actor whose memory this entry represents.
- `session_id` (string, optional, Immutable)
  Optional identifier for the session associated with this memory entry. When omitted, the
   entry applies across the actor's sessions.
- `path` (string, required, Immutable)
  Absolute, case-sensitive path identifying the entry within its actor and optional session.
   Paths must begin with `/` and must not contain empty, `.` or `..` segments.
- `content` (string, optional)
  Optional free-form memory content.
- `description` (string, optional)
  Human-readable description of the memory entry.
- `source_type` (string, optional, Immutable)
  Which writer created this entry. Caller sets this on Create; immutable after creation.
  Possible values:
  - `MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT`
  - `MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER`

## Returns

Returns the ManagedMemoryEntry object.

## Response

```json
{
  "name": "string",
  "actor_id": "string",
  "session_id": "string",
  "path": "string",
  "content": "string",
  "description": "string",
  "source_type": "MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT",
  "create_time": "string",
  "update_time": "string"
}
```

