Skip to main content

teams message update

Auto-generated reference

This page is generated from checked-in CLI metadata for release v0.13.0. Do not edit it by hand.

Update a message

Synopsis​

teams message update (--team <TEAM> --channel <CHANNEL> [--reply <REPLY>] | --chat <CHAT>) (MESSAGE_ID | --message <MESSAGE>) (--body <BODY> | --stdin) [--content-type <CONTENT_TYPE>] [--mention <USER>]... [--subject <SUBJECT>]

Options​

OptionValueRequiredEnvDefaultDescription
--teamTEAMnoTeam ID (for channel messages; requires --channel)
--channelCHANNELnoChannel ID (for channel messages; requires --team)
--chatCHATnoChat ID (for chat messages)
--replyREPLYnoReply ID, to target a reply in a channel thread (MESSAGE_ID is then the parent post)
MESSAGE_IDMESSAGE_IDnoMessage ID
--messageMESSAGEnoMessage ID
--bodyBODYnoNew message body
--stdinSTDINnofalseRead the new message body from stdin
--content-typeCONTENT_TYPEnotextContent type: text or html
--mentionUSERnoUser to @mention (repeatable): an Entra object ID or UPN
--subjectSUBJECTnoNew subject for a channel root message; "" removes it (default: keep the current one)

Examples​

No command-specific examples are published yet.

Exit Codes​

CodeMeaning
0success
2invalid input
3authentication error
4permission denied
5not found
6rate limited

See Also​