# Rule Export API

**URL:** <https://developer.sailpoint.com/discuss/t/rule-export-api/2574>\
**Category:** SHF Discussion and Questions\
**Created:** [January 6, 2022, 2:43pm UTC](https://developer.sailpoint.com/discuss/t/rule-export-api/2574 "2022-01-06T14:43:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethompson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ethompson/32/17298_2.png) [@ethompson](https://developer.sailpoint.com/discuss/u/ethompson)\
**Post date:** [January 6, 2022, 2:43pm UTC](https://developer.sailpoint.com/discuss/t/rule-export-api/2574/1 "2022-01-06T14:43:22Z")

</div>

I am looking for a way to export all of the rules in the tenant so we can have source control or any changes.

I tried using the /beta/sp-config/export with “RULE” but in one tenant this only gave 21 rules but I know there are more. I used an older API /api/rule/list and this returned 77 for the same tenant.

Are one of these 2 APIs the best way to accomplish this or is there another that would work better?

---

<div class="post-metadata">

**Author:** ![gustavo\_mariscal](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/gustavo_mariscal/32/628_2.png) [@gustavo\_mariscal](https://developer.sailpoint.com/discuss/u/gustavo_mariscal)\
**Post date:** [January 20, 2022, 3:51pm UTC](https://developer.sailpoint.com/discuss/t/rule-export-api/2574/2 "2022-01-20T15:51:08Z")

</div>

Hi,

please use the older API, new API is a beta version.

---

<div class="post-metadata">

**Author:** ![Chris\_Smith1](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@Chris\_Smith1](https://developer.sailpoint.com/discuss/u/Chris_Smith1)\
**Post date:** [January 20, 2022, 4:22pm UTC](https://developer.sailpoint.com/discuss/t/rule-export-api/2574/3 "2022-01-20T16:22:36Z")

</div>

Hello,  
If you are using this for an automated source control process we recommend using the v3 API as the beta API’s are still under development and subject to change without notice. Did the v3 API call return all of the expected rules in your testing?  
Regards,  
-Chris Smith

---

<div class="post-metadata">

**Author:** ![ethompson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ethompson/32/17298_2.png) [@ethompson](https://developer.sailpoint.com/discuss/u/ethompson)\
**Post date:** [January 20, 2022, 7:57pm UTC](https://developer.sailpoint.com/discuss/t/rule-export-api/2574/4 "2022-01-20T19:57:12Z")

</div>

Is there a v3 API for getting Rules?

---

<div class="post-metadata">

**Author:** ![Chris\_Smith1](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@Chris\_Smith1](https://developer.sailpoint.com/discuss/u/Chris_Smith1)\
**Post date:** [January 20, 2022, 9:15pm UTC](https://developer.sailpoint.com/discuss/t/rule-export-api/2574/5 "2022-01-20T21:15:20Z")

</div>

The rules an API export call will return depends on what version of the API the rules were originally submitted with, so if these rules were submitted on the v1 API that is why they would not show up in your beta v3 export call. The 21 rules that did show up in your call are showing up because they were originally uploaded with the v3 API.  
I hope this is helpful in explaining the behavior you are seeing.  
Regards,  
-Chris Smith

---

<div class="post-metadata">

**Author:** ![Chris\_Smith1](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@Chris\_Smith1](https://developer.sailpoint.com/discuss/u/Chris_Smith1)\
**Post date:** [February 3, 2022, 10:12pm UTC](https://developer.sailpoint.com/discuss/t/rule-export-api/2574/6 "2022-02-03T22:12:11Z")

</div>

Hello @ethompson, was the information provided in our earlier responses helpful in solving your problem? Don’t hesitate to let us know if you have any other questions!

- Chris

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:22pm UTC](https://developer.sailpoint.com/discuss/t/rule-export-api/2574/7 "2023-07-19T14:22:27Z")

</div>

Closed on July 19, 2023, 2:22pm UTC


