Can you "rent out" only a room with the rest of the rooms being unoccupied? You can say you are not renting out the entire apartment, it's just that the other rooms have not been occupied.
I should have been more precise in my language.
It’s legal to rent out a room for less than 30 days in NY if the owner/tenant is also occupying the place.