1. Overview

These services create and manage customizations targeted at specific users and can integrate personalization with other systems.

1.1. Version information

Version : 1.0.0

1.2. License information

License : Use of this file is subject to the terms of your agreement with SAP SE or its affiliates respecting the use of the SAP product for which this file relates.
Terms of service : null

1.3. URI scheme

Host : hostname
BasePath : /personalizationwebservices

1.4. Tags

  • Actions : Operations for actions in variations

  • CustomerSegmentations : Operations for customer and segment relation

  • CustomizationPackages : Operations for customization with related objects

  • Customizations : Operations for customizations

  • Query : Query operations

  • Segments : Operations for segments

  • Triggers : Operations for triggers

  • Variations : Operations for variations in customization

1.5. Produces

  • application/xml

  • application/json

2. Security

2.1. oauth2_password

Type : oauth2
Flow : password
Token URL : https://{oauth2_url}/authorizationserver/oauth/token

Name

personalizationwebservices

2.2. oauth2_client_credentials

Type : oauth2
Flow : application
Token URL : https://{oauth2_url}/authorizationserver/oauth/token

Name

personalizationwebservices

3. Resources

3.1. Actions

Operations for actions in variations

3.1.1. Gets list of actions that fulfill search criteria with information about variation and customization

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/actions
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Query

actionCode
optional

Customization code. Supported by CXCMSACTION type.

string

Query

catalogs
optional

Filter for action catalog. Supported by CXCMSACTION type.

enum (CURRENT, PARENTS, ALL)

Query

componentCatalog
optional

Catalog of the action component. Supported by CXCMSACTION type.

string

Query

componentId
optional

Id of the component used by the action. Supported by CXCMSACTION type.

string

Query

containerId
optional

Id of the container used by the action. Supported by CXCMSACTION type.

string

Query

currentPage
optional

Current page number

integer(int32)

Query

customizationCode
optional

Customization code. Supported by CXCMSACTION type.

string

Query

customizationName
optional

Customization name. Supported by CXCMSACTION type.

string

Query

customizationStatus
optional

Comma separated customization statuses. Available statuses : ENABLED, DISABLED, DELETED. Supported by CXCMSACTION type.

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Query

needsTotal
optional

Request total count

boolean

Query

pageCatalogId
optional

Catalog of the page action is affecting. Ignored if pageId is not provided. Supported by CXCMSACTION type.

string

Query

pageId
optional

Id of the page affected by the action. Supported by CXCMSACTION type.

string

Query

pageSize
optional

Page size

integer(int32)

Query

type
required

Type of action. CXCMSACTION requires personalizationcms extension.

enum (CXCMSACTION)

Query

variationCode
optional

Variation code. Supported by CXCMSACTION type.

string

Query

variationName
optional

Variation name. Supported by CXCMSACTION type.

string

Query

variationStatus
optional

Comma separated variation statuses. Available statuses : ENABLED, DISABLED, DELETED. Supported by CXCMSACTION type.

string

Responses
HTTP Code Description Schema

200

OK

ActionFullList

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.1.2. Creates an action

POST /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/actions
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Body

action
required

Action to create

action

Responses
HTTP Code Description Schema

201

Created

action

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

409

Conflict - action with given code already exists

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.1.3. Returns all actions for a given customization and variation

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/actions
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

ActionList

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.1.4. Deletes a set of actions in given variation and customization

DELETE /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/actions
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Body

actionCodes
required

Identifiers of actions to delete e.g. ["id1","id2"] for application/json content type

< string > array

Responses
HTTP Code Description Schema

204

No Content

No Content

400

Bad Request e.g. incorrect request body data

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.1.5. Creates set of actions in given variation and customization

PATCH /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/actions
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Body

actionList
required

Actions to create

ActionList

Responses
HTTP Code Description Schema

201

Created

ActionList

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

409

