Post
/api/v1/rooms.media/{rid}
Upload media files to a room.
Header parameters
X-Auth-Token
stringRequired
The authToken
of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired
The userId
of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Path parameters
rid
stringRequired
The id of the room.
ExampleGENERAL
Body parameters
object
file
string (binary) Required
The file to upload
msg
string Required
The text to be added to the file message.
Responses
200
OK
Example
{
"file": {
"_id": "67109d6c25682c7469486008",
"url": "/file-upload/67109d6c25682c7469486008/Screenshot%202024-10-15%20at%2010.17.39.png"
},
"success": true
}
object
file
object
_id
string
url
string
success
boolean