---
title: "Rewrite a note"
method: PATCH
path: "/assistant/memory/{scope}/{memoryId}"
tags: ["Assistant"]
---

# Rewrite a note

`PATCH /assistant/memory/{scope}/{memoryId}`

As for adding one; 404 when the note is not one the caller can see in that scope.

## Request body

- AssistantMemoryRequest
  - `text` string, required

## Response `200`

The note

- AssistantMemoryResponse
  - `data` AssistantMemory, required
    - `createdAt` string, date-time, required
    - `id` string, required
    - `scope` string, required — company or personal.
    - `source` string, required — manual when written in Settings, tally when saved from a Tally card.
    - `text` string, required
    - `updatedAt` string, date-time, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict

## Changes

- **2026-10-04** `77d466d0e73d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/greentally/apis/esgai-api/changes/assistant/memory/:scope/:memoryId/patch.md)

---

[API](https://skmtc.dev/greentally/apis/esgai-api.md) · [All operations](https://skmtc.dev/greentally/apis/esgai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/greentally/apis/esgai-api/revisions/77d466d0e73d?raw)
