Update a decision model variant
GET /v2/decisionModelVariants/<decisionModelVariantRef>
Updates a decision model variant.
|
Attribute |
Type |
Description |
Example |
|---|---|---|---|
|
|
string |
The reference of the decision model variant. If you do not know the decision model variant reference, first retrieve decision model variants. |
|
At a minimum, you must provide the following required attributes in the request body:
|
Attribute |
Type |
Description |
Example |
|---|---|---|---|
|
|
string |
The name of the decision model. |
|
|
|
string |
The definition of the decision model variant that belongs to the decision canvas. |
|
curl -X PUT '<baseURL>/v2/decisionModelVariants/c682b6b6-934b-415b-bc46-ce6184809156' \ -H 'Authorization: Bearer <accessToken>' \ -H 'Accept: application/json' \ --raw-data ' { "name": "Determine Ancillary Upsell Variant 2", "definition": "Control" }'
{ "clientKey": "pqsPERS3lw12v5a9rrHPW1c4hET73GxQ", "href": "<baseURL>/v2/decisionModelVariants/c682b6b6-934b-415b-bc46-ce6184809156", "ref": "c682b6b6-934b-415b-bc46-ce6184809156", "name": "Determine Ancillary Upsell Variant 2", "modifiedByUserRef": "25f46901-bc51-45e8-b587-148aecf1e48f", "modifiedAt": "2018-10-12T13:13:53.454Z", "revision": 5, "archived": false, "decisionModelDefinitionRef": "6d009415-294a-4981-9341-bfa0d4867c50", "definition": "Control", "transpiledDefinition": "Control", "revisions": { "href": "<baseURL>/v2/decisionModelVariants/c682b6b6-934b-415b-bc46-ce6184809156/revisions" }, "offers": [] }