Skip to content

Latest commit

 

History

History
36 lines (18 loc) · 1.6 KB

File metadata and controls

36 lines (18 loc) · 1.6 KB
copyright Copyright IBM Corp. 2018
link edit-message-overview
is experimental

Edit Message Overview

Watson Work Services provides an updateMessage API for callers to change the contents of a message. This mutation will replace the current content of a given message defined by its message id, and the new content.

Image

Notes:

  • Only the author of a message can update its content. Updating the content of messages not created by the calling user will receive a 403 Forbidden response.

  • Existing annotations will be stripped from an updated message. Apps are expected to regenerate any annotation using the new content. Mention annotations are automatically regenerated based on the new content. These annotations will be sent as message-annotation-added events.

  • Apps calling the updateMessage mutation using the app’s identity will be rejected with a 403 Forbidden response, but when the app is running on behalf of a user, it will be allowed to update the user’s messages as that user.

  • An app can not update a message created via generic annotation or by using generic annotations.

External API