Create a message

Using this method you can create a message

Create a message

POST https://api.imber.live/message/

This endpoint allows you to create a message.

Headers

Request Body

{
    "success": true,
    "data": {
        "type": 0,
        "_id": "600ead5b7d85be182a1a9d86",
        "creator": "5fec142af3ef387502f440e5",
        "creatorType": "user",
        "message": "یا باید از یک اکانت استفاده کنیم ",
        "workSpace": "5f00a44d8e844b5a746f90b3",
        "roomId": "600eacdf7d85be182a1a9af0",
        "organization": "5f00a44d8e844b5a746f90b1",
        "createdAt": "2021-01-25T11:36:59.890Z",
        "updatedAt": "2021-01-25T11:36:59.890Z",
        "__v": 0
    }
}

Types (Table 1)

fileInformation (Table 2)

urlInformation (Table 3)

Note : When type of message is file or URL, the exact URL of Link of file should be placed also in message value

Last updated