Upload Media Files to a Room
    • Dark
      Light
    • PDF

    Upload Media Files to a Room

    • Dark
      Light
    • PDF

    Article summary

    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
    }
    Expand All
    object
    file
    object
    _id
    string
    url
    string
    success
    boolean

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.