Page 1 of 1

updating Users collection

Posted: Tue Aug 05, 2014 10:42 am
by Terry Gilliver

I want to update my Users collection which has some extra fields added. I see from the documentation that I shout create a REST service with a put verb. Can you explain the makeup of the URL as it isn't clear to me.

Image

What about Settings?, I assume that this should be set to the database settings?


updating Users collection

Posted: Tue Aug 05, 2014 11:12 am
by Terry Gilliver

It's OK, I figured it out, it contains the userid. I got it working.


updating Users collection

Posted: Tue Aug 05, 2014 11:47 am
by Maryna Brodina

Hello Terry!

Thank you for update!


updating Users collection

Posted: Wed Oct 01, 2014 2:43 pm
by Matthew Huang

I am facing the same issue. The "userID" in the URL in Settings is hardcoded. How do I set "userID" dynamically?


updating Users collection

Posted: Wed Oct 01, 2014 6:03 pm
by Terry Gilliver

I think I can help there. You need to put something like {user_id} in the url. Then you create a parameter to be sent to the url called user_id. This can be then mapped as normal:

Image

You need to set the request parameters.
The body tab contains any fields or extra fields you have created, This is one of mine, but you will need the user_id parameter:

Image

and finally make sure your headers are correct for your database:

Image

You then need to do your mappings as normal.
Hope this helps.


updating Users collection

Posted: Thu Oct 02, 2014 12:57 am
by Matthew Huang

Problem solved.
Thanks!


updating Users collection

Posted: Thu Oct 02, 2014 3:03 am
by Terry Gilliver

Glad to help!


updating Users collection

Posted: Thu Feb 26, 2015 9:18 am
by EJLD

hi There !
when testing the service, the update (PUT) of the users table works well.
when installing on a 4.4.2 Android, it works well too. meaning the mapping works fine.
however, when installing on another device I have such as MotoG 4.4.4, it keeps sending error msg back.
has anybody encountered similar issue before ?
thk you,
Eric