class Attio::Task

def save(**opts)

Override save to handle task-specific attributes
def save(**opts)
  raise InvalidRequestError, "Cannot save a task without an ID" unless persisted?
  params = {
    data: changed_attributes.slice(:content, :deadline_at, :is_completed, :linked_records, :assignees).compact
  }
  return self unless params[:data].any?
  response = self.class.send(:execute_request, :PATCH, resource_path, params, opts)
  update_from(response["data"] || response)
  reset_changes!
  self
end