GET
/files.remote.shareShare a remote file
Shares a remote file into one or more channels. Identify the file with file, external_id, or both, and provide the destination channel IDs in channels. The operation makes the registered remote file available in the specified channels.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
tokenstringoptional
Authentication token with the `remote_files:share` scope.
filestringoptional
The ID of a file registered with the service; use this or `external_id` to identify the file.
external_idstringoptional
The globally unique identifier of the registered remote file; use this or `file` to identify the file.
channelsstringoptional
A comma-separated list of channel IDs where the remote file will be shared.
200Returns an object with `ok` set to true when the remote file is shared.
okbooleanrequired
defaultReturns an object with `ok` set to false when the remote file cannot be shared or the request is invalid.
okbooleanrequired
Error handling
Provide at least one of file or external_id to identify the remote file. The authentication token must have the remote_files:share scope, and channels must contain a comma-separated list of destination channel IDs when channel targeting is used.