# Detection Rule Export API not working

**URL:** <https://discuss.elastic.co/t/detection-rule-export-api-not-working/287548>\
**Category:** SIEM\
**Tags:** detection-rules\
**Created:** [October 25, 2021, 7:36am UTC](https://discuss.elastic.co/t/detection-rule-export-api-not-working/287548 "2021-10-25T07:36:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejas.tech](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@tejas.tech](https://discuss.elastic.co/u/tejas.tech)\
**Post date:** [October 25, 2021, 7:36am UTC](https://discuss.elastic.co/t/detection-rule-export-api-not-working/287548/1 "2021-10-25T07:36:19Z")

</div>

I would like to export all detection rule with details, and I did check with  
"Kibana IP: port/api/detection\_engine/rules/\_export", when I check with this I am getting 404 error with not found.

Could anyone please help me out export all the rules?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![christos.nasikas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christos.nasikas/32/45611_2.png) [@christos.nasikas](https://discuss.elastic.co/u/christos.nasikas)\
**Post date:** [November 1, 2021, 9:50am UTC](https://discuss.elastic.co/t/detection-rule-export-api-not-working/287548/2 "2021-11-01T09:50:10Z")

</div>

Hi @tejas.tech,

Which version of Kibana do you use?

Thanks,  
Christos

---

<div class="post-metadata">

**Author:** ![Frank\_Hassanabad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frank_hassanabad/32/49255_2.png) [@Frank\_Hassanabad](https://discuss.elastic.co/u/Frank_Hassanabad)\
**Post date:** [November 18, 2021, 12:44am UTC](https://discuss.elastic.co/t/detection-rule-export-api-not-working/287548/3 "2021-11-18T00:44:23Z")

</div>

If you're in a space you have to add `s/${space_name}` where `${space_name}` is your space name in the URL as a prefix to your REST route to export.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 16, 2021, 12:44am UTC](https://discuss.elastic.co/t/detection-rule-export-api-not-working/287548/4 "2021-12-16T00:44:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
