Jitendra,
if you change some settings inside the Management Cockpit, there will be usually a call to internal REST services which will update the database and maybe also do some other stuff. If you hook inside these calls or if you reproduce them then you can update or create objects directly by skipping the UI...
Simply open the Developer Tools in Chrome, jump to the Network tab and have a look there what happens if you create a new destination. You will see that for first creation a POST request will be sent to address https://smp3server:8083/gateway/odata/RESERVEDFORSAPIGW/REPOSITORYSERVICE/Destinations and that on subsequent changes a PUT request gets sent...