Create automation plan using API and amend baseline

hi ,

I have a requirement to create an automation plan using api and add the latest baseline to the newly created automation.

can this be achieved, as I am new to bigfix. Has anyone tried this before. can someone share the approach to achieve it.

regards

rajesh