This method shares an existing file in a channel.
This method has the URL https://slack.com/api/files.share
and follows the Slack Web API calling conventions.
Argument | Example | Required | Description |
---|---|---|---|
token |
xxxx-xxxxxxxxx-xxxx |
Required | Legacy token (requires scopes: post ) |
file |
F12345678 |
Required | ID of the file to be edited |
channel |
C12345678 |
Required | ID of channel to share the file in. Works with both public (channel ID) and private channels (group ID) |
You will receive a standard Slack API response in JSON as described here. For example if successful you get:
{
"ok": true
}
Error | Description |
---|---|
tbd |