Palbase Messaging · API
/messaging/conversations/{conversation_id}/messages/{message_id}Change a message
Its writer changes what a message says, within 15 minutes of sending it; its files stay. What it said before is kept 14 days, sealed, for a report alone.
Called by a signed-in user of your app, with their token and the publishable key.
Path
conversation_idstring (uuid) · requiredThe conversation.message_idstring (uuid) · requiredThe message.Request body
mentionsobject[] · optionalWhom its words name.textstring · requiredWhat the message says now.curl -X PATCH "https://<your-ref>.palbase.studio/messaging/conversations/<conversation_id>/messages/<message_id>" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"text":"string"}'Responses
200The message
400The request is malformed, or a field breaks a rule (the error names which)
401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)
403Not its writer (`not_yours`), or past 15 minutes (`edit_window_passed`), or the project's server made the conversation read-only (`read_only`)
404No such message (`message_not_found`)
410The message was removed (`message_removed`)
413The request body is too large (`request_too_large`)
429Over the project's request limit; Retry-After says when to try again
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation EditMessage of messaging's contract.