Working with the coda-js wrapper for the API.
I want to update a specific cell, and I know the docId, tableId, rowId, and columnId in question. The examples I’ve found seem to require getting the whole row’s cells, and then writing them back again via the API with any changes included. Is this necessary, or can I just specify a new value for a single cell? Something like:
coda.updateRow( docId, tableId, rowId, {columnId: value} );
Edit: Had a different error that was causing the above not to work. In fact, it it precisely the correct way to do it Will leave here in case helpful for others.
Further edit: if you prefer, you can also go do an array of objects like this:
coda.updateRow( docId, tableId, rowId, [
{column: 'id or name', value: 'value'},
{column: 'another id', value: 'another value'}
]);