rest icon indicating copy to clipboard operation
rest copied to clipboard

Update User

Open buzzzo opened this issue 1 year ago • 1 comments

Hi

What is the EXACT syntax to update user ? Do we specify all the payload or could we just specify one field ?

Could someone post an example with a curl call ?

I'm just trying something like: json='{"profile": {"mobile": "123456"}}'

curl https://x.y.z.j/api/v1/user/4 -H "Accept: application/json" -H "Authorization: Bearer $token" -d '$json' --request PUT

but i've receive:

"code":500,"message":"Internal error while save user!"}

Thx

buzzzo avatar May 19 '24 10:05 buzzzo

I'm also interested. I tried to update a few profile fields and I don't have any error message. I have for answer just the content of the user information, but no change are made.

Reuns avatar Jul 01 '24 15:07 Reuns