---
title: "Updates the Memo with the given ID if it exists"
method: PATCH
path: "/memo/{memo_id}"
tags: ["memo"]
---

# Updates the Memo with the given ID if it exists

`PATCH /memo/{memo_id}`

## Path parameters

- `memo_id` integer, required

## Request body

- MemoUpdate
  - `title` string, nullable — Title of the Memo
  - `content` string, nullable — Textual content of the Memo
  - `content_json` string, nullable — JSON content of the Memo
  - `starred` boolean, nullable — Starred flag of the Memo

## Response `200`

Successful Response

- MemoRead
  - `title` string, required — Title of the Memo
  - `content` string, required — Textual content of the Memo
  - `content_json` string, required — JSON content of the Memo
  - `id` integer, required — ID of the Memo
  - `starred` boolean, required — Starred flag of the Memo
  - `user_id` integer, required — User the Memo belongs to
  - `project_id` integer, required — Project the Memo belongs to
  - `created` string, date-time, required — Created timestamp of the Memo
  - `updated` string, date-time, required — Updated timestamp of the Memo
  - `attached_object_id` integer, required — ID of the Object the Memo is attached to
  - `attached_object_type` 'source_document' | 'code' | 'sentence_annotation' | 'span_annotation' | 'span_group' | 'bbox_annotation' | 'project' | 'tag', required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/versions/6b22366ce2d1/schema)
