Skip to main content
PATCH
/
threads
/
{threadId}
/
messages
/
{messageId}
Edit message
curl --request PATCH \
  --url https://inboxapp.com/api/v1/threads/{threadId}/messages/{messageId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>"
}
'
{
  "success": true,
  "messageId": "<string>",
  "content": "<string>",
  "editedAt": "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

threadId
string
required

The ID of the thread containing the message.

messageId
string
required

The ID of the message to edit.

Body

application/json
content
string
required

The new content for the message.

Minimum string length: 1
Example:

"Updated message content"

Response

200 - application/json

OK

success
boolean
required
messageId
string
required
content
string
required
editedAt
string<date-time>
required