Conflict - action with given code already exists

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.1.6. Get an existing action for a given customization and variation

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/actions/{actionCode}
Parameters
Type Name Description Schema

Path

actionCode
required

Action identifier

string

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

action

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization, variation or action with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.1.7. Updates an existing action for a given customization and variation

PUT /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/actions/{actionCode}
Parameters
Type Name Description Schema

Path

actionCode
required

Action identifier

string

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Body

action
required

Action data to update

action

Responses
HTTP Code Description Schema

200

OK

action

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization, variation or action with given id doesn’t exist

No Content

409

Conflict - action code in request body and url do not match

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.1.8. Deletes an existing action for a given customization and variation

DELETE /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/actions/{actionCode}
Parameters
Type Name Description Schema

Path

actionCode
required

Action identifier

string

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Responses
HTTP Code Description Schema

204

No Content

No Content

400

Bad Request

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization, variation or action with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.2. CustomerSegmentations

Operations for customer and segment relation

3.2.1. Creates a customer segmentation

POST /v1/customersegmentations
Description

This endpoint creates a relation between customer and segment. In default security configuration this endpoint is forbidden

Parameters
Type Name Description Schema

Body

customerSegmentation
required

DTO object which contains customer and segment identifiers

customerSegmentation

Responses
HTTP Code Description Schema

201

Created

customerSegmentation

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

404

Customer, segment or basesite with given id doesn’t exist

No Content

409

Conflict - relation between customer and segment already exists

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.2.2. Returns customer segmentations

GET /v1/customersegmentations
Description

This endpoint returns list segmententations matching customer id and segment id passed as parameters. In default security configuration this endpoint is forbidden

Parameters
Type Name Description Schema

Query

baseSite
optional

Basesite identifier

string

Query

currentPage
optional

Current page number

integer(int32)

Query

customerId
optional

Customer identifier. At least one of parameters is required : customerId, segmentId

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Query

needsTotal
optional

Request total count

boolean

Query

pageSize
optional

Page size

integer(int32)

Query

segmentId
optional

Segment identifier. At least one of parameters is required : customerId, segmentId

string

Responses
HTTP Code Description Schema

200

OK

CustomerSegmentationList

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.2.3. Get a customer segmentation

GET /v1/customersegmentations/{segmentationId}
Description

This endpoint returns a relation between a customer and a segment. In default security configuration this endpoint is forbidden

Parameters
Type Name Description Schema

Path

segmentationId
required

Relation identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

customerSegmentation

400

Bad Request e.g. incorrect identifier or parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

404

Relation between customer and segment doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.2.4. Updates a customer segmentation

PUT /v1/customersegmentations/{segmentationId}
Description

This endpoint updates a relation between a customer and segment. In default security configuration this endpoint is forbidden

Parameters
Type Name Description Schema

Path

segmentationId
required

Relation identifier

string

Body

data
required

DTO object which contains customer and segment identifiers

customerSegmentation

Responses
HTTP Code Description Schema

200

OK

customerSegmentation

400

Bad Request e.g. incorrect identifier

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

404

Relation between customer and segment doesn’t exist

No Content

409

Conflict - CustomerSegmentation code in request body and url do not match.

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.2.5. Deletes a customer segmentation

DELETE /v1/customersegmentations/{segmentationId}
Description

This endpoint deletes a relation between a customer and segment. In default security configuration this endpoint is forbidden

Parameters
Type Name Description Schema

Path

segmentationId
required

segmentationId

string

Responses
HTTP Code Description Schema

204

No Content

No Content

400

Bad Request e.g. incorrect identifier

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

404

Relation between customer and segment doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.3. CustomizationPackages

Operations for customization with related objects

3.3.1. Creates customization with related objects like variations and triggers

POST /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizationpackages
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Body

customization
required

Customization with related objects

customization

Responses
HTTP Code Description Schema

201

Created

customization

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog with given id doesn’t exist

No Content

409

