Updating User's Data gets Error: Unable to update user. Required fields are empty

Hi there!
I’m trying to update some user’s data from Dropsource with this API call:
PUT /data/Users/{objectId}

The call sends this data to the server:
{ “City” : “sdfg”, “email” : “”, “Mobile” : “456”, “Company” : “34325”, “Owner” : “sergsdf”, “Postcode” : “dfg”, “taxNumber” : “345425”, “Telephone” : “3452”, “password” : “”, “Adress” : “sdfgs”, “Country” : “sdf” }

In my UI the user is not able to change the email and password, and this is why Dropsource sends no value for Email and Password.

How can I exclude those properties from my request?

My APP ID is: 9171DE0B-E8E1-389D-FF48-60C0FD002A00

Hi Mario

I guess you need to ask it on Dropsource forum, because it’s out of our control.
Or, maybe you can add an “beforeDataUpdate” event handler and remove the properties from request payload

Regards, Vlad

1 Like

Another option is to modify the swagger doc by creating a duplicate route with a modified payload which does not contain the fields you do not need, and then import that swagger doc into dropsource.

1 Like

@mark-piller @vladimir-upirov

Good Day, I am facing a similar situation. Using codeless logic a User can create, update and delete other users. Using codeless logic I am able to add (Cloud Code) and delete users. When it comes to updating the user I display all the Users information but not the password. When I click the Update button I receive the following error “Something went wrong. Error: Property ‘password’ is required”.

I am using the “Save to backendless” block which will save the data on the page to the “Users” table.

Will I need to use Cloud Code to update the User or is there another way around this?

Kind Regards
Donovan