Skip to main content
Solved

Is it possible to duplicate existing rule automatically (without using AtaccamaOne UI)

  • December 23, 2025
  • 6 replies
  • 56 views

Hi ​@anna.spakova ​@Lisa Kovalskaia I have a requirement to duplicate existing rules for multiple use cases. I don’t want to do it manually by using Ataccama One UI but would like to achieve the same by parameterizing rule names (per use case). Can we make use of any Ataccama desktop features/APIs? Waiting for your inputs. Thanks!

Best answer by anna.spakova

Hi ​@mp_ataccamauser ,

I checked the browser and developer tools and apparently you can use the following graphQL to create a copy:

mutation ruleCopy($gid: GID!) {
ruleCopy(gid: $gid) {
result {
gid
__typename
}
__typename
}
}

 Variables:

{
"gid": "36ed325c-0000-7000-0000-0000003afc15"
}

The result will give you the ID of the new rule most likely in a draft that you need to further edit (change name etc). 

Alternatively, you can always create a new rule from scratch and just take the necessary information from another rule. But that requires a few more queries/steps (like creating implementation, input attributes, ...). But it allows using the ONE Metadata writer steps.

KIind regards,

Anna

6 replies

Lisa Kovalskaia
Ataccamer
Forum|alt.badge.img+3

@mp_ataccamauser hi, Happy New Year! Are you running DQ directly in the catalog, or in monitoring projects? If it’s the latter, are you able to reuse the same rule across monitoring projects? When rule logic is exactly the same for multiple data attributes, I’d try to avoid creating a physical copy of the rule for every individual use case. Instead, I would map the same rule into multiple projects, and assign a rule name/label in there. You can then export rule labels via ONE Metadata Reader or GQL (on the ruleInstance entity).

 

You could also assign/update rule labels via ONE Metadata Writers or GQL:

What do you think? Will this work for you?


  • Author
  • Star Blazer L3
  • January 5, 2026

Thanks ​@Lisa Kovalskaia Happy new year!

Yes, we are using this option for one of the requirements but the one I’m looking for here is creation of separate set of rules altogether as the use of rules/access to the rules is limited based on use cases and the users. Also, this could be a one time effort.


anna.spakova
Ataccamer
Forum|alt.badge.img+3
  • Ataccamer
  • Answer
  • January 5, 2026

Hi ​@mp_ataccamauser ,

I checked the browser and developer tools and apparently you can use the following graphQL to create a copy:

mutation ruleCopy($gid: GID!) {
ruleCopy(gid: $gid) {
result {
gid
__typename
}
__typename
}
}

 Variables:

{
"gid": "36ed325c-0000-7000-0000-0000003afc15"
}

The result will give you the ID of the new rule most likely in a draft that you need to further edit (change name etc). 

Alternatively, you can always create a new rule from scratch and just take the necessary information from another rule. But that requires a few more queries/steps (like creating implementation, input attributes, ...). But it allows using the ONE Metadata writer steps.

KIind regards,

Anna


  • Author
  • Star Blazer L3
  • January 5, 2026

Thank ​@anna.spakova This looks something that can fulfil my requirement. Btw I am trying to copy using the Jan sandbox for ruleID (https://one-2b2ca.worker-01-apse2.prod.ataccama.link/) and playground to call the APIs but I keep getting unauthorized error. Using basic authentication as shown below. Anything else needed that I am missing for me to make use of the APIs

 


anna.spakova
Ataccamer
Forum|alt.badge.img+3
  • Ataccamer
  • January 7, 2026

Hi, ​@mp_ataccamauser ,

can you first log in to the standard environment with your usual user and then go to the playground? Has the user used in Auth header access to the platform? Other than that, there shouldn’t be anything else needed (or I would expect a different error). 

In case you still face the issues, I suggest creating a support ticket, they can help you further troubleshoot the problem.

Kind regards,

Anna


Thanks ​@anna.spakova  I am able to test the approach and create a rule...I would like to know if somehow we can parameterize the name of the copied rule by any chance? Also, the rule should be published manually, could this be handled in same API call?