Project

General

Profile

Actions

Bug #18777

closed

Clone rule API fails with "rule already exists with that id"

Added by François ARMAND over 3 years ago. Updated about 3 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
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" 
}


Related issues 1 (0 open1 closed)

Related to Rudder - Architecture #18770: Add API tests for rulesReleasedElaad FURREEDANActions
Actions

Also available in: Atom PDF