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 5 Next »

Inserts literals at domain/service level.

HTTP POST /livechat/:domain/insertUpdateLiterals

Path Variables:

Name

Mandatory

Type

Description

domain

YES

STRING

Unique domain identifier

Request Body:

Type: JSON

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

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/domain/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
}

  • No labels