Does your lease allow for subletting? If so does it state for how many subletters you are allowed?
In your case you having up to two subletters, you may be allowed for one not two.
There may be a clause addressing No STRs.
Your building may strictly forbid it, which also might be stated in your lease that you must comply with building rules.
Does your lease require renters insurance that you needed to produce to the landlord that does not cover STR subletting?
in your case it looks like you are compliant with NYC provided you do not have locks on any internal doors. Now if the landlord saw you have a lock on your bedroom for example he can reference that as a NYC homesharing violation.