Create Rule API not working

Hi
I'm a bit struggling using the Rules creation API

I'm trying to create a "rule_type_id":".es-query".
In the parameters it asks me for the `"es-Query"', I tried to use the triple quotes but it gives me an error that
"Bad Request","message":"Invalid request payload JSON format"
If i give no quotes then it gives me an error that it is expecting a string and instead it got an object.
So how can I safely send it over?
Thanks
A

Hi @A_Mightiev,

Can you share your request payload and the query you are trying to create the rule for?

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