Closed divgwd closed 6 years ago
Possibly something related to URL encoding? Are you trying to put a space in the name, or is this really your rule name: sreepad&newrule_now3
?
It looks like data you are posting (body) is missing id
attribute in the payload.
I will also make sure to update the code to correctly return 400 "invalid data" instead of 500 in such case - thanks for reporting this.
In the mean time, as a work-around, you can simply put "id" attribute in the payload body which matches the object id (aka the one already provided in the url) and it should work.
Hi, I am trying to update a rule in st2 using the /api/v1/rule/id I get the below error
when I check the logs this is the output:
my update query is below:
data in mongoDB
I would like to know if there is a workaround for this ? or is there a problem with the body of the put data. Thanks in advance!