Actions
Bug #18777
closedClone rule API fails with "rule already exists with that id"
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Error - Fixed
Regression:
Description
If you want to clone a rule, giving a source
rule to copy, you get an error:
curl -k -X PUT -H "X-API-TOKEN: xxxxxxx" -H "Content-Type: application/json" 'https://rudder/rudder/api/latest/rules' -d '{"source": "7eaff01b-7440-49be-a727-c7115a6897ce", "displayName":"copy by rest api" }' | jq '.' { "action": "cloneRule", "id": "5d67313f-db54-4702-872d-8569e687c333", "result": "error", "errorDetails": "Could not create Rule <- Consistancy: Cannot create a rule with ID '7eaff01b-7440-49be-a727-c7115a6897ce' : there is already a rule with the same id" }
Actions