I would like to be able to set an avatarUrl upon account creation. I use Gravatar and social media avatars on my main Laravel site, and I'm working on single sign on to Flarum. I don't need to upload one to Flarum if I can just provide the URL to the existing one instead. (If I plug it in to the database manually, it works great.)
I tried creating the new user with this:
$data = [
'data' => [
'attributes' => [
'username' => $user->nickname,
'email' => $user->email,
'password' => $password,
'avatarUrl' => $user->avatar,
'isEmailConfirmed' => !empty($user->email_verified_at),
]
]
];
$result = $this->api->doRequest('post',
'users',
[ 'json' => $data ]
);
All the fields work fine except avatarUrl. Any advice?