How to update specific record in usergrid collection without name or uuid?

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 Solved
0 2 175
1 ACCEPTED 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'

View solution in original post

2 REPLIES 2

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.