Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 820 Bytes

files.share.md

File metadata and controls

24 lines (20 loc) · 820 Bytes

files.share

This method shares an existing file in a channel.

Arguments

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)

Response

You will receive a standard Slack API response in JSON as described here. For example if successful you get:

{
   "ok": true
}

Errors & Warnings

Error Description
tbd