You need to beat the level to upload it, and I suspect it’s a clear check upload - however, separately, the game tracks first clear and world record after a level is uploaded.
My understanding is that the goal is to clear every beatable level that doesn’t have a first clear (and some that have been cleared by known hackers, but I think those are all cleared legitimately already)