---
title: "Patch Memory"
method: PATCH
path: "/apps/{app_name}/users/{user_id}/memory"
---

# Patch Memory

`PATCH /apps/{app_name}/users/{user_id}/memory`

Adds all events from a given session to the memory service.

Args:
    app_name: The name of the application.
    user_id: The ID of the user.
    update_memory_request: The memory request for the update

Raises:
    HTTPException: If the memory service is not configured or the request
    is invalid.

## Path parameters

- `app_name` string, required
- `user_id` string, required

## Request body

- UpdateMemoryRequest — Request to add a session to the memory service.
  - `sessionId` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/google/apis/adk-rest-api-reference.md) · [All operations](https://skmtc.dev/google/apis/adk-rest-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/adk-rest-api-reference/revisions/05dc9d47fcf0/schema)
