deleteLiterals
Deletes literals at domain/service level.
HTTP POST /livechat/:domain/deleteLiterals
Path Variables:
Name | Mandatory | Type | Description |
---|---|---|---|
domain | yes | string | Unique domain identifier |
Authorization: see Authentication mechanisms
Request Body:
Type: json
Name | Mandatory | Type | Description |
---|---|---|---|
country | YES | STRING | Language 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/domain/deleteLiterals
Request body
{
"country" : "it-it",
"level" : "service",
"serviceId" : "LiveChat_Sidebar"
}
Response
{
"result": {
"ok": 1,
"n": 1
},
"error": null
}
Â