CloudFlare\User::update PHP Method

update() public method

Update user Update part of your user details
public update ( string | null $first_name = null, string | null $last_name = null, string | null $telephone = null, string | null $country = null, string | null $zipcode = null )
$first_name string | null User's first name
$last_name string | null User's last name
$telephone string | null User's telephone number
$country string | null The country in which the user lives. (Full list is here: http://en.wikipedia.org/wiki/List_of_country_calling_codes)
$zipcode string | null The zipcode or postal code where the user lives.
    public function update($first_name = null, $last_name = null, $telephone = null, $country = null, $zipcode = null)
    {
        $data = ['first_name' => $first_name, 'last_name' => $last_name, 'telephone' => $telephone, 'country' => $country, 'zipcode' => $zipcode];
        return $this->patch('user', $data);
    }