Deletes literals at domain/service level.
HTTP POST /livechat/deleteLiterals
Request Body:
Type: JSON
Name | Mandatory | Type | Description |
---|---|---|---|
country | YES | STRING | Country code |
level | YES | Can assume one of the following values:
| |
serviceId | NO | STRING | If level is set to “service“, specifies the service literals to insert/update |
Response:
Type: JSON
Name | Type | Description |
---|---|---|
result | BOOLEAN / OBJECT | False if request fails. An Object containing the status of the request and the number of documents deleted in the db |
error | NULL / STRING | Contains the error description if an error has occurred in the request |
Example:
Request
http://<hostname>:<port>/livechat/deleteLiterals
Request body
{ "country" : "it", "level" : "service", "serviceId" : "LiveChat_Sidebar" }
Response
{ "result": { "ok": 1, "n": 1 }, "error": null }