<?php
$url = 'https://yourdomain/connect/';
$ch = curl_init($url);
$data = array(
    'key' => 'Grupo Connect Secret Key',
    'do' => 'edituser',
    'changename' => 'Change Name',
    'changeusername' => 'Change Username',
    'changeemail' => '[email protected]',
    'changepass' => 'changepassword',
    'changeavatar' => 'https://imageurlgoeshere',
    'changerole' => '3',
    'cf_identifier' => 'customfieldvalue',//Check edit custom field area for custom field Identifier
    'user' => '[email protected]',//username or email address
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($ch);
curl_close($ch);
$res = json_decode($res);
if ($res->result) {
    
} else {
    return $res->error;
}
?>