Update a room

Update a room

PUT https://api.imber.live/room/:ID

This endpoint allows you to update a conversation.

Path Parameters

NameTypeDescription

id

string

ID of the conversation to update

Headers

NameTypeDescription

Authentication

string

Authentication token

Request Body

NameTypeDescription

assigned

array

An array of IDs (Operator IDs)

status

number

status of conversation (Described in create conversation method)

{
    "success": true,
    "data": {
        "unread": {
            "contact": 0,
            "member": 0
        },
        "assigned": [
            "5f00bca8f25cee0466768fa0"
        ],
        "isLocked": false,
        "mentions": [],
        "_id": "600f19bc1d1a6c65a3915e4b",
        "workSpaceId": "5f00a44d8e844b5a746f90b3",
        "user": {
            "pages": {
                "last": "https://imber.live/fa/",
                "referrer": "https://imber.live/en/"
            },
            "person": {
                "name": "imber-CM3151"
            },
            "device": {
                "OS": "Mac",
                "browser": "Chrome",
                "browserVer": "87.0.4280.141",
                "screenSize": "",
                "isMobile": false
            },
            "conversations": [
                "600f19bc1d1a6c65a3915e4b"
            ],
            "tags": [],
            "segments": [],
            "isBlocked": false,
            "status": true,
            "type": 0,
            "_id": "600f19aeaef265f3e3e6f53a",
            "workSpaceId": "5f00a44d8e844b5a746f90b3",
            "containerId": "5f00a44d8e844b5a746f90b1",
            "note": [],
            "createdAt": "2021-01-25T19:19:10.060Z",
            "updatedAt": "2021-01-25T19:19:10.060Z",
            "__v": 1
        },
        "status": 0,
        "type": 1,
        "containerId": "5f00a44d8e844b5a746f90b1",
        "createdAt": "2021-01-25T19:19:24.968Z",
        "updatedAt": "2021-01-25T19:19:24.968Z",
        "__v": 1
    }
}

Last updated