Adding Presets through API endpoint

Would like to know is it possible to save custom preset dynamically using a API endpoint and get the details of the preset so that I use that to fire the completion end point