Update a room

put
Update a room

https://api.imber.live/room/:ID
This endpoint allows you to update a conversation.
Request
Response
Request
Path Parameters
id
optional
string
ID of the conversation to update
Headers
Authentication
required
string
Authentication token
Body Parameters
assigned
optional
array
An array of IDs (Operator IDs)
status
optional
number
status of conversation (Described in create conversation method)
Response
200: OK
Conversation successfully updated.
{
"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
}
}
404: Not Found
Could not find a cake matching this query.
{ "message": "Ain't no cake like that."}