I am trying to update a key in the MongoDB document using RESTHear api but the value is not getting updated, however, I am getting 200 OK.
I tried PATCH and PUT both. Below are the URIs I tried.
http PUT "http://localhost:8080/presence/active_watchers?filter={'presentity_uri':'sip:service-1@opensipstest.org'}" event_id=12
http PATCH "http://localhost:8080/presence/active_watchers?filter={'presentity_uri':'sip:service-1@opensipstest.org'}" event_id=12
Both the time I got 200 OK response but the value didn't update.
Am I doing something wrong. I couldn't find any example for this.
I am using Restheart v 2.0.0 Beta.