Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

updating Users collection

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?

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

updating Users collection

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

updating Users collection

Hello Terry!

Thank you for update!

Matthew Huang
Posts: 0
Joined: Mon Jun 09, 2014 11:06 am

updating Users collection

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

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

updating Users collection

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.

Matthew Huang
Posts: 0
Joined: Mon Jun 09, 2014 11:06 am

updating Users collection

Problem solved.
Thanks!

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

updating Users collection

Glad to help!

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

updating Users collection

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

Return to “Issues”