Set Livechat Appearance

Update the livechat widget appearance settings.

Permission required: view-livechat-manager

Body Parameters

Example Call

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"
    }			
]'

Example Response

Success

{
    "success": true
}

Error

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 property value.

{
    "success": false,
    "error": "must have required property '_id' [invalid-params]",
    "errorType": "invalid-params"
}

Change Log

Last updated

Rocket.Chat versions receive support for six months after release.