Skip to main content

Use the create decision model definitions reference function in Sitecore CDP REST API

Abstract

How to create a decision model definitions reference in Sitecore CDP (Data model 2.1).

You can use the Decision Model REST API to perform the create decision model definitions reference function to create a unique decision model reference.

To create a decision model definitions reference in Sitecore CDP, use the following:

POST: https://apiEndpoint/v2/decisionModelDefinitions

{
  "name": "Determine Loan Limit",
  "description": "customer limit calculation"
}

The following is a 201 response:

{
    "clientKey": "pqsPERS3lw12v5a9rrHPW1c4hET73GxQ",
    "href": "https://dev-api.boxever.com/v2/decisionModelDefinitions/62fa90f6-f59c-4974-b603-587dd6a5f951",
    "ref": "62fa90f6-f59c-4974-b603-587dd6a5f951",
    "name": "Determine Loan Limit",
    "description": "customer limit calculation",
    "modifiedByUserRef": "25f46901-bc51-45e8-b587-148aecf1e48f",
    "modifiedAt": "2018-10-12T12:45:03.902Z",
    "revision": 1,
    "archived": false,
    "deploymentConfiguration": {
        "variants": []
    },
    "variants": {
        "href": "https://dev-api.boxever.com/v2/decisionModelDefinitions/62fa90f6-f59c-4974-b603-587dd6a5f951/variants"
    },
    "revisions": {
        "href": "https://dev-api.boxever.com/v2/decisionModelDefinitions/62fa90f6-f59c-4974-b603-587dd6a5f951/revisions"
    }
}