Skip to main content

Use the retrieve a decision model variant revision function in Sitecore CDP REST API

Abstract

How to retrieve a decision model variant revision in Sitecore CDP (Data model 2.1).

You can use the Decision Model Variant REST API to perform the retrieve a decision model variant revision function to return a decision model variant revision. To do this, you must have the decisionModelVariantRef attribute returned when retrieving the decision model variant reference and the revision number.

To retrieve a decision model variant revision in Sitecore CDP, use the following:

GET: https://apiEndpoint/v2/decisionModelVariants/decisionModelVariantRef/revisions/revision

Attribute

Description

Type

decisionModelVariantRef

The reference of the decision model variant.

string

revision

The revision number of the decision model variant.

integer

 $ curl -H "Accept: application/json" \
"https://{apiEndpoint}/v2/decisionModelVariants/4ee0797d-e229-492d-883e-1344787002b4/revisions"

The following is a 200 response:

{
  "type": "string",
  "clientKey": "string",
  "href": "string",
  "ref": "string",
  "name": "string",
  "description": "string",
  "modifiedByUserRef": "string",
  "modifiedAt": "2018-10-05T11:26:32.405Z",
  "revision": 0,
  "revisionComment": "string",
  "archived": false,
  "decisionModelDefinitionRef": "string",
  "definition": "string",
  "revisions": {
    "type": "string",
    "href": "https://{apiEndpoint}/v2/decisionModelDefinitions/64ebc05e-2406-48d0-a074-d78dc0191ea6/revisions/1"
  },
  "decisionModelDefinition": {
    "type": "string",
    "href": "https://{apiEndpoint}/v2/decisionModelDefinitions/64ebc05e-2406-48d0-a074-d78dc0191ea6"
  },
  "offers": [
    "string"
  ],
  "inProduction": true
}