public function updateRecords($id, $data, $params = [], $options = [])
    {
        if (is_array($data) && count($data['records']) > 1) {
            // Version 4 is mandatory for updating multiple records.
            $params['version'] = 4;
        } else {
            if (empty($id)) {
                throw new \InvalidArgumentException('Record Id is required and cannot be empty.');
            }
            $params['id'] = $id;
        }

        return $this->call('updateRecords', $params, $data, $options);
    }