Reference
willo_db_update
Update rows in one table — set the columns where every where column equals its value.
- Act
- Needs approval
- Secret scan
On this page
Update rows. ALWAYS needs a person's approval. While the business is drafting it changes the draft backend's copy of the data (a snapshot of live from when the draft began), never live, and Publish does not carry the change. To carry rows to live, use willo_execute_sql (Publish replays approved SQL) or repeat the write after publishing. With drafting off it runs on the LIVE backend. The result's [Backend: …] line says which.
Access
- Token: read + act, and editor access or higher on the business.
- Approval: Always. Every call raises a card a person approves on the dashboard.
- Secret scan: refused if the new content holds a value shaped like an API key or token.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
table | string | yes | Table name. |
set | object | yes | {column: new value}. |
where | object | yes | {column: value} — every pair must match. |