74372d65ae
Co-authored-by: Andy Locascio <andy@slack-corp.com>
1.2 KiB
1.2 KiB
PostData Object
type
String - One of the following:rawData
- The data is available as aBuffer
, in therawData
field.file
- The object represents a file. ThefilePath
,offset
,length
andmodificationTime
fields will be used to describe the file.blob
- The object represents aBlob
. TheblobUUID
field will be used to describe theBlob
.
bytes
String (optional) - The raw bytes of the post data in aBuffer
. Required for therawData
type.filePath
String (optional) - The path of the file being uploaded. Required for thefile
type.blobUUID
String (optional) - TheUUID
of theBlob
being uploaded. Required for theblob
type.offset
Integer (optional) - The offset from the beginning of the file being uploaded, in bytes. Only valid forfile
types.length
Integer (optional) - The length of the file being uploaded, in bytes. If set to-1
, the whole file will be uploaded. Only valid forfile
types.modificationTime
Double (optional) - The modification time of the file represented by a double, which is the number of seconds since theUNIX Epoch
(Jan 1, 1970). Only valid forfile
types.