Skip to main content
POST
/
templates
/
simulate
/
{widgetId}
Simulate widget
curl --request POST \
  --url https://api.kameleoon.com/templates/simulate/{widgetId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "widgetTemplateInput": {
    "displayPluginConfiguration": "<string>",
    "position": "INPAGE",
    "shadowDom": true,
    "domElementSelector": "<string>",
    "locales": "<string>",
    "positionSelectorRelative": "<string>",
    "widgetEditorTemplate": "<string>",
    "widgetFonts": "<string>"
  }
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

widgetId
integer<int64>
required

Body

application/json
widgetTemplateInput
object
required

Widget template fields.

Response

OK

The response is of type string.