v1

latestOpenAPI 3.0.32026-07-22177397578.0 KB
Site

Create new site

Create new site with given parameters

post/sites

Request body

abtestConsent'OFF' | 'REQUIRED' | 'IABTCF'
applicationFileUrlstring

URL for self-hosted kameleoon.js file. If not specified kameleoon.js will be loaded by default url - SITE_CODE.kameleoon.eu/kameleoon.js

behaviorWhenTimeout'RUN' | 'DISABLE_FOR_PAGE' | 'DISABLE_FOR_VISIT'

Behavior if timeout occurs. You can redefine the behavior of Kameleoon Application when the script exceeds the usual loading time. By default, the application will eventually launch, but with a flicker effect.

captureEventMethod'CLICK' | 'MOUSEDOWN' | 'MOUSEUP'
codestring

System generated code to uniquely identify a website.

currency'USD' | 'EUR' | 'JPY' | 'GBP' | 'CNY' | 'AUD' | 'CAD' | 'CHF' | 'HKD' | 'SGD' | 'SEK' | 'KRW' | 'NOK' | 'NZD' | 'INR' | 'MXN' | 'TWD' | 'ZAR' | 'BRL' | 'DKK' | 'PLN' | 'THB' | 'ILS' | 'IDR' | 'CZK' | 'AED' | 'TRY' | 'HUF' | 'CLP' | 'SAR' | 'PHP' | 'MYR' | 'COP' | 'RUB' | 'RON' | 'PEN' | 'BHD' | 'BGN' | 'ARS' | 'KWD'
customAttributesstring
customSelectorsstring[]
dataStorage'STANDARD_COOKIE' | 'LOCAL_STORAGE' | 'CUSTOM_COOKIE'

This option allows you to choose the source where you can store the data of your A/B tests on the the visitor's device.

dateCreatedstring date-time

Date when the site was created.

descriptionstring

Website description.

domainNamesstring[]
idinteger

Unique Id of the website.

imagesUrlstring

URL for self-hosted images. If not specified images will be loaded by default url - SITE_CODE.kameleoon.eu/images/

indicatorsstring[]

List of indicators such as: Retention rate, number of pages seen and dwell time.

isAudienceUsedboolean

Indicates if audience feature is enabled and used for the website.

isKameleoonEnabledboolean

Indicates if Kameleoon application is enbabled for the website.

isScriptActiveboolean

Indicates if the script has been installed successfully and is active on the website.

kameleoonDomainstring
lastScriptRebuildDatestring date-time

Date last rebuild Script.

lastScriptRebuildStatus'SUCCESS' | 'FAILURE'

Status last rebuild Script.

namestring

Name of the website.

realTimeConfigUpdateboolean

Can SDK receive the configuration in real-time.

recommendationSecretKeystring

Product recommendation secret key.

recommendationStoreKeystring

Product recommendation store key.

responsiveMobileboolean
shadowDomboolean

ShadowDOM option.

trackingScriptstring

Global custom script is any JavaScript code that you add which will be executed at each page load. This custom script will be executed right after the loading of Kameleoon application. For instance, you can add complex tracking code or integration to some third party solutions in this section.

type'SITE' | 'SITE_JS' | 'SITE_SDK' | 'APPLICATION'

Project type.

urlstring required

URL of the website.

wideDomainstring

Deprecated, use kameleoonDomain instead

Response

Created