Slack file upload profile

org.intentschema.communication.chat.file.upload.v1@com.slack.v1

JSON: bare · @sha256:b1c58a5fce31…
Hash: sha256:b1c58a5fce31607ed9a8b86564760fdc77d9cf532aee0664f59593a507082a6e

Slack profile for files.getUploadURLExternal + files.completeUploadExternal (two-step upload).

Implements: Upload chat file (org.intentschema.communication.chat.file.upload.v1)

Payload

FieldTypeDescription
target *Target(system = "slack", required: system)
object *object
idempotency_keystring
slack @com.slackobject
object
FieldTypeDescription
channel_id *string
thread_idstring
file *BlobRef
commentstring
slack @com.slack
FieldTypeDescription
channelsstring[]
initial_commentstring
snippet_typestring

Result

FieldTypeDescription
external_id *stringProvider-assigned id.
created_at *string (date-time)
urlstring (uri)

API mapping

FieldValue
base_urlhttps://slack.com
methodPOST
path/api/files.getUploadURLExternal
scopesfiles:write
docshttps://api.slack.com/methods/files.getUploadURLExternal

Field mapping

Intent fieldAPI parameter
object.channel_idchannel_id (in completeUploadExternal)
object.filefile content (uploaded to URL from getUploadURLExternal)
object.file.filenamefilename (in getUploadURLExternal)
object.file.sizelength (in getUploadURLExternal)
object.commentinitial_comment (in completeUploadExternal)
object.thread_idthread_ts (in completeUploadExternal)
slack.channelschannel_id (in completeUploadExternal)
slack.initial_commentinitial_comment
slack.snippet_typesnippet_type