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

Version 1 Next »

Inserts literals at domain/service level.

HTTP POST /livechat/insertUpdateLiterals

Request Body:

Type: JSON

Name

Mandatory

Type

Description

country

YES

STRING

Country 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: JSONP

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

Request body

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

Response

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

  • No labels