Is there any API available for copy a file from one project to another?

Hi, I want to copy a .yml file from a project to another project. Is there any API is available for doing such operations?