I would consider the landlord's involvement in this decision to be an "abstraction violation." When I lease the apartment, I make a guarantee to return the apartment to you in the same condition that I received it (with a fine to be paid if I do not). It should be my choice whether to assume the risks of a subletter, temporary or long-term.
more to the point, nearly all residential leases explicitly prohibit subletting already, so regardless of city law, you are violating your lease by renting out an apartment on the short term without the landlord's permission.
The problem is, in NYC, you cannot sublet your apartment without notifying your landlord. They cannot, however, unreasonably deny the sublet. But you must notify them.