Skip to main content
PUT
/
api
/
v1
/
messages
/
{messageId}
Update message
curl --request PUT \
  --url http://localhost:{port}/api/v1/messages/{messageId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "star": true,
  "pin": true,
  "pinDuration": 123,
  "reaction": "<string>",
  "edit": "<string>"
}
'
{
  "success": true,
  "actions": {
    "starred": true,
    "pinned": true,
    "reaction": true,
    "edited": true
  }
}

Authorizations

Authorization
string
header
required

JWT token authentication

Path Parameters

messageId
string
required

ID of the message to update

Body

application/json
star
boolean

Whether to star (true) or unstar (false) the message

pin
boolean

Whether to pin (true) or unpin (false) the message

pinDuration
number

Duration in seconds for a pinned message

reaction
string

Emoji reaction to add to the message (empty string to remove reaction)

edit
string

New text content (message editing)

Response

Message updated successfully

success
boolean
required

Whether the update was successful

actions
object
required

Actions performed during the update