@AdarshPandey-2727 The upload functionality from the UI is actually using the file and the import API but it is also internally using the export API to export the project and appending the file selected in the import API request. This effectively is editing the data although the project is just being overwritten.
So, for example, if we have a project with 20 intents and 100 utterances, to programmatically add 200 more utterances:
- Export JSON
- Edit JSON to append 200 more utterances
- Import JSON again, then same project will now have 20 intents and 300 utterances.
I hope this helps!!
If an answer is helpful, please click on or upvote which might help other community members reading this thread.