com.slack.api.methods.request.files.FilesUploadRequest Maven / Gradle / Ivy
The newest version!
package com.slack.api.methods.request.files;
import com.slack.api.methods.SlackApiRequest;
import lombok.Builder;
import lombok.Data;
import java.io.File;
import java.util.List;
/**
* https://api.slack.com/methods/files.upload
*/
@Data
@Builder
public class FilesUploadRequest implements SlackApiRequest {
/**
* Authentication token. Requires scope: `files:write`
*/
private String token;
/**
* File contents via `multipart/form-data`. If omitting this parameter, you must submit `content`.
*/
private File file;
private byte[] fileData;
/**
* File contents via a POST variable. If omitting this parameter, you must provide a `file`.
*/
private String content;
/**
* A [file type](https://api.slack.com/types/file#file_types) identifier.
*/
private String filetype;
/**
* Filename of file.
*/
private String filename;
/**
* Title of file.
*/
private String title;
/**
* Initial comment to add to file.
*/
private String initialComment;
/**
* Comma-separated list of channel names or IDs where the file will be shared.
*/
private List channels;
/**
* Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.
*/
private String threadTs;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy