insertUpdateLiterals

Inserts literals at domain/service level.

HTTP POST /livechat/:domain/insertUpdateLiterals

Path Variables:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

domain

yes

string

Unique domain identifier

Authorization: see Authentication mechanisms

Request Body:

Type: json

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

country

YES

STRING

Language code

level

yes

string

Can assume one of the following values:

  • tenant

  • service

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

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/default/insertUpdateLiterals

Request body

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

Response

{ "result": true, "error": null }

 

Â