Current section
Files
Jump to
Current section
Files
priv/docs/methods/pins.remove.json
{
"args": {
"channel": {
"desc": "Channel where the item is pinned to. The `channel` argument is required and one of `file`, `file_comment`, or `timestamp` must also be specified.",
"required": true,
"type": "string"
},
"timestamp": {
"desc": "Timestamp of the message to un-pin. The `channel` argument is required and one of `file`, `file_comment`, or `timestamp` must also be specified.",
"required": false,
"type": "string"
}
},
"desc": "Un-pins an item from a channel.",
"errors": {
"bad_timestamp": "Value passed for `timestamp` was invalid.",
"channel_not_found": "The `channel` argument was not specified or was invalid",
"external_channel_migrating": "Channel is undergoing an active migration.",
"file_comment_not_found": "File comment specified by `file_comment` does not exist.",
"file_not_found": "File specified by `file` does not exist.",
"message_not_found": "Message specified by `channel` and `timestamp` does not exist.",
"no_item_specified": "One of `file`, `file_comment`, or `timestamp` was not specified.",
"no_pin": "The pin could not be found.",
"not_pinned": "The specified item is not pinned to the channel.",
"restricted_action": "The user does not have permission to remove pins from the channel."
},
"rate_limit": {
"label": "Tier 2: 20+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {
"bot": [
{
"name": "pins:write",
"url": "https://docs.slack.dev/reference/scopes/pins.write"
}
],
"user": [
{
"name": "pins:write",
"url": "https://docs.slack.dev/reference/scopes/pins.write"
}
]
}
}