Work with Files

The following are Apex classes for the Slack files API methods.

Represents information about a file shared with a workspace.

Usage

See Slack's file object type.

The following are methods for File.

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: List<Slack.File.Address>

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: List<String>

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: List<Slack.File.Address>

Signature

Return Value

Type: List<String>

Signature

Return Value

Type: Slack.File.Headers

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: List<String>

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: Map<String,Slack.File.PinnedInfo>

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: Slack.File.Shares

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: List<Slack.File.Address>

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Signature

Parameters

appId

Type: String

Return Value

Type: void

Signature

Parameters

appName

Type: String

Return Value

Type: void

Signature

Parameters

cc

Type: List<Slack.File.Address>

Return Value

Type: void

Signature

Parameters

channelActionsCount

Type: Integer

Return Value

Type: void

Signature

Parameters

channelActionsTs

Type: String

Return Value

Type: void

Signature

Parameters

channels

Type: List<String>

Return Value

Type: void

Signature

Parameters

convertedPdf

Type: String

Return Value

Type: void

Signature

Parameters

created

Type: Integer

Return Value

Type: void

Signature

Parameters

deanimatedGif

Type: String

Return Value

Type: void

Signature

Parameters

displayAsBot

Type: Boolean

Return Value

Type: void

Signature

Parameters

editable

Type: Boolean

Return Value

Type: void

Signature

Parameters

editLink

Type: String

Return Value

Type: void

Signature

Parameters

editor

Type: String

Return Value

Type: void

Signature

Parameters

external

Type: Boolean

Return Value

Type: void

Signature

Parameters

externalId

Type: String

Return Value

Type: void

Signature

Parameters

externalType

Type: String

Return Value

Type: void

Signature

Parameters

externalUrl

Type: String

Return Value

Type: void

Signature

Parameters

filetype

Type: String

Return Value

Type: void

Signature

Parameters

fromValue

Type: List<Slack.File.Address>

Return Value

Type: void

Signature

Parameters

groups

Type: List<String>

Return Value

Type: void

Signature

Parameters

hasMore

Type: Boolean

Return Value

Type: void

Signature

Parameters

hasRichPreview

Type: Boolean

Return Value

Type: void

Signature

Parameters

id

Type: String

Return Value

Type: void

Signature

Parameters

imageExifRotation

Type: Integer

Return Value

Type: void

Signature

Parameters

ims

Type: List<String>

Return Value

Type: void

Signature

Parameters

lastEditor

Type: String

Return Value

Type: void

Signature

Parameters

lines

Type: Integer

Return Value

Type: void

Signature

Parameters

linesMore

Type: Integer

Return Value

Type: void

Signature

Parameters

mediaDisplayType

Type: String

Return Value

Type: void

Signature

Parameters

mimetype

Type: String

Return Value

Type: void

Signature

Parameters

mode

Type: String

Return Value

Type: void

Signature

Parameters

name

Type: String

Return Value

Type: void

Signature

Parameters

nonOwnerEditable

Type: Boolean

Return Value

Type: void

Signature

Parameters

originalAttachmentCount

Type: Integer

Return Value

Type: void

Signature

Parameters

originalHeight

Type: String

Return Value

Type: void

Signature

Parameters

originalWidth

Type: String

Return Value

Type: void

Signature

Parameters

permalink

Type: String

Return Value

Type: void

Signature

Parameters

permalinkPublic

Type: String

Return Value

Type: void

Signature

Parameters

pinnedInfo

Type: Map<String,Slack.File.PinnedInfo>

Return Value

Type: void

Signature

Parameters

pjpeg

Type: String

Return Value

Type: void

Signature

Parameters

plainText

Type: String

Return Value

Type: void

Signature

Parameters

prettyType

Type: String

Return Value

Type: void

Signature

Parameters

preview

Type: String

Return Value

Type: void

Signature

Parameters

previewHighlight

Type: String

Return Value

Type: void

Signature

Parameters

previewPlainText

Type: String

Return Value

Type: void

Signature

Parameters

previewTruncated

Type: Boolean

Return Value

Type: void

Signature

Parameters

_public

Type: Boolean

