As part of automation, i need to version the subject scheme files in SDL. Do you have an API to create a "new version" of the file?

I want to automate the manual process of versioning the subject scheme file ie., 

We right click the required subject scheme file, create a new version (change the status from New to Draft here) and check out the file, make the required changes in the file, and check it back in (change the status from Draft to Released here).
Can you please point me to an API to perform this job?