Update a slash command
update_command.RdUpdate a command definition. The request body should be a complete Command object (the API replaces the entire definition).
Arguments
- command_id
Character. The command ID to update.
- body
Named list. The full Command object with updated fields. Must include required fields like `id`, `team_id`, `trigger`, `url`, and `method`.
- verbose
Logical. Print detailed request information? Default `FALSE`.
- auth
A `mattermost_auth` object created by [authenticate_mattermost()]. Defaults to [get_default_auth()].
Examples
if (FALSE) { # \dontrun{
cmd <- get_command("cmd_id_abc")
cmd$description <- "Updated description"
update_command("cmd_id_abc", body = cmd)
} # }