---
title: "PATCH /api/stories/{simulationId}/comments/messages/{messageId}"
method: PATCH
path: "/api/stories/{simulationId}/comments/messages/{messageId}"
tags: ["Comments"]
---

# PATCH /api/stories/{simulationId}/comments/messages/{messageId}

`PATCH /api/stories/{simulationId}/comments/messages/{messageId}`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/stories/{simulationId}/comments/messages/{messageId}`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

## Path parameters

- `simulationId` string, uuid, required: A valid GUID
- `messageId` string, uuid, required: A valid GUID

## Request body

- UpdateMessageDto
  - `content` RichTextDto, required
    - `textPlain` string, required
    - `textHtml` string, required
    - `textJson` string, required

## Response `200`

OK

- CommentMessageDto
  - `id` string, uuid, required: A valid GUID
  - `commentId` string, uuid, required: A valid GUID
  - `content` RichTextDto, required
    - `textPlain` string, required
    - `textHtml` string, required
    - `textJson` string, required
  - `createdById` string, required
  - `createdByName` string, required
  - `createdByType` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, nullable

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
