1. Overview
These services create and manage customizations targeted at specific users and can integrate personalization with other systems.
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.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
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Query |
actionCode |
Customization code. Supported by CXCMSACTION type. |
string |
Query |
catalogs |
Filter for action catalog. Supported by CXCMSACTION type. |
enum (CURRENT, PARENTS, ALL) |
Query |
componentCatalog |
Catalog of the action component. Supported by CXCMSACTION type. |
string |
Query |
componentId |
Id of the component used by the action. Supported by CXCMSACTION type. |
string |
Query |
containerId |
Id of the container used by the action. Supported by CXCMSACTION type. |
string |
Query |
currentPage |
Current page number |
integer(int32) |
Query |
customizationCode |
Customization code. Supported by CXCMSACTION type. |
string |
Query |
customizationName |
Customization name. Supported by CXCMSACTION type. |
string |
Query |
customizationStatus |
Comma separated customization statuses. Available statuses : ENABLED, DISABLED, DELETED. Supported by CXCMSACTION type. |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Query |
needsTotal |
Request total count |
boolean |
Query |
pageCatalogId |
Catalog of the page action is affecting. Ignored if pageId is not provided. Supported by CXCMSACTION type. |
string |
Query |
pageId |
Id of the page affected by the action. Supported by CXCMSACTION type. |
string |
Query |
pageSize |
Page size |
integer(int32) |
Query |
type |
Type of action. CXCMSACTION requires personalizationcms extension. |
enum (CXCMSACTION) |
Query |
variationCode |
Variation code. Supported by CXCMSACTION type. |
string |
Query |
variationName |
Variation name. Supported by CXCMSACTION type. |
string |
Query |
variationStatus |
Comma separated variation statuses. Available statuses : ENABLED, DISABLED, DELETED. Supported by CXCMSACTION type. |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.1.2. Creates an action
POST /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}/actions
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Body |
action |
Action to create |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Created |
|
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Body |
actionCodes |
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Body |
actionList |
Actions to create |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Created |
|
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 |
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 |
Action identifier |
string |
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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 |
Action identifier |
string |
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Body |
action |
Action data to update |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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 |
Action identifier |
string |
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
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 |
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 |
DTO object which contains customer and segment identifiers |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Created |
|
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 |
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 |
Basesite identifier |
string |
Query |
currentPage |
Current page number |
integer(int32) |
Query |
customerId |
Customer identifier. At least one of parameters is required : customerId, segmentId |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Query |
needsTotal |
Request total count |
boolean |
Query |
pageSize |
Page size |
integer(int32) |
Query |
segmentId |
Segment identifier. At least one of parameters is required : customerId, segmentId |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
400 |
Bad Request e.g. incorrect parameter value |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden. Have no access to this method |
No Content |
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 |
Relation identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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 |
Relation identifier |
string |
Body |
data |
DTO object which contains customer and segment identifiers |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Body |
customization |
Customization with related objects |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Created |
|
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 |
3.3.2. Updates customization and related objects
PUT /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizationpackages/{customizationCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Body |
customization |
Customization data for update |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Body |
customization |
Customization to create |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Created |
|
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 |
3.4.2. Returns all customizations
GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Query |
catalogs |
Filter for customization catalog. Requires personalizationcms extension. |
enum (CURRENT, PARENTS, ALL) |
Query |
code |
Filter for customization identifier. This filter don’t work together with other filters (pageId, statuses, name) |
string |
Query |
currentPage |
Current page number |
integer(int32) |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Query |
name |
Filter for customization name. This require also 'statuses' parameter to be set |
string |
Query |
needsTotal |
Request total count |
boolean |
Query |
negatePageId |
Flag to return customizations not related to page with 'pageId'. Requires personalizationcms extension. |
boolean |
Query |
pageCatalogId |
Page catalog identifier. Requires personalizationcms extension. |
string |
Query |
pageId |
Page identifier. This require also 'statuses' parameter to be set. Requires personalizationcms extension. |
string |
Query |
pageSize |
Page size |
integer(int32) |
Query |
statuses |
Comma separated customization statuses. Available statuses : ENABLED, DISABLED, DELETED |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.4.3. Get a customization
GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.4.4. Updates a customization
PUT /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Body |
customization |
Customization data for update |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.4.5. Deletes a customization
DELETE /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
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 |
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 |
Query name |
string |
Body |
params |
Parameter for query |
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 |
3.6. Segments
Operations for segments
3.6.1. Creates segment
POST /v1/segments
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Created |
|
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 |
3.6.2. Get all the segments
GET /v1/segments
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
code |
Filter for segment identifier |
string |
Query |
currentPage |
Current page number |
integer(int32) |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Query |
needsTotal |
Request total count |
boolean |
Query |
pageSize |
Page size |
integer(int32) |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
400 |
Bad Request e.g. incorrect parameter value |
No Content |
401 |
Unauthorized |
No Content |
403 |
Forbidden. Have no access to this method |
No Content |
3.6.3. Get a segment
GET /v1/segments/{segmentCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
segmentCode |
Segment identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.6.4. Updates a segment
PUT /v1/segments/{segmentCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
segmentCode |
Segment identifier |
string |
Body |
segment |
Segment data to update |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.6.5. Deletes a segments
DELETE /v1/segments/{segmentCode}
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Body |
data |
Trigger to create |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Created |
|
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
triggerCode |
Trigger identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
triggerCode |
Trigger identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Body |
data |
Trigger data for update |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
triggerCode |
Trigger identifier |
string |
Path |
variationCode |
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Body |
variation |
Variation data to create |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
201 |
Created |
|
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 |
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 |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.8.3. Returns an existing variation
GET /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Query |
fields |
Response configuration (list of fields, which should be returned in response) |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.8.4. Updates an existing variation
PUT /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
Variation identifier |
string |
Body |
variation |
Variation data for update |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
OK |
|
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 |
3.8.5. Delete an existing variation
DELETE /v1/catalogs/{catalog}/catalogVersions/{catalogVersion}/customizations/{customizationCode}/variations/{variationCode}
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Path |
catalog |
Catalog identifier |
string |
Path |
catalogVersion |
Catalog version identifier |
string |
Path |
customizationCode |
Customization identifier |
string |
Path |
variationCode |
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 |
4. Definitions
4.1. ActionFullList
List of actions
| Name | Description | Schema |
|---|---|---|
actions |
List of actions |
< action > array |
pagination |
Pagination details |
4.2. ActionList
List of actions
| Name | Description | Schema |
|---|---|---|
actions |
List of actions |
< action > array |
4.3. CustomerSegmentationList
List of customer segmentations
| Name | Description | Schema |
|---|---|---|
customerSegmentations |
List of customer segmentations |
< customerSegmentation > array |
pagination |
Pagination details |
4.4. CustomizationList
List of customizations
| Name | Description | Schema |
|---|---|---|
customizations |
List of customizations |
< customization > array |
pagination |
Pagination details |
4.5. QueryParams
Generic parameters for query endpoint
| Name | Description | Schema |
|---|---|---|
params |
Parameters map |
< string, string > map |
4.6. SegmentList
List of segments
| Name | Description | Schema |
|---|---|---|
pagination |
Pagination details |
|
segments |
List of segments |
< segment > array |
4.7. TriggerList
List of triggers
| Name | Description | Schema |
|---|---|---|
triggers |
List of customer triggers |
< trigger > array |
4.8. VariationList
List of variations
| Name | Description | Schema |
|---|---|---|
variations |
List of variations |
< variation > array |
4.9. action
Action
| Name | Description | Schema |
|---|---|---|
catalog |
Catalog name |
string |
catalogVersion |
Catalog version |
string |
code |
Action code |
string |
rank |
Priority of the action |
integer(int32) |
4.10. customer
Customer details
| Name | Description | Schema |
|---|---|---|
segmentLinks |
List of customer’s segmentation details |
< customerSegmentation > array |
uid |
ID of the customer |
string |
4.11. customerSegmentation
Customer segmentation
| Name | Description | Schema |
|---|---|---|
affinity |
Affinity of the customer to the segment |
number |
baseSite |
Basesite identifier |
string |
code |
Customer segmentation code |
string |
customer |
Details of the customer |
|
provider |
Provider identifier |
string |
segment |
Details of the segment |
4.12. customization
Customization
| Name | Description | Schema |
|---|---|---|
active |
Dynamic attribute describing whether the customization affects the experience |
boolean |
catalog |
Catalog name |
string |
catalogVersion |
Catalog version |
string |
code |
Customization code |
string |
description |
Customization description |
string |
enabledEndDate |
Point in time when the customization will deactivate |
string(date-time) |
enabledStartDate |
Point in time when the customization will activate, if it’s enabled |
string(date-time) |
name |
Customization name |
string |
rank |
Priority of the customization |
integer(int32) |
status |
Status of the customization |
enum (ENABLED, DISABLED, DELETED) |
variations |
Details of the variations in this customization |
< variation > array |
4.13. pagination
Pagination info
| Name | Description | Schema |
|---|---|---|
count |
Number of elements on this page |
integer(int32) |
hasNext |
Indicates if there is next page |
boolean |
hasPrevious |
Indicates if there is previous page |
boolean |
page |
Current page number |
integer(int32) |
totalCount |
Total number of elements |
integer(int64) |
totalPages |
Total number of pages |
integer(int32) |
4.14. segment
Segment details
| Name | Description | Schema |
|---|---|---|
code |
Segment code |
string |
customerLinks |
Customer segmentation details |
< customerSegmentation > array |
description |
Segment description |
string |
segmentTriggers |
Segment trigger details |
< segmentTrigger > array |
4.15. segmentTrigger
Segment trigger
| Name | Description | Schema |
|---|---|---|
catalog |
Catalog name |
string |
catalogVersion |
Catalog version |
string |
code |
Trigger code |
string |
groupBy |
Logical operator connecting the segments |
enum (AND, OR) |
segments |
Details of the segments |
< segment > array |
variation |
Details of the variation |
4.16. trigger
Trigger
| Name | Description | Schema |
|---|---|---|
catalog |
Catalog name |
string |
catalogVersion |
Catalog version |
string |
code |
Trigger code |
string |
variation |
Details of the variation |
4.17. variation
Variation
| Name | Description | Schema |
|---|---|---|
actions |
Details of the variation actions |
< action > array |
active |
Dynamic attribute describing whether the variation affects the experience |
boolean |
catalog |
Catalog name |
string |
catalogVersion |
Catalog version |
string |
code |
Variation code |
string |
customization |
Details of the customization the variation belongs to |
|
enabled |
This is deprecated field (use status field instead) |
boolean |
name |
Variation name |
string |
rank |
Priority of the variation |
integer(int32) |
status |
Status of the variation |
enum (ENABLED, DISABLED, DELETED) |
triggers |
Details of the variation triggers |
< trigger > array |