This endpoint allows you to update existing rows in a specific sheet of your spreadsheet. You can either update rows based on their index or apply a filter to update matching rows.
To update by row index, provide the row number. To update using a filter, specify a filter expression that matches the rows you want to update.
{ "name": "John" }
A filter expression to select rows to update when type is set to 'filter'. For example, 'age:eq:21' to update rows where age is 21.
curl -X PATCH https://api.sheet2db.dev/v1/data/aace0271-c068-499f-bb40-83354a35eebc/contacts \ -H "Content-Type: application/json" \ -d '{ "type": "filter", "filter": "id:eq:12332", "data": { "age": 25 } }'
{ "updated": 1 }