---
title: "Adds a Memo to the Attached Object with the given ID if it exists"
method: PUT
path: "/memo"
tags: ["memo"]
---

# Adds a Memo to the Attached Object with the given ID if it exists

`PUT /memo`

## Query parameters

- `attached_object_id` integer, required
- `attached_object_type` 'source_document' | 'code' | 'sentence_annotation' | 'span_annotation' | 'span_group' | 'bbox_annotation' | 'project' | 'tag', required

## Request body

- MemoCreate
  - `title` string, required — Title of the Memo
  - `icon` string, nullable — Optional Unicode emoji used as the Memo icon
  - `content` string, required — Textual content of the Memo
  - `content_json` string, required — JSON content of the Memo

## Response `200`

Successful Response

- MemoRead
  - `title` string, required — Title of the Memo
  - `icon` string, nullable — Optional Unicode emoji used as the Memo icon
  - `content` string, required — Textual content of the Memo
  - `content_json` string, required — JSON content of the Memo
  - `id` integer, required — ID of the Memo
  - `is_favorite` boolean — Whether the requesting user favorited 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

## Changes

- **2026-08-20** `28b2f0e8bc01` — 1 breaking, 1 warning, 3 info
  - removed the required property `starred` from the response with the `200` status
  - removed the request property `starred`
  - added the new optional request property `icon`
  - added the optional property `icon` to the response with the `200` status
  - …1 more
- **2026-07-15** `1af5a8046f20` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-08-22** `53e769440a25` — 2 warning
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status

[Change history](https://skmtc.dev/uhh-lt/apis/discourse-analysis-tool-suite-api/changes/memo/put.md)

---

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