Conflict - customization with given code already exists

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.3.2. Updates customization and related objects

PUT /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizationpackages/{customizationCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Body

customization
required

Customization data for update

customization

Responses
HTTP Code Description Schema

200

OK

customization

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog or customization with given id doesn’t exist

No Content

409

Conflict - customization code in request body and url do not match

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.4. Customizations

Operations for customizations

3.4.1. Creates a customization

POST /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Body

customization
required

Customization to create

customization

Responses
HTTP Code Description Schema

201

Created

customization

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog with given id doesn’t exist

No Content

409

Conflict - customization with given code already exists

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.4.2. Returns all customizations

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Query

catalogs
optional

Filter for customization catalog. Requires personalizationcms extension.

enum (CURRENT, PARENTS, ALL)

Query

code
optional

Filter for customization identifier. This filter don’t work together with other filters (pageId, statuses, name)

string

Query

currentPage
optional

Current page number

integer(int32)

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Query

name
optional

Filter for customization name. This require also 'statuses' parameter to be set

string

Query

needsTotal
optional

Request total count

boolean

Query

negatePageId
optional

Flag to return customizations not related to page with 'pageId'. Requires personalizationcms extension.

boolean

Query

pageCatalogId
optional

Page catalog identifier. Requires personalizationcms extension.

string

Query

pageId
optional

Page identifier. This require also 'statuses' parameter to be set. Requires personalizationcms extension.

string

Query

pageSize
optional

Page size

integer(int32)

Query

statuses
optional

Comma separated customization statuses. Available statuses : ENABLED, DISABLED, DELETED

string

Responses
HTTP Code Description Schema

200

OK

CustomizationList

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog version not found (catalogId : {catalogId} catalogVersionId : {catalogVersionId})

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.4.3. Get a customization

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

customization

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog or customization with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.4.4. Updates a customization

PUT /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Body

customization
required

Customization data for update

customization

Responses
HTTP Code Description Schema

200

OK

customization

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog or customization with given id doesn’t exist

No Content

409

Conflict - customization code in request body and url do not match

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.4.5. Deletes a customization

DELETE /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Responses
HTTP Code Description Schema

204

No Content

No Content

400

Bad Request

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog or customization with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.5. Query

Query operations

3.5.1. Executes a query with given parameters.

POST /v1/query/{name}
Description

The available queries depend on which extensions are included in your installation. Examples : cxpromotionsforcatalog, cxReplaceComponentWithContainer, etc…

Parameters
Type Name Description Schema

Path

name
required

Query name

string

Body

params
required

Parameter for query

QueryParams

Responses
HTTP Code Description Schema

200

OK

object

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

404

Query with given name doesn’t exist

No Content

Consumes
  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.6. Segments

Operations for segments

3.6.1. Creates segment

POST /v1/segments
Description

In default security configuration this endpoint is forbidden

Parameters
Type Name Description Schema

Body

segment
required

Segment to create

segment

Responses
HTTP Code Description Schema

201

Created

segment

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

409

Conflict - segment with given code already exists

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.6.2. Get all the segments

GET /v1/segments
Description

Endpoint returns all segments from the system

Parameters
Type Name Description Schema

Query

code
optional

Filter for segment identifier

string

Query

currentPage
optional

Current page number

integer(int32)

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Query

needsTotal
optional

Request total count

boolean

Query

pageSize
optional

Page size

integer(int32)

Responses
HTTP Code Description Schema

200

OK

SegmentList

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.6.3. Get a segment

GET /v1/segments/{segmentCode}
Parameters
Type Name Description Schema

Path

segmentCode
required

Segment identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

segment

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

404

Segment with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.6.4. Updates a segment

PUT /v1/segments/{segmentCode}
Description

In default security configuration this endpoint is forbidden

Parameters
Type Name Description Schema

Path

segmentCode
required

Segment identifier

string

Body

segment
required

Segment data to update

segment

Responses
HTTP Code Description Schema

200

OK

segment

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

404

Segment with given id doesn’t exist

No Content

409

Conflict - segment code in request body and url do not match

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.6.5. Deletes a segments

DELETE /v1/segments/{segmentCode}
Description

In default security configuration this endpoint is forbidden

Parameters
Type Name Description Schema

Path

segmentCode
required

Segment identifier

string

Responses
HTTP Code Description Schema

204

No Content

No Content

400

Bad Request

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method

No Content

404

Segment with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.7. Triggers

Operations for triggers

3.7.1. Create a trigger for a given variation

POST /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/triggers
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Body

data
required

Trigger to create

trigger

Responses
HTTP Code Description Schema

201

Created

trigger

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

409

Conflict - trigger with given code already exists

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.7.2. Get triggers for a given variation

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/triggers
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

TriggerList

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.7.3. Get a specific trigger

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/triggers/{triggerCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

triggerCode
required

Trigger identifier

string

Path

variationCode
required

Variation identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

trigger

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization, variation or trigger with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.7.4. Updates a trigger

PUT /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/triggers/{triggerCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

triggerCode
required

Trigger identifier

string

Path

variationCode
required

Variation identifier

string

Body

data
required

Trigger data for update

trigger

Responses
HTTP Code Description Schema

200

OK

trigger

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization, variation or trigger with given id doesn’t exist

No Content

409

Conflict - trigger code in request body and url do not match

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.7.5. Deletes a trigger

DELETE /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/triggers/{triggerCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

triggerCode
required

Trigger identifier

string

Path

variationCode
required

Variation identifier

string

Responses
HTTP Code Description Schema

204

No Content

No Content

400

Bad Request

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization, variation or trigger with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.8. Variations

Operations for variations in customization

3.8.1. Creates a new variations part of a given customization

POST /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Body

variation
required

Variation data to create

variation

Responses
HTTP Code Description Schema

201

Created

variation

400

Bad Request e.g. incorrect request body, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog or customization with given id doesn’t exist

No Content

409

Conflict - variation with given code already exists

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.8.2. Returns all variations for a given customization

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

VariationList

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog or customization with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.8.3. Returns an existing variation

GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Query

fields
optional

Response configuration (list of fields, which should be returned in response)

string

Responses
HTTP Code Description Schema

200

OK

variation

400

Bad Request e.g. incorrect parameter value

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.8.4. Updates an existing variation

PUT /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Body

variation
required

Variation data for update

variation

Responses
HTTP Code Description Schema

200

OK

variation

400

Bad Request e.g. incorrect request body data, missing parameters

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

409

Conflict - variation code in request body and url do not match

No Content

Consumes
  • application/xml

  • application/json

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

3.8.5. Delete an existing variation

DELETE /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}
Parameters
Type Name Description Schema

Path

catalog
required

Catalog identifier

string

Path

catalogVersion
required

Catalog version identifier

string

Path

customizationCode
required

Customization identifier

string

Path

variationCode
required

Variation identifier

string

Responses
HTTP Code Description Schema

204

No Content

No Content

400

Bad Request

No Content

401

Unauthorized

No Content

403

Forbidden. Have no access to this method or catalog with given id

No Content

404

Catalog, customization or variation with given id doesn’t exist

No Content

Security
Type Name

oauth2

oauth2_client_credentials

oauth2

oauth2_password

4. Definitions

4.1. ActionFullList

List of actions

Name Description Schema

actions
optional

List of actions

< action > array

pagination
optional

Pagination details

pagination

4.2. ActionList

List of actions

Name Description Schema

actions
optional

List of actions

< action > array

4.3. CustomerSegmentationList

List of customer segmentations

Name Description Schema

customerSegmentations
optional

List of customer segmentations

< customerSegmentation > array

pagination
optional

Pagination details

pagination

4.4. CustomizationList

List of customizations

Name Description Schema

customizations
optional

List of customizations

< customization > array

pagination
optional

Pagination details

pagination

4.5. QueryParams

Generic parameters for query endpoint

Name Description Schema

params
optional

Parameters map

< string, string > map

4.6. SegmentList

List of segments

Name Description Schema

pagination
optional

Pagination details

pagination

segments
optional

List of segments

< segment > array

4.7. TriggerList

List of triggers

Name Description Schema

triggers
optional

List of customer triggers

< trigger > array

4.8. VariationList

List of variations

Name Description Schema

variations
optional

List of variations

< variation > array

4.9. action

Action

Name Description Schema

catalog
optional

Catalog name

string

catalogVersion
optional

Catalog version

string

code
optional

Action code

string

rank
optional

Priority of the action

integer(int32)

4.10. customer

Customer details

Name Description Schema

segmentLinks
optional

List of customer’s segmentation details

< customerSegmentation > array

uid
optional

ID of the customer

string

4.11. customerSegmentation

Customer segmentation

Name Description Schema

affinity
optional

Affinity of the customer to the segment

number

baseSite
optional

Basesite identifier

string

code
optional

Customer segmentation code

string

customer
optional

Details of the customer

customer

provider
optional

Provider identifier

string

segment
optional

Details of the segment

segment

4.12. customization

Customization

Name Description Schema

active
optional

Dynamic attribute describing whether the customization affects the experience

boolean

catalog
optional

Catalog name

string

catalogVersion
optional

Catalog version

string

code
optional

Customization code

string

description
optional

Customization description

string

enabledEndDate
optional

Point in time when the customization will deactivate
Example : "yyyy-MM-ddTHH:mm:ssZ"

string(date-time)

enabledStartDate
optional

Point in time when the customization will activate, if it’s enabled
Example : "yyyy-MM-ddTHH:mm:ssZ"

string(date-time)

name
optional

Customization name

string

rank
optional

Priority of the customization

integer(int32)

status
optional

Status of the customization

enum (ENABLED, DISABLED, DELETED)

variations
optional

Details of the variations in this customization

< variation > array

4.13. pagination

Pagination info

Name Description Schema

count
optional

Number of elements on this page

integer(int32)

hasNext
optional

Indicates if there is next page

boolean

hasPrevious
optional

Indicates if there is previous page

boolean

page
optional

Current page number

integer(int32)

totalCount
optional

Total number of elements

integer(int64)

totalPages
optional

Total number of pages

integer(int32)

4.14. segment

Segment details

Name Description Schema

code
optional

Segment code

string

customerLinks
optional

Customer segmentation details

< customerSegmentation > array

description
optional

Segment description

string

segmentTriggers
optional

Segment trigger details

< segmentTrigger > array

4.15. segmentTrigger

Segment trigger

Name Description Schema

catalog
optional

Catalog name

string

catalogVersion
optional

Catalog version

string

code
optional

Trigger code

string

groupBy
optional

Logical operator connecting the segments

enum (AND, OR)

segments
optional

Details of the segments

< segment > array

variation
optional

Details of the variation

variation

4.16. trigger

Trigger

Name Description Schema

catalog
optional

Catalog name

string

catalogVersion
optional

Catalog version

string

code
optional

Trigger code

string

variation
optional

Details of the variation

variation

4.17. variation

Variation

Name Description Schema

actions
optional

Details of the variation actions

< action > array

active
optional

Dynamic attribute describing whether the variation affects the experience

boolean

catalog
optional

Catalog name

string

catalogVersion
optional

Catalog version

string

code
optional

Variation code

string

customization
optional

Details of the customization the variation belongs to

customization

enabled
optional

This is deprecated field (use status field instead)

boolean

name
optional

Variation name

string

rank
optional

Priority of the variation

integer(int32)

status
optional

Status of the variation

enum (ENABLED, DISABLED, DELETED)

triggers
optional

Details of the variation triggers

< trigger > array