Use the retrieve decision model definition reference function in Sitecore CDP REST API

Abstract

How to retrieve a unique decision model definition reference in Sitecore CDP (Data model 2.1).

You can use the Decision Model REST API to perform the retrieve decision model definition reference function to return a unique decision model reference. To do this, you need the decisionModelDefinitionRef returned when retrieving the decision model definition.

To retrieve a decision model definition reference in Sitecore CDP, use the following:

GET: https://apiEndpoint/v2/decisionModelDefinitions/decisionModelDefinitionRef

Attribute

Description

Type

decisionModelDefinitionRef

The reference of the decision model.

string

 

$ curl -H "Accept: application/json" \
    "https://{apiEndpoint}/v2/decisionModelDefinitions/9810c713-0bc6-4349-8323-00d408047764"

The following is a 200 response:

{
    "clientKey": "pqsPERS3lw12v5a9rrHPW1c4hET73GxQ",
    "href": "https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89",
    "ref": "e8878fdb-4031-423c-a12b-5691381f0c89",
    "name": "TEST_1539184400561_PP_1",
    "modifiedByUserRef": "843c775e-db9c-49f6-9f56-e3999123bcf4",
    "modifiedAt": "2018-10-10T15:14:40.233Z",
    "revision": 3,
    "archived": false,
    "deploymentConfiguration": {
        "variants": [
            {
                "variantRef": "19700f15-4069-4121-b709-1031118677c8",
                "split": 80,
                "status": "PRODUCTION",
                "variantRevision": 1
            },
            {
                "variantRef": "42e882a5-c8a8-4149-be76-343409d10c1c",
                "split": 20,
                "status": "PRODUCTION",
                "variantRevision": 1
            }
        ]
    },
    "variants": {
        "href": "https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/variants"
    },
    "revisions": {
        "href": "https://dev-api.boxever.com/v2/decisionModelDefinitions/e8878fdb-4031-423c-a12b-5691381f0c89/revisions"
    }
}