Skip to content

FilesController_createUpload

POST
/api/files/uploads
curl --request POST \
--url https://api.streams.chat/api/files/uploads \
--header 'Content-Type: application/json' \
--data '{ "fileName": "example", "contentType": "example", "sizeBytes": 1, "attachTo": { "streamId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } }'
Media typeapplication/json
object
fileName
required
string
>= 1 characters <= 255 characters
contentType
required
string
<= 128 characters
sizeBytes
required
integer
<= 209715200
attachTo
object
streamId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
Examplegenerated
{
"fileName": "example",
"contentType": "example",
"sizeBytes": 1,
"attachTo": {
"streamId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
}