Skip to main content
PATCH
/
v2
/
messages
/
{messageId}
Edit Message
curl --request PATCH \
  --url http://localhost:3000/api/v2/messages/{messageId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "<string>"
}'
{
  "id": "<string>",
  "content": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

messageId
string
required

Body

application/json
content
string
required

Response

Message updated successfully

id
string
required
content
string
required
updatedAt
string<date-time>
required
I