Please note that this API relates to LivePersons legacy chat product which receives limited support and will be deprecated in the future.
It is recommended to build future integrations on top of LivePersons Unified Automatic Messages API instead.
Updates an existing Automatic Message for a specific account.
Request
Method | URL |
---|---|
PUT | https://{domain}/api/account/{accountId}/configuration/engagement-window/auto-messages/{autoMessageId} |
Request Headers
Header | Description |
---|---|
X-HTTP-Method-Override=PUT | Overrides unsupported HTTP methods. To be used with the 'PUT’ value. |
Request Body
The request body is able to accept single JSON object as shown below, or a JSON array of such objects.
{
"deleted":false,
"enabled":true,
"messageEventId":"On-hold message #1",
"templateId":"On-hold message #1",
"data": [
{
"msg":"I'll be right with you.",
"lang":"en-us",
"isDefault":true
},
{
"msg": "Que está conversando {nombre del agente}",
"lang": "ca-ES"
}
],
"attributes":[
{
"name":"timer",
"value":"60"
}
]
}
Path Parameters
Parameter | Description | Type / Value |
---|---|---|
autoMessageId | Unique account config object ID | Positive long number greater than zero |
Response
Response Codes
Code | Description |
---|---|
200 | OK |
401 | Not Authenticated |
403 | Not Authorized |
404 | Data Not Found |
500 | Internal Server Error |
Response Body
Updated Auto Message’s JSON.