I need to update an attribute in a record in a collection in usergrid. I dont have uuid or name. Instead I have a unique composite key customerId and tokenId.
I tried using ql=select * where customerId='Cust0001' and tokenId='T102023'. Got an exception.
Is there a way to update the record through PUT request?
Solved! Go to Solution.
You can specify the condition as "ql", a query param and make a PUT call. More documentation here
For Eg - The following call will updates all the stores with county is US.
http://api.usergrid.com/org/app/stores?ql=country='US'
You can specify the condition as "ql", a query param and make a PUT call. More documentation here
For Eg - The following call will updates all the stores with county is US.
http://api.usergrid.com/org/app/stores?ql=country='US'
Thanks a ton Sudheendra. Saved me lot of effort.