---
title: "Update Message"
method: PATCH
path: "/spaces/{spaceId}/channels/{channelId}/messages/{messageId}"
tags: ["Messages"]
---

# Update Message

`PATCH /spaces/{spaceId}/channels/{channelId}/messages/{messageId}`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- MessageEditPayload2
  - `content` string, required

## Response `200`

- MessageExt
  - `attachments` MessageAttachment[], required
    - `contentType` string, required
    - `filename` string, required
    - `id` string, uuid, required
    - `messageId` string, uuid, required
    - `order` integer, required
    - `size` integer, required
    - `url` string, required
  - `author` User, nullable
    - `avatar` string, nullable
    - `category` 'BOT' | 'UNVERIFIED', nullable
    - `description` string, nullable
    - `id` string, uuid, required
    - `name` string, required
  - `authorId` string, uuid, nullable
  - `channelId` string, uuid, required
  - `content` string, required
  - `editedTimestamp` string, date-time, nullable
  - `id` string, uuid, required
  - `timestamp` string, date-time, required

## Changes

- **2025-11-24** `5a8e8d2d99d0`: 1 info
  - added the required property `attachments` to the response with the `200` status
- **2025-09-22** `2792e551a954`: 1 breaking
  - removed the required property `attachments` from the response with the `200` status

[Operation history](https://skmtc.dev/mikotoio/apis/mikoto-superego/changes/spaces/:spaceId/channels/:channelId/messages/:messageId/patch.md)

---

[API](https://skmtc.dev/mikotoio/apis/mikoto-superego.md) - [All operations](https://skmtc.dev/mikotoio/apis/mikoto-superego/llms.txt) - [OpenAPI document](https://skmtc.dev/mikotoio/apis/mikoto-superego/revisions/55ae42443991?raw)
