Use this call to create a new draft based on an existing rule. Once set live, this draft will be a unique rule in its own right.
Name | Type | Description |
---|---|---|
pkRuleId | Int32 | The existing rule id. |
ruleName | String | The name of the new draft. |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/RulesEngine/CreateNewDraftFromExisting
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
pkRuleId=1&ruleName=sample string 1
This is an example of the response JSON. Results will vary depending on your data.
{
"pkRuleId": 1,
"RuleName": "sample string 2",
"Enabled": true,
"RunOrder": 4,
"RuleType": 1,
"pkRuleId_Draft": 1,
"Draft": true,
"RuleTypeDisplayName": "Test"
}