Controller/AccountsController.php
public function resetPassword($hash, $password)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['hash' => $hash, 'password' => $password], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/resetpassword', $parameters);

        return $result;
    }
public function resetPassword($hash, $password)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['hash' => $hash, 'password' => $password], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users/resetpassword', $parameters);

        return $result;
    }
Reset a password for a user with password reset hash.

Resets a password for a user with a valid password reset hash. Hash should be obtained through "/users/{id}/sendpasswordreset".

@param  string $hash     Valid password reset hash
@param  string $password New password
@return array