We are working to address an issue with subscription email notifications. In the meantime, be sure to check your favorite boards for new topics.
How to Revise a part using Api? want a sample program
Using the same code you can Revide WTPart also.
The above code is written in WorkFlow so you may have to change it a bit in order to suit your requirement
Regards,
Kaushik