401 (Unauthorized) when trying to update user data

Have you given the correct permissions in the user-permissions admin panel?