Skip to main content

teams message undelete

Auto-generated reference

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

Restore a message removed with message delete

Synopsis​

teams message undelete (--team <TEAM> --channel <CHANNEL> [--reply <REPLY>] | --chat <CHAT>) (MESSAGE_ID | --message <MESSAGE>)

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

Examples​

No command-specific examples are published yet.

Exit Codes​

CodeMeaning
0success
1general error
2invalid input
3authentication error
4permission denied
6rate limited

See Also​