Added the api for edit message.