Detection Rule Export API not working

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.

1 Like

Hi @tejas.tech,

Which version of Kibana do you use?

Thanks,
Christos

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.