Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Inserts literals at domain/service level.

Status
colourYellow
titleHTTP POST
/livechat/:domain/insertUpdateLiterals

Path Variables:

Name

Mandatory

Type

Description

domain

Status
colourRed
titleyes

Status
titlestring

Unique domain identifier

Authorization: see Authentication mechanisms

Request Body:

Type:
Status
titlejson

Name

Mandatory

Type

Description

country

Status
colourRed
titleYES

Status
titleSTRING

Language code

level

Status
colourRed
titleyes

Status
titlestring

Can assume one of the following values:

  • tenant

  • service

literals

Status
colourRed
titleyes

Status
titleobject

Literals to be iserted/updated

serviceId

Status
titleno

Status
titlestring

If level is set to “service“, specifies the service literals to insert/update

Response:

Type:
Status
titleJSON

Name

Type

Description

result

Status
titleboolean

If true, the service response was performed correctly

error

Status
titlenull
/
Status
titlestring

Contains the error description if an error has occurred in the request

Example:

Request

http://<hostname>:<port>/livechat/

...

default/insertUpdateLiterals

Request body

Code Block
languagejson
{
  "country" : "it-it",
  "level" : "service",
  "serviceId" : "LiveChat_Sidebar",
  "literals" : {
    "engagement_sidebar_title" : "Sidebar",
    "datacollection_cbl_first_slot_label" : "Richiamami subito"
  }
}

...