Return Value

Type: void

Signature

Parameters

publicUrlShared

Type: Boolean

Return Value

Type: void

Signature

Parameters

sentToSelf

Type: Boolean

Return Value

Type: void

Signature

Parameters

shares

Type: Slack.File.Shares

Return Value

Type: void

Signature

Parameters

size

Type: Integer

Return Value

Type: void

Signature

Parameters

starred

Type: Boolean

Return Value

Type: void

Signature

Parameters

subject

Type: String

Return Value

Type: void

Signature

Parameters

thumb64

Type: String

Return Value

Type: void

Signature

Parameters

thumb64Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb64Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb64Width

Type: String

Return Value

Type: void

Signature

Parameters

thumb80

Type: String

Return Value

Type: void

Signature

Parameters

thumb80Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb80Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb80Width

Type: String

Return Value

Type: void

Signature

Parameters

thumb160

Type: String

Return Value

Type: void

Signature

Parameters

thumb160Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb160Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb160Width

Type: String

Return Value

Type: void

Signature

Parameters

thumb360

Type: String

Return Value

Type: void

Signature

Parameters

thumb360Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb360Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb360Width

Type: String

Return Value

Type: void

Signature

Parameters

thumb480

Type: String

Return Value

Type: void

Signature

Parameters

thumb480Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb480Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb480Width

Type: String

Return Value

Type: void

Signature

Parameters

thumb720

Type: String

Return Value

Type: void

Signature

Parameters

thumb720Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb720Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb720Width

Type: String

Return Value

Type: void

Signature

Parameters

thumb800

Type: String

Return Value

Type: void

Signature

Parameters

thumb800Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb800Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb800Width

Type: String

Return Value

Type: void

Signature

Parameters

thumb960

Type: String

Return Value

Type: void

Signature

Parameters

thumb960Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb960Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb960Width

Type: String

Return Value

Type: void

Signature

Parameters

thumb1024

Type: String

Return Value

Type: void

Signature

Parameters

thumb1024Gif

Type: String

Return Value

Type: void

Signature

Parameters

thumb1024Height

Type: String

Return Value

Type: void

Signature

Parameters

thumb1024Width

Type: String

Return Value

Type: void

Signature

Parameters

thumbGif

Type: String

Return Value

Type: void

Signature

Parameters

thumbPdf

Type: String

Return Value

Type: void

Signature

Parameters

thumbPdfHeight

Type: String

Return Value

Type: void

Signature

Parameters

thumbPdfWidth

Type: String

Return Value

Type: void

Signature

Parameters

thumbTiny

Type: String

Return Value

Type: void

Signature

Parameters

thumbVideo

Type: String

Return Value

Type: void

Signature

Parameters

timestamp

Type: Integer

Return Value

Type: void

Signature

Parameters

title

Type: String

Return Value

Type: void

Signature

Parameters

to

Type: List<Slack.File.Address>

Return Value

Type: void

Signature

Parameters

updated

Type: Integer

Return Value

Type: void

Signature

Parameters

urlPrivate

Type: String

Return Value

Type: void

Signature

Parameters

urlPrivateDownload

Type: String

Return Value

Type: void

Signature

Parameters

user

Type: String

Return Value

Type: void

Signature

Parameters

username

Type: String

Return Value

Type: void


The following are methods for File.Address.

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Parameters

address

Type: String

Return Value

Type: void

Signature

Parameters

name

Type: String

Return Value

Type: void

Signature

Parameters

original

Type: String

Return Value

Type: void


The following are methods for File.Headers.

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Parameters

dateValue

Type: String

Return Value

Type: void

Signature

Parameters

inReplyTo

Type: String

Return Value

Type: void

Signature

Parameters

replyTo

Type: String

Return Value

Type: void

Signature

Parameters

messageId

Type: String

Return Value

Type: void


The following are methods for File.PinnedInfo.

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Parameters

pinnedBy

Type: String

Return Value

Type: void

Signature

Parameters

pinnedTs

Type: Integer

Return Value

Type: void


The following are methods for File.ShareDetail.

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: List<String>

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Parameters

channelName

Type: String

Return Value

Type: void

Signature

Parameters

latestReply

