Edit a LiveChat room. Update the topic, tags, and other details of a Livechat room.
{% hint style="info" %}
It requires the view-l-room permission.
{% endhint %}
| HTTP Method | URL | Requires Auth |
|---|---|---|
POST | api/v1/livechat/room.saveInfo | yes |
| Key | Example Value | Description |
|---|---|---|
guestData* | "
| An object of the updated guestdata. |
roomData* | "
| An object of updated roomdata. |
guestData Object
| Key | Example Value | Description |
|---|---|---|
_id* | rbAXPnMktTFbNpwtJ | The guest ID. |
name | john | The name of the guest. |
email | john.test@rocket.chat | The email of the guest. |
phone | 4478390282 | The contact of the guest. |
livechatData |
| Custom fields information. |
roomData Object
| Key | Example Value | Description |
|---|---|---|
_id* | rbAXPnMktTFbNpwtJ | The room ID. |
topic | Test123 | The topic of the room. |
tags | ["testtags"] | An array of tags to be associated with the room. |
priorityId | 5PMgshbQWsoHsYy2c | The priority ID of the room. |
slaId | 6417f67528384134ed600dc6 | The SLA priority ID of the room. |
livechatData | "livechatData" : { "id1": "value1", "id2": "value2"} | Custom fields information. |
{
"guestData": {
"_id": "rbAXPnMktTFbNpwtJ"
},
"roomData": {
"_id": "nf52k8bpJ8y7oHmwk",
"topic": "Hmm",
"tags": ["testtags"]
}
}curl --location 'http://localhost:3000/api/v1/livechat/room.saveInfo' \
--header 'x-auth-token: Wnb_e6wG4a74JiMxpSogmn9iP-K6wGk2F09sDRwLiLq' \
--header 'x-user-id: rbAXPnMktTFbNpwtJ' \
--header 'Content-Type: application/json' \
--data '{
"guestData": {
"_id": "rbAXPnMktTFbNpwtJ"
},
"roomData": {
"_id": "nf52k8bpJ8y7oHmwk",
"topic": "Hmm",
"tags": ["testtags"]
}
}'{
"success": true
}Any of the following errors can occur on the endpoint.
- Authorization: Requires an authentication token for the request to be made.
- Invalid Room: Occurs when the given
_idinroomDataobject is invalid and doesn't belong to any room in the workspace.
{% tabs %} {% tab title=" Authorization" %}
{
"status": "error",
"message": "You must be logged in to do this."
}{% endtab %}
{% tab title="Invalid Room ID" %}
{
"success": false,
"error": "error-invalid-room"
}{% endtab %} {% endtabs %}
| Version | Description |
|---|---|
| 5.3.0 | Added |