Skip to main content

pin_removed event

A pin was removed from a channel

Facts

Required Scopes
Compatible APIs

Usage info

This example includes both the event wrapper and the event structure for the pin_removed event.

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "pin_removed",
"user": "U123ABC456",
"channel_id": "C02ELGNBH",
"item": {
"..."
},
"has_pins": false,
"event_ts": "1360782804.083113"
},
"type": "event_callback",
"authorizations": [
{
"team_id": "T123ABC456",
"user_id": "U123ABC456",
"is_bot": false,
"is_enterprise_install": false,
}
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}

When an item is un-pinned from a channel, the pin_removed event is sent to all members of that channel.

The has_pins property indicates that there are other pinned items in that channel.