fields give the ids to write, the type each
value must take, the labels a picklist accepts, and editable, false for the
fields no write can set (lookups and links to another table). Its
adjustment_reasons say whether a reason is required here.
One record per call, meant for adjustments: loading many records is an import,
done from the Qobra web app. Statements are not recalculated by this call, just
as when a record is added in the web app — they pick it up at the next automatic
recalculation, or when someone refreshes them.
Requires write permission on data tables. Available only where the Qobra write
tools beta is enabled. Every write is recorded in the audit trail as the Qobra MCP agent.
Parameters
Body
Body
string
required
Id of the data table to add the record to — the id list_data_tables
returns. Local and integration tables are both accepted.
object[]
required
The record’s cells, one per field to set. A field left out takes its
default; the name field defaults to ‘New record’.
string
Why the record is added — one of the table’s
adjustment_reasons from
get_data_table. Required only when that list is not null; omit it
otherwise.string
Optional note kept in the record’s history.
field_id is
unknown or listed twice, when a field is a lookup or a link to another table,
when a value does not match its field’s type or picklist options, or when the
table requires a reason and none from its adjustment_reasons was passed.
Example
Response
Body
Body
object
The table the record was created in, whose
fields header names the
record’s values in order — the same row list_data_tables returns. See
list_data_tables for the
full field breakdown.object
The record as it now exists — the same row list_data_table_records
returns, so the id can be reused straight away. Its
values are read in
the order of data_table.fields. See
list_data_table_records
for the full field breakdown.