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"}'

参数

FieldTypeReqDefaultDescription
conversationIdstringY
messageIdstringY

请求体

FieldTypeReqDefaultDescription
contentstringN
metadataobjectN

响应示例

{
  "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