pagehive

update_row

Update part of a row.

TablesChanges dataAll plans

What it does

Update part of a row. Null clears a column. This does not create a page version. The row's revision goes up when its values change, so a visitor edit drawn from the old revision is refused with a conflict.

Plans

Works on every plan: Free, Basic, Pro and Ultra.

Parameters

NameTypeAbout
namerequiredstringThe table.
idrequiredstringThe row's id.
rowrequiredobjectThe columns to change. Columns you leave out keep their value; null clears one.
site_idstringOnly for a site shared with you (whoami lists them): read or change that site's data as its member.

Example

Call update_row with these arguments:

{
  "name": "recipes",
  "id": "01a1…",
  "row": {
    "minutes": 30
  }
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides