---
title: "Update message"
method: PATCH
path: "/messages/{id}"
tags: ["Messages"]
---

# Update message

`PATCH /messages/{id}`

Edit the content, attachments, or pinned status of an existing message in an experience chat, DM, or group chat channel.

## Path parameters

- `id` string, required

## Request body

- object — Parameters for UpdateMessage
  - `attachments` object[], nullable — A replacement list of file attachments for this message, such as images or videos.
    - `id` string, required — The ID of an existing file object.
  - `content` string, nullable — The updated body of the message in Markdown format. For example, 'Hello **world**'.
  - `is_pinned` boolean, nullable — Whether this message should be pinned to the top of the channel.

## Response `200`

A successful response

- Message — A message sent within an experience chat, direct message, or group chat.
  - `content` string, nullable, required — The message content formatted as Markdown. Null if the message has no text content.
  - `created_at` string, date-time, required — The timestamp when this message was originally created.
  - `id` string, required — Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"VXNlci0xMA=="`) or integer (such as `4`) input value will be accepted as an ID.
  - `is_edited` boolean, required — Whether the message content has been edited after it was originally sent.
  - `is_pinned` boolean, required — Whether this message is pinned to the top of the channel for easy access.
  - `mentions` string[], required — A list of user IDs that are explicitly mentioned in this message.
  - `mentions_everyone` boolean, required — Whether the message includes an @everyone mention that notifies all channel members.
  - `message_type` 'regular' | 'system' | 'automated', required — The types of post
  - `poll` object, nullable, required — A poll attached to this message. Null if the message does not contain a poll.
    - `options` object[], nullable, required — The options for the poll
      - `id` string, required — The unique identifier for the poll option.
      - `text` string, required — The text of the poll option
  - `poll_votes` object[], required — Aggregated reaction counts on this message, filtered to a specific reaction type.
    - `count` integer, required — The number of users who reacted
    - `option_id` string, nullable, required — The reaction that was used
  - `reaction_counts` object[], required — Aggregated reaction counts on this message, filtered to a specific reaction type.
    - `count` integer, required — The number of users who reacted
    - `emoji` string, nullable, required — The emoji that was used in shortcode format (:heart:)
  - `replying_to_message_id` string, nullable, required — The unique identifier of the message this post is replying to. Null if this is not a reply.
  - `updated_at` string, date-time, required — The timestamp when this message was last modified.
  - `user` object, required — The user who authored this message.
    - `id` string, required — The unique identifier for the user.
    - `name` string, nullable, required — The user's display name shown on their public profile.
    - `username` string, required — The user's unique username shown on their public profile.
  - `view_count` integer, nullable, required — The number of unique views this message has received. Null if view tracking is not enabled for this channel.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `422` — Verification required
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.net/whop/apis/whop-api.md) · [All operations](https://skmtc.net/whop/apis/whop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/whop/whop-api/versions/866821546d67/schema)