Type: String

Return Value

Type: void

Signature

Parameters

replyCount

Type: Integer

Return Value

Type: void

Signature

Parameters

replyUsers

Type: List<String>

Return Value

Type: void

Signature

Parameters

replyUsersCount

Type: Integer

Return Value

Type: void

Signature

Parameters

shareUserId

Type: String

Return Value

Type: void

Signature

Parameters

teamId

Type: String

Return Value

Type: void

Signature

Parameters

threadTs

Type: String

Return Value

Type: void

Signature

Parameters

ts

Type: String

Return Value

Type: void


Represents information about a file share, such as to a private or public channel.

The following are methods for File.Shares.

Signature

Return Value

Type: Map<String,List<Slack.File.ShareDetail>>

Signature

Return Value

Type: Map<String,List<Slack.File.ShareDetail>>

Signature

Parameters

privateChannels

Type: Map<String,List<Slack.File.ShareDetail>>

Return Value

Type: void

Signature

Parameters

publicChannels

Type: Map<String,List<Slack.File.ShareDetail>>

Return Value

Type: void


The following are methods for FileComment.

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: Integer

Signature

Return Value

Type: String

Signature

Return Value

Type: Boolean

Signature

Parameters

channel

Type: String

Return Value

Type: void

Signature

Parameters

comment

Type: String

Return Value

Type: void

Signature

Parameters

created

Type: Integer

Return Value

Type: void

Signature

Parameters

deanimate

Type: String

Return Value

Type: void

Signature

Parameters

id

Type: String

Return Value

Type: void

Signature

Parameters

intro

Type: Boolean

Return Value

Type: void

Signature

Parameters

timestamp

Type: Integer

Return Value

Type: void

Signature

Parameters

user

Type: String

Return Value

Type: void


Sends a request to delete a file.

Usage

See Slack’s files.delete method.

The following are methods for FilesDeleteRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesDeleteRequest.Builder


Contains methods to build an instance of the Slack.FilesDeleteRequest class.

A Builder object is obtained by invoking one of the FilesDeleteRequest.builder methods defined by the FilesDeleteRequest class.

The following are methods for FilesDeleteRequest.Builder.

Required. Returns an instance of Slack.FilesDeleteRequest.

Signature

Return Value

Type: Slack.FilesDeleteRequest

Required. The ID of file to delete.

Signature

Parameters

file

Type: String The ID of the file to delete

Return Value

Type: Slack.FilesDeleteRequest.Builder


Deletes a file.

Usage

See Slack’s files.delete method.

This class contains standard response methods.


Sends a request to get information about a file.

Usage

See Slack’s files.info method.

The following are methods for FilesInfoRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesInfoRequest.Builder


Contains methods to build an instance of the Slack.FilesInfoRequest class.

A Builder object is obtained by invoking one of the FilesInfoRequest.builder methods defined by the FilesInfoRequest class.

The following are methods for FilesInfoRequest.Builder. These methods are optional unless specified otherwise.

Required. Returns an instance of Slack.FilesInfoRequest.

Signature

Return Value

Type: Slack.FilesInfoRequest

Signature

Parameters

count

Type: Integer

Return Value

Type: Slack.FilesInfoRequest.Builder

Required. The ID of the file to retrieve information for.

Signature

Parameters

file

Type: String

Return Value

Type: Slack.FilesInfoRequest.Builder

Signature

Parameters

page

Type: Integer

Return Value

Type: Slack.FilesInfoRequest.Builder


Gets information about a file.

Usage

See Slack’s files.info method.

This class contains standard response methods.

The following are methods for FilesInfoResponse.

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: String

Signature

Return Value

Type: Slack.File

Signature

Return Value

Type: Boolean

Signature

Parameters

content

Type: String

Signature

Parameters

contentHighlightCss

Type: String

Return Value

Type: void

Signature

Parameters

contentHighlightHtml

Type: String

Return Value

Type: void

Signature

Parameters

file

Type: Slack.File

Return Value

Type: void

Signature

Parameters

truncated

Type: Boolean

Return Value

Type: void


Sends a request to retrieve a list of files for a team, in a channel, or from a user with applied filters.

