API-like CRUD operations using Google Apps Script and Google Sheets
Due to the lack of support for doPut() and doDelete() in GAS, the doPost() function is designed to handle all three operations (CREATE, UPDATE, DELETE).
For more details, refer to: https://developers.google.com/apps-script/guides/web