Update the livechat widget appearance settings.
HTTP Method | URL | Requires Auth |
---|---|---|
POST | /api/v1/livechat/appearance | yes |
{% hint style="info" %}
Permission required: view-livechat-manager
{% endhint %}
Key | Example Value | Description |
---|---|---|
items * |
| An array of objects containing the _id and value of the settings to be updated. See the get-livechat-appearance.md example response for the _id of each setting. |
curl -L -X POST 'http://localhost:3000/api/v1/livechat/appearance' \
-H 'x-auth-token: qlHA60g5JQjJJG7C_8MgXoFnOiRQ8X9TWVVq4AcQeFb' \
-H 'x-user-id: rbAXPnMktTFbNpwtJ' \
-H 'Content-Type: application/json' \
-d '[
{
"_id":"Livechat_title",
"value":"Hello"
},
{
"_id":"Livechat_show_agent_email",
"value":"false"
},
{
"_id":"Livechat_show_agent_info",
"value":true
},
{
"_id":"Livechat_title_color",
"value":"#b427bed"
}
]'
{
"success": true
}
Any of the following errors can occur on this endpoint:
- Id Required: Occurs when an object in the array does not have the required property
_id
. A similar error occurs if an object in the array does not have the required propertyvalue
.
{% tabs %} {% tab title="Id Required" %}
{
"success": false,
"error": "must have required property '_id' [invalid-params]",
"errorType": "invalid-params"
}
{% endtab %} {% endtabs %}
Version | Description |
---|---|
6.4.0 | Added |