You're viewing documentation written for previous generations of our platform. Not everything may work as described with future generation apps.Take me back to the future

Message metadata was updated

Facts

Required scopes

Works with

Events API
{
    "type": "message_metadata_updated",
    "channel_id": "CJN879K8A",
    "event_ts": "1658906295.002200",
    "previous_metadata":
    {
        "event_type": "task_created",
        "event_payload":
        {
            "id": "TK-2132",
            "summary": "New issue with the display of mobile element",
            "description": "An end user has found a problem with the new mobile container for data entry. It was reproduced in the current version of IOS.",
            "priority": "HIGH",
            "resource_type": "TASK"
        }
    },
    "app_id": "AQF4F123M",
    "bot_id": "B8241P2B34D",
    "user_id": "UA8829BFL",
    "team_id": "T12F3JCAP",
    "message_ts": "1658905974.587109",
    "metadata":
    {
        "event_type": "task_created",
        "event_payload":
        {
            "id": "TK-2135",
            "summary": "New issue with the display of mobile element",
            "description": "An end user has found a problem with the new mobile container for data entry. It was reproduced in the current version of IOS.",
            "priority": "HIGH",
            "resource_type": "TASK"
        }
    }
}

The message_metadata_updated event is sent when a message's metadata has been updated. Within the payload you'll notice an extra previous_metadata in addition to the metadata section, notifying you of what was changed.

Similar to message_metadata_posted and message_metadata_deleted, your app will only subscribe to the event types defined within the metadata_subscriptions key within your app's manifest file (in this example, the task_created event). For more information about this, check out the metadata documentation.

When an event occurs, we will send an HTTP POST request to your Request URL. The outer payload is uniform across all Events API methods, and contains fields like team_id and event. Learn more