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
| Option | Value | Required | Env | Default | Description |
|---|---|---|---|---|---|
--team | TEAM | no | Team ID (for channel messages; requires --channel) | ||
--channel | CHANNEL | no | Channel ID (for channel messages; requires --team) | ||
--chat | CHAT | no | Chat ID (for chat messages) | ||
--reply | REPLY | no | Reply ID, to target a reply in a channel thread (MESSAGE_ID is then the parent post) | ||
MESSAGE_ID | MESSAGE_ID | no | Message ID | ||
--message | MESSAGE | no | Message ID |
Examples
No command-specific examples are published yet.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | success |
| 1 | general error |
| 2 | invalid input |
| 3 | authentication error |
| 4 | permission denied |
| 6 | rate limited |