user_field_id and its own values
for the numeric fields listed. The original is archived. Nothing checks that
the parts add up to the original, as in the web app, so send values that do.
Call get_data_table first for the id of the user field and of the numeric
fields to split, and for its adjustment_reasons.
Statements are not recalculated by this call, just as when a record is split in
the web app. They pick the parts up at the next automatic recalculation, or
when someone refreshes them.
Requires write permission on data tables. Not available on demonstration
companies. 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 record to split — the id list_data_table_records returns.
string
required
Id of the user field that says whose each part is — the deal owner,
typically. A field of type user from get_data_table.
object[]
required
The parts, at least two: one new record per part.
string
Why the record is split — 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 records’ history.
record_id, when the record is already archived, when fewer than two parts are
passed, when user_field_id is not a user field of the table, when a part
lists a field that is not numeric or lists a field twice, or when the table
requires a reason and none from its adjustment_reasons was passed.
Example
Response
Body
Body
object
The table of the records, whose
fields header names their values in
order — the same row list_data_tables returns. See
list_data_tables for the
full field breakdown.object[]
The records created, one per part, in the order sent — the same rows
list_data_table_records returns. See
list_data_table_records
for the full field breakdown.object
The record that was split, now archived.