> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Update Message

- Component: `appmixer.slack.messages.UpdateMessage`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.slack 6.0.7](https://connectors.appmixer.com/connector/appmixer.slack/6.0.7.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.slack/6.0.7/component/appmixer.slack.messages.UpdateMessage>

Update the contents of an existing message.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Channel (`channel`) | text | Channel containing the message to be updated. |
| Message Text (`text`) | textarea | - |
| Message Timestamp (`ts`) | text | - |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| OK (`ok`) | boolean | - |
| Channel (`channel`) | string | - |
| Message Timestamp (`ts`) | string | - |
| Text (`text`) | string | - |
| Message.User (`message.user`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.slack.messages.UpdateMessage",
  "label": "Update Message",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Update the contents of an existing message.",
  "private": false,
  "auth": {
    "service": "appmixer:slack",
    "scope": [
      "channels:read",
      "chat:write"
    ]
  },
  "quota": {
    "manager": "appmixer:slack:list",
    "resources": "postMessage",
    "maxWait": 30000,
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "ts": {
            "type": "string"
          }
        },
        "required": [
          "channel",
          "text",
          "ts"
        ]
      },
      "inspector": {
        "inputs": {
          "channel": {
            "type": "text",
            "group": "config",
            "label": "Channel",
            "tooltip": "Channel containing the message to be updated.",
            "index": 1,
            "source": {
              "url": "/component/appmixer/slack/list/ListChannels?outPort=channels",
              "data": {
                "transform": "ListChannels#channelsToSelectArray"
              }
            }
          },
          "text": {
            "type": "textarea",
            "label": "Message Text",
            "index": 2
          },
          "ts": {
            "type": "text",
            "label": "Message Timestamp",
            "index": 3
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "OK",
          "value": "ok",
          "schema": {
            "type": "boolean",
            "example": true
          }
        },
        {
          "label": "Channel",
          "value": "channel",
          "schema": {
            "type": "string",
            "example": "C0ABC12345"
          }
        },
        {
          "label": "Message Timestamp",
          "value": "ts",
          "schema": {
            "type": "string",
            "example": "1737024600.111333"
          }
        },
        {
          "label": "Text",
          "value": "text",
          "schema": {
            "type": "string",
            "example": "Updated: The meeting has been moved to 3 PM."
          }
        },
        {
          "label": "Message.User",
          "value": "message.user",
          "schema": {
            "type": "string",
            "example": "U0ABC12345"
          }
        }
      ]
    }
  ]
}
```
