Skip to main content

modifyTableCell

Modify a single cell in a table. Optionally supports compare-and-swap: if expectedValue is provided, the update only proceeds if the cell currently holds that value.

Parameter

KeyTypeDescription
namestringTable name.
indexnumberZero-based row index. Mutually exclusive with keyColumn + key.
keyColumnstringColumn to search in. Mutually exclusive with index.
keystring|numberValue to match in keyColumn. Required when keyColumn is specified.
columnstringColumn to modify.
valuestring|numberNew cell value.
expectedValuestring|numberOptional. If set, the update is only applied if the cell currently has this value.

Return value

null

Example

modifyTableCell {"name": "MyTable", "index": 0, "column": "Price", "value": "9.99"}