Packages

A Slack Web & Real Time Messaging API client.

Current section

Files

Jump to
slack_kit priv docs methods files.sharedPublicURL.json
Raw

priv/docs/methods/files.sharedPublicURL.json

{
"args": {
"file": {
"desc": "File to share",
"required": true,
"type": "string"
}
},
"desc": "Enables a file for public/external sharing.",
"errors": {
"file_not_found": "Value passed for `file` was invalid",
"not_allowed": "Public sharing has been disabled for this team. You may see this error if you are creating an external link from a free or trial workspace. You can either upgrade to a Paid Plan or use `file.list` to get a `url_private_download` link, download the file with an application, and re-upload it somewhere it can be shared with users who are not members of your workspace. Be sure to pass the Slack Bot token to the request on the headers file when calling `url_private_download`.",
"public_file_type_not_allowed": "Public sharing has been restricted for this file type.",
"public_video_not_allowed": "Public sharing of videos is not available. A `Free` instance of Slack may encounter this error because free teams don't have the ability to share video files publicly."
},
"rate_limit": {
"label": "Tier 3: 50+ per minute",
"url": "https://docs.slack.dev/apis/web-api/rate-limits"
},
"scopes": {
"user": [
{
"name": "files:write",
"url": "https://docs.slack.dev/reference/scopes/files.write"
}
]
}
}