---
title: "Edit your own message"
method: PATCH
path: "/chat/threads/{threadId}/messages/{messageId}"
tags: ["Chat"]
---

# Edit your own message

`PATCH /chat/threads/{threadId}/messages/{messageId}`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/chat/threads/{threadId}/messages/{messageId}`
- Auth: HTTP bearer

## Path parameters

- `threadId` string, uuid, required
- `messageId` string, uuid, required

## Request body

- EditChatMessageRequest
  - `body` string, required

## Response `200`

OK

- object
  - `data` ChatWrittenMessage, required
    - `id` string, uuid, required
    - `senderId` string, uuid, required
    - `body` string, nullable, required
    - `mediaAssetId` string, uuid, nullable, required
    - `replyToId` string, uuid, nullable, required
    - `unsent` boolean, required
    - `editedAt` string, nullable, required
    - `createdAt` string, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `403`: Not the message's author
- `404`: No such thread, or the caller is not a member

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
