Hi,
I am using RB 6.0.2 and I want to change multiply users emails, so I need to use the api.
I tried many options, but I could not update any user's email.
My query is:
curl -H "Authorization: token <MY_TOKEN>" -H "Accept: application/json" -X PUT "https://<MY_SITE>/api/users/<USERNAME>/?email=<NEW_EMAIL>"
Just the users email is not updated
Also I have tried to send json header but the result is same:
curl -H "Authorization: token <MY_TOKEN>" -H "Accept: application/json" -X PUT "https://<MY_SITE>/api/users/<USERNAME>/" -H "Content-Type: application/json" -d "{'email': '<NEW_EMAIL>'}"