Either the query parameter hash or remote must be given