dambel

دمبل

shevron
ورود | ثبت نام

API Docs / chats / messages / update



PUT /api/v1/chats/{chat-id}/messages/{message-id}

Updates a specific message in a chat.


Permissions

PermissionDescription
chat_messages.updateUpdate your own messages

URL Parameters

NameTypeRequiredDescriptionExample
chat-idintYesID of the chat123
message-idintYesID of the message to update456

Request Body Parameters

NameTypeRequiredDescriptionExample
contentstringYesUpdated message content"Updated text"

Request Example

{
  "content": "Updated text"
}

Response

200 OK

Returns the updated chat message resource.

Example

{ /* chat message resource */ }

For a full schema, see Chat Message Resource.


Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube