Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Deletes literals at domain/service level.

HTTP POST /livechat/:domain/deleteLiterals

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

Can assume one of the following values:

  • tenant

  • service

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",
  "level" : "service",
  "serviceId" : "LiveChat_Sidebar"
}

Response

{
  "result": {
      "ok": 1,
      "n": 1
  },
  "error": null
}

  • No labels