{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sitecore CDP REST Audit Decision Models API",
    "version": "v2.1"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Decision Models",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List decision models",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-engage-eu.sitecorecloud.io/v1/decision-models",
            "params": [
              {
                "name": "pageSize",
                "value": "",
                "type": "query",
                "description": "Number of items to return per page"
              },
              {
                "name": "pageOffset",
                "value": "",
                "type": "query",
                "description": "Number of records to skip for pagination"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Field name and direction to sort results by (e.g., name:asc)"
              }
            ]
          },
          "docs": "Retrieves a paginated collection of all decision models configured in the Sitecore Personalize instance. Decision models drive offer selection and targeting logic. Supports search, sorting, and pagination."
        },
        {
          "info": {
            "name": "Create a decision model",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-engage-eu.sitecorecloud.io/v1/decision-models",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new decision model in Sitecore Personalize. Decision models contain items, variant configurations, and deployment settings that control how offers or content are selected for a given audience."
        },
        {
          "info": {
            "name": "Get a decision model",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-engage-eu.sitecorecloud.io/v1/decision-models/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the resource"
              }
            ]
          },
          "docs": "Retrieves a specific decision model by its unique identifier. Returns the full model including its items, variant configuration, and current deployment status."
        },
        {
          "info": {
            "name": "Update a decision model",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api-engage-eu.sitecorecloud.io/v1/decision-models/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the resource"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Performs a full replacement update of a decision model. All fields are replaced with the values in the request body. This creates a new revision of the model."
        }
      ]
    }
  ],
  "bundled": true
}