Hi @Simranjeet Singh ,
After talking to the product team it looks like there is no API that does all the work of import, as we do some KV permission checking/setting. However, you can use the create or update call, with the proper parameters:
You would need to set the keyvault secret name, keyvault id, and serverfarm to be the ones of the site you wish to import the certificate to. A sample body can be seen in this article
Hope that helps.
Best,
Grace