Usage

See Slack’s files.list method.

The following are methods for FilesListRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesListRequest.Builder


Contains methods to build an instance of the Slack.FilesListRequest class.

A Builder object is obtained by invoking one of the FilesListRequest.builder methods defined by the FilesListRequest class.

The following are methods for FilesListRequest.Builder. These methods are optional unless specified otherwise.

Required. Returns an instance of Slack.FilesListRequest.

Signature

Return Value

Type: Slack.FilesListRequest

Signature

Parameters

channel

Type: String

Return Value

Type: Slack.FilesListRequest.Builder

Signature

Parameters

count

Type: Integer

Return Value

Type: Slack.FilesListRequest.Builder

Signature

Parameters

page

Type: Integer

Return Value

Type: Slack.FilesListRequest.Builder

Signature

Parameters

showFilesHiddenByLimit

Type: Boolean

Return Value

Type: Slack.FilesListRequest.Builder

Signature

Parameters

teamId

Type: String

Return Value

Type: Slack.FilesListRequest.Builder

Signature

Parameters

tsFrom

Type: String

Return Value

Type: Slack.FilesListRequest.Builder

Signature

Parameters

tsTo

Type: String

Return Value

Type: Slack.FilesListRequest.Builder

Signature

Parameters

types

Type: List<String>

Return Value

Type: Slack.FilesListRequest.Builder

Signature

Parameters

user

Type: String

Return Value

Type: Slack.FilesListRequest.Builder


Retrieves a list of files for a team, in a channel, or from a user with applied filters.

Usage

See Slack’s files.list method.

This class contains standard response methods.

The following are methods for FilesListResponse.

Signature

Return Value

Type: List<Slack.File>

Signature

Return Value

Type: Slack.Paging

Signature

Parameters

files

Type: List<Slack.File>

Return Value

Type: void

Signature

Parameters

paging

Type: Slack.Paging

Return Value

Type: void


Sends a request to add a file from a remote service.

Usage

See Slack’s files.remote.add method.

The following are methods for FilesRemoteAddRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesRemoteAddRequest.Builder


Contains methods to build an instance of the Slack.FilesRemoteAddRequest class.

A Builder object is obtained by invoking one of the FilesRemoteAddRequest.builder methods defined by the FilesRemoteAddRequest class.

The following are methods for FilesRemoteAddRequest.Builder. These methods are optional unless specified otherwise.

Required. Returns an instance of Slack.FilesRemoteAddRequest.

Signature

Return Value

Type: Slack.FilesRemoteAddRequest

Required. The creator-defined GUID for the file.

Signature

Parameters

externalId

Type: String

Return Value

Type: Slack.FilesRemoteAddRequest.Builder

Required. The URL of the remote file.

Signature

Parameters

externalUrl

Type: String

Return Value

Type: Slack.FilesRemoteAddRequest.Builder

Signature

Parameters

filetype

Type: String

Return Value

Type: Slack.FilesRemoteAddRequest.Builder

Required. The title of the file being shared.

Signature

Parameters

title

Type: String

Return Value

Type: Slack.FilesRemoteAddRequest.Builder


Adds a file from a remote service.

Usage

See Slack’s files.remote.add method.

This class contains standard response methods.

The following are methods for FilesRemoteAddResponse.

Signature

Return Value

Type: Slack.File

Signature

Parameters

file

Type: Slack.File

Return Value

Type: void


Sends a request to retrieve information about a remote file that’s added to Slack.

Usage

See Slack’s files.remote.info method.

The following are methods for FilesRemoteInfoRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesRemoteInfoRequest.Builder


Contains methods to build an instance of the Slack.FilesRemoteInfoRequest class.

A Builder object is obtained by invoking one of the FilesRemoteInfoRequest.builder methods defined by the FilesRemoteInfoRequest class.

The following are methods for FilesRemoteInfoRequest.Builder. These methods are optional unless specified otherwise.

Required. Returns an instance of Slack.FilesRemoteInfoRequest.

Signature

Return Value

Type: Slack.FilesRemoteInfoRequest

Signature

Return Value

Type: Slack.FilesRemoteInfoRequest.Builder

