In certain cases, your rental agreement may be transferred to another person, but the person taking over must have been registered at the address for at least one year. Any application for transfer must be accompanied by confirmation of the registered address and proof of study. You have to lived at the same address together to be able to transfer the contract, that means you cannot transfer after subletting the apartment.
The application form for transfers