Update a decision model
PUT /v2/decisionModelDefinitions/<decisionModelRef>
Updates a decision model. Every update increases the value in the revision
key by one.
Each variantRef
has an assigned split value which determines the audience percentage that the decision model will impact. The split values of the variantRef
attribute(s) must total 100.
Archiving a decision model:
RequestResponse
curl -X PUT '<baseURL>/v2/decisionModelDefinitions/865ce079-6012-4f97-bc46-07215691a178' \
-H 'Authorization: Bearer <accessToken>' \
-H 'Accept: application/json' \
--data-raw '
{
"name": "Determine Ancillary Upsell",
"archived": true,
"deploymentConfiguration": {
"variants": []
}
}'
RequestResponse
{
"clientKey": "pqsPERS3lw12v5a9rrHPW1c4hET73GxQ",
"href": "<baseURL>/v2/decisionModelDefinitions/865ce079-6012-4f97-bc46-07215691a178",
"ref": "865ce079-6012-4f97-bc46-07215691a178",
"name": "Determine Ancillary Upsell - archived 2025-10-10 16:04",
"modifiedByUserRef": "c008c81d-4941-46aa-b4e6-a17e8388498a",
"modifiedAt": "2025-10-10T16:04:20.878Z",
"revision": 4,
"archived": true,
"deploymentConfiguration": {
"variants": []
},
"variants": {
"href": "<baseURL>/v2/decisionModelDefinitions/865ce079-6012-4f97-bc46-07215691a178/variants"
},
"revisions": {
"href": "<baseURL>/v2/decisionModelDefinitions/865ce079-6012-4f97-bc46-07215691a178/revisions"
}
}