Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

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