Inserts literals at domain/service level.
HTTP POST /livechat/:domain/insertUpdateLiterals
Path Variables:
Name | Mandatory | Type | Description |
---|---|---|---|
domain | YES | STRING | Unique domain identifier |
Request Body:
Type: JSON
Name | Mandatory | Type | Description |
---|---|---|---|
country | YES | STRING | Country code |
level | YES | STRING | Can assume one of the following values:
|
literals | YES | OBJECT | Literals to be iserted/updated |
serviceId | NO | STRING | If level is set to “service“, specifies the service literals to insert/update |
Response:
Type: JSON
Name | Type | Description |
---|---|---|
result | BOOLEAN | If true, the service response was performed correctly |
error | NULL / STRING | Contains the error description if an error has occurred in the request |
Example:
Request
http://<hostname>:<port>/livechat/domain/insertUpdateLiterals
Request body
{ "country" : "it", "level" : "service", "serviceId" : "LiveChat_Sidebar", "literals" : { "engagement_sidebar_title" : "Sidebar", "datacollection_cbl_first_slot_label" : "Richiamami subito" } }
Response
{ "result": true, "error": null }