Delete Message: /message/ (DELETE)
Purpose:
Delete a message. The message will no longer be retrievable after this operation.
Input:
- Headers:
- Content-Type: application/json
- Authorization: The JWT token of the user.
- JSON Body:
- id: (Uuid) The id of the message.
Output (200):
{
"id": "c8132499-8e78-47fd-ada4-c4e259d5fc01",
"message_type": "MESSAGE",
"recipient_type": "CHANNEL",
"reference_id": "aa09131f-bc17-4c24-8a6c-e3eb4e868b34",
"content": "Hello, world!",
"date_created": "2024-08-12T12:34:56",
"date_updated": "2024-08-12T12:34:56",
"user_id": "a98a657f-df84-4fee-8aad-a9bdcdd0aeda",
"deleted": true
}