I'm trying to append data to a JSON file in a github repository using Github REST API calls. These rest calls are executed using Postman and for each Postman request, a new line should be added to the existing JSON file. However, I managed to retrieve the whole file content from the git repository (using GET request) and send a new PUT request with the updated file content.
Is there any way to update the existing file in the git repository without retrieving and updating it each time?. Even if I can use some sort of metadata file, that would be fine in my case.
References: https://docs.github.com/en/rest/reference/repos#create-or-update-file-contents