Hello Taimur,
First of all, thanks for using Wazuh.
I see the Postman screenshots you sent. I reproduced it on my local machine and it works. I attached my screenshot to show you.
I think that the problem you are having is that in the request URL, the text "{{rule_filename}}" needs to be a Postman variable. If you don't have defined a Postman variable with the name "rule_filename", then the request will fail.
I attached a screenshot of where you need to define variables in Postman. (image variables.png)
You could also take a look at this Postman documentation link about defining variables:
https://learning.postman.com/docs/sending-requests/variablesBut if you don't want to define a variable, you could directly write the rule filename in the request URL. I also attached an image using your specific values. (image request.png)
When you create the rule correctly, you will find the new file in the directory "/var/ossec/etc/rules".
Please tell me if this helps.
Regards