Pre-enrollment and Enrollment can be done online by accessing the postgraduate portal of the UPM [1]. In these pages you will find information about deadlines and calls for application and enrollment for official postgraduate courses at the UPM.
Links:
[1] https://www.upm.es/internacional/Students/StudiesDegrees/PhD%20studies