Edit Message: /message/ (PATCH)
Purpose:
Edit a prevously sent message.
Input:
- Headers:
- Content-Type: application/json
- Authorization: The JWT token of the user.
- JSON Body:
- id: (Uuid) The id of the message.
- content: (String) The new content of the message.
Output (200):
{
"id": "07b4d3c8-9166-4ef6-a6bb-b0eeb5328daa",
"message_type": "MESSAGE",
"recipient_type": "CHANNEL",
"reference_id": "aa09131f-bc17-4c24-8a6c-e3eb4e868b34",
"content": "Hello, planet!",
"date_created": "2024-08-12T12:34:56",
"date_updated": "2024-08-12T12:35:56",
"user_id": "00bb6d5d-3ddb-4cdf-9913-c877f75c4c7f",
"deleted": false
}