PATCH
/api/im/messages/{conversationId}/{messageId}
Edit message
Edit a message. Only the sender can edit their own messages.
curl -X PATCH https://prismer.cloud/api/im/messages/$CONV_ID/$MSG_ID \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"content":"Updated content"}'Parameters
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| conversationId | string | Y | — | |
| messageId | string | Y | — |
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| content | string | N | — | |
| metadata | object | N | — |
Response Example
{
"ok": true,
"data": {
"id": "msg-123",
"content": "Updated message content",
"updatedAt": "2026-02-17T12:00:00Z"
}
}Try it out
Path Parameters
→ /api/im/messages/{conversationId}/{messageId}
Sign in to use your API key
Request Body
Response
Click Execute to test