edit_table
Replace an editable CSiBridge database table's entire contents: read it with get_table, edit rows, then send every row back to update the model or stage changes.
Instructions
Replace the contents of an editable database table (CSiBridge's interactive database editing).
The rows given become the table's entire contents: records left out are removed from the model. So read the table with get_table(for_editing=True), change what is needed, and send every row back. The model must be unlocked for most tables. Returns CSiBridge's import log.
Args:
table_key: The table's key, from list_tables.
fields: Field keys, in the order used by each row.
rows: The records, each a list of values in fields order or an object keyed by field.
table_version: The table_version returned by get_table(for_editing=True). Looked up if omitted.
apply: Apply the edit to the model now. With false the edit is only staged, to be
applied together with other tables by a later edit_table call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| apply | No | ||
| fields | Yes | ||
| table_key | Yes | ||
| table_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |