Get an attachment upload url
POST/api/chat/channels/{channelId}/attachments/upload-url
POST
/api/chat/channels/{channelId}/attachments/upload-url
Returns a presigned PUT and the object key to send back on the message. Uploading counts as posting, so a read-only channel refuses it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”channelId
required
string format: uuid
Request Body
Section titled “Request Body”File to upload
object
fileName
required
string
fileType
required
string
fileSize
required
integer
Responses
Section titled “Responses”Presigned upload
object
ok
required
boolean
data
File type or size not allowed
object
ok
required
boolean
error
required
string
code
string
Unauthenticated
object
ok
required
boolean
error
required
string
code
string
Forbidden
object
ok
required
boolean
error
required
string
code
string
Channel not found
object
ok
required
boolean
error
required
string
code
string
Server error
object
ok
required
boolean
error
required
string
code
string