Signature

Parameters

file

Type: String

Return Value

Type: Slack.FilesRemoteInfoRequest.Builder


Retrieves information about a remote file that’s added to Slack.

Usage

See Slack’s files.remote.info method.

This class contains standard response methods.

The following are methods for FilesRemoteInfoResponse.

Signature

Return Value

Type: Slack.File

Signature

Parameters

file

Type: Slack.File

Return Value

Type: void


Sends a request to retrieve a list of files that’s added to Slack for a team, in a channel, or from a user with applied filters.

Usage

See Slack’s files.remote.list method.

The following are methods for FilesRemoteListRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesRemoteListRequest.Builder


Contains methods to build an instance of the Slack.FilesRemoteListRequest class.

A Builder object is obtained by invoking one of the FilesRemoteListRequest.builder methods defined by the FilesRemoteListRequest class.

The following are methods for FilesRemoteListRequest.Builder. These methods are optional unless specified otherwise.

Required. Returns an instance of Slack.FilesRemoteListRequest.

Signature

Return Value

Type: Slack.FilesRemoteListRequest

Signature

Parameters

channel

Type: String

Return Value

Type: Slack.FilesRemoteListRequest.Builder

Signature

Parameters

cursor

Type: String

Return Value

Type: Slack.FilesRemoteListRequest.Builder

Signature

Parameters

limitValue

Type: Integer

Return Value

Type: Slack.FilesRemoteListRequest.Builder

Signature

Parameters

tsFrom

Type: String

Return Value

Type: Slack.FilesRemoteListRequest.Builder

Signature

Parameters

tsTo

Type: String

Return Value

Type: Slack.FilesRemoteListRequest.Builder


Retrieves a list of files that’s added to Slack for a team, in a channel, or from a user with applied filters.

Usage

See Slack’s files.remote.list method.

This class contains standard response methods.

The following are methods for FilesRemoteListResponse.

Signature

Return Value

Type: List<Slack.File>

Signature

Return Value

Type: Slack.ResponseMetadata

Signature

Parameters

files

Type: List<Slack.File>

Return Value

Type: void

Signature

Parameters

responseMetadata

Type: Slack.ResponseMetadata

Return Value

Type: void


Sends a request to remove a remote file.

Usage

See Slack’s files.remote.remove method.

The following are methods for FilesRemoteRemoveRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesRemoteRemoveRequest.Builder


Contains methods to build an instance of the Slack.FilesRemoteRemoveRequest class.

A Builder object is obtained by invoking one of the FilesRemoteRemoveRequest.builder methods defined by the FilesRemoteRemoveRequest class.

The following are methods for FilesRemoteRemoveRequest.Builder. These methods are optional unless specified otherwise.

Required. Returns an instance of Slack.FilesRemoteRemoveRequest.

Signature

Return Value

Type: Slack.FilesRemoteRemoveRequest

Signature

Parameters

externalId

Type: String

Return Value

Type: Slack.FilesRemoteRemoveRequest.Builder

Signature

Parameters

file

Type: String

Return Value

Type: Slack.FilesRemoteRemoveRequest.Builder


Removes a remote file.

Usage

See Slack’s files.remote.remove method

This class contains standard response methods.


Sends a request to share a remote file into a channel.

Usage

See Slack’s files.remote.share method

The following are methods for FilesRemoteShareRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesRemoteShareRequest.Builder


Contains methods to build an instance of the Slack.FilesRemoteShareRequest class.

A Builder object is obtained by invoking one of the FilesRemoteShareRequest.builder methods defined by the FilesRemoteShareRequest class.

The following are methods for FilesRemoteShareRequest.Builder. These methods are optional unless specified otherwise.

Required. Returns an instance of Slack.FilesRemoteShareRequest.

Signature

Return Value

Type: Slack.FilesRemoteShareRequest

Required. The comma-separated list of channel IDs where the file is shared.

Signature

Parameters

channels

Type: List<String>

Return Value

Type: Slack.FilesRemoteShareRequest.Builder

Signature

Parameters

externalId

Type: String

Return Value

Type: Slack.FilesRemoteShareRequest.Builder

