Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Cant update user collection

Hi
i can create a NEW entry in the user collection but I cant UPDATE the user collection. I get an unauthorized message. I can change all other collections.

I look at other posts but they are meaningless. Please don't ask me questions. just go and look for yourself and see what is wrong. It is much quicker than you having to think up of a 100 questions to ask me. Will cut down your support time drastically.

App is shared with appery.
Pulic link: Ultimate Mall
Service: UltimateMall_User_Update
page where service is run from: signup3
mapping: update_User

Tell me whats wrong with the service or mapping and provide documentation for correct service/mapping as there is none for user collection updates that I could find. User collection seems to be handled differently to other collections which can be updated perfectly without any problem.
Thx

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Cant update user collection

Hello Deon,

You are able to update only current user's data, so you have to send a sessionToken as a request parameter. This is a security restriction.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Cant update user collection

Hi Deon,

Updating a user from the Users collection is shown here: https://devcenter.appery.io/documenta.... You do need to provide a session token in order to do the update. This means you need to login first into the app. Based on the error in your post (unauthorized message) -- most likely a session token is not provided.

Before you try to use the service on the page, please test it inside the App Builder (service Test tab) to make sure it works there.

Another option is to update the Users collection from a Server Code script. The API to do that is shown here: https://devcenter.appery.io/documenta.... We should have a snippet for that as well in the editor. A Server Code script can be easily tested via the Run tab. It's an excellent way first to test your backend and then use it in the app (client).

If you want us to debug your app, please consider purchasing the Advisory Pack support package: http:/appery.io/services.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Cant update user collection

Thanks , I am using mappings though.

I am really not sure what the issue is but its working. I have issues like this all the time. Something works and then it does not or just starts working again?????

Return to “Issues”