Signature

Parameters

file

Type: String

Return Value

Type: Slack.FilesRemoteShareRequest.Builder


Shares a remote file into a channel.

Usage

See Slack’s files.remote.share method.

This class contains standard response methods.

The following are methods for FilesRemoteShareResponse.

Signature

Return Value

Type: Slack.File

Signature

Parameters

file

Type: Slack.File

Return Value

Type: void


Sends a request to update an existing remote file.

Usage

See Slack’s files.remote.update method.

The following are methods for FilesRemoteUpdateRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesRemoteUpdateRequest.Builder


Contains methods to build an instance of the Slack.FilesRemoteUpdateRequest class.

A Builder object is obtained by invoking one of the FilesRemoteUpdateRequest.builder methods defined by the FilesRemoteUpdateRequest class.

The following are methods for FilesRemoteUpdateRequest.Builder. These methods are optional unless specified otherwise.

Returns an instance of the Slack.FilesRemoteUpdateRequest object.

Signature

Return Value

Type: Slack.FilesRemoteUpdateRequest

Signature

Parameters

externalId

Type: String

Return Value

Type: Slack.FilesRemoteUpdateRequest.Builder

Signature

Parameters

externalUrl

Type: String

Return Value

Type: Slack.FilesRemoteUpdateRequest.Builder

Signature

Parameters

filetype

Type: String

Return Value

Type: Slack.FilesRemoteUpdateRequest.Builder

Signature public Slack.FilesRemoteUpdateRequest.Builder title(String title)

Parameters

title

Type: String

Return Value

Type: Slack.FilesRemoteUpdateRequest.Builder


Updates an existing remote file.

Usage

See Slack’s files.remote.update method.

This class contains standard response methods.

The following are methods for FilesRemoteUpdateResponse.

Signature

Return Value

Type: Slack.File

Signature

Parameters

file

Type: Slack.File

Return Value

Type: void


Sends a request to revoke public or external sharing access for a file.

Usage

See Slack’s files.revokePublicURL method.

The following are methods for FilesRevokePublicURLRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesRevokePublicURLRequest.Builder


Contains methods to build an instance of the Slack.FilesRevokePublicURLRequest class.

A Builder object is obtained by invoking one of the FilesRevokePublicURLRequest.builder methods defined by the FilesRevokePublicURLRequest class.

The following are methods for FilesRevokePublicURLRequest.Builder.

Required. Returns an instance of Slack.FilesRevokePublicURLRequest.

Signature

Return Value

Type: Slack.FilesRevokePublicURLRequest

Required. The file to revoke.

Signature

Parameters

file

Type: String

Return Value

Type: Slack.FilesRevokePublicURLRequest.Builder


Revokes public or external sharing access for a file.

Usage

See Slack’s files.revokePublicURL method.

This class contains standard response methods.

The following are methods for FilesRevokePublicURLResponse.

Signature

Return Value

Type: Slack.File

Signature

Parameters

file

Type: Slack.File

Return Value

Type: void


Sends a request to enable a file for public or external sharing.

Usage

See Slack’s files.sharedPublicURL method.

The following are methods for FilesSharedPublicURLRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.FilesSharedPublicURLRequest.Builder


Contains methods to build an instance of the Slack.FilesSharedPublicURLRequest class.

A Builder object is obtained by invoking one of the FilesRevokeSharedURLRequest.builder methods defined by the FilesRevokeSharedURLRequest class.

The following are methods for FilesSharedPublicURLRequest.Builder. These methods are optional unless specified otherwise.

Required. Returns an instance of Slack.FilesSharedPublicURLRequest.

Signature

Return Value

Type: Slack.FilesSharedPublicURLRequest

Required. The file to share.

Signature

Parameters

file

Type: String

Return Value

Type: Slack.FilesSharedPublicURLRequest.Builder


Enables a file for public or external sharing.

Usage

See Slack’s files.sharedPublicURL method.

This class contains standard response methods.

The following are methods for FilesSharedPublicURLResponse.

Signature

Return Value

Type: Slack.File

Signature

Parameters

file

Type: Slack.File

Return Value

Type: void