Commit ingestion batch
commit_ingestion_batchCommit the selected proposals from the batch's MERGED review onto the gig — WRITES live data. Always call list_ingestion_batches with batch_id and view=review first; merge_version must match. Pass the rows to commit as selected: their UEF 2.0 document paths in the review's proposals ($.events[0].days[d].run_of_show[c], $.events[0].shifts[s].crew[k], $.events[0].ledger_items[i], $.leads[l]). To also save song requests, guests, contacts, show facts, key times or tasks, pass files with each file's packet_selected paths from get_ingestion_file_review. When the batch has no merged review (merge_status NONE, e.g. batch merge is off), omit merge_version and selected and pass files with each file's selected and packet_selected: the files are committed one at a time in upload order. Confirmation-gated.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_id": "<event_id>",
"batch_id": "<batch_id>"
},
"name": "commit_ingestion_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | per-file rows by file id. With a merged review, only packet_selected applies (written after the merged rows). With no merged review (merge_status NONE), each listed file is committed in upload order like commit_ingestion_file; files already committed are skipped, so a retry is safe. | |
| batch_id | Yes | the ingestion batch id, from create_ingestion_batch or list_ingestion_batches | |
| event_id | Yes | the gig the ingestion batch belongs to, an id from list_events, open_gigs or my_agenda | |
| selected | No | UEF 2.0 document paths of the review's proposal rows to commit, e.g. $.events[0].days[1].run_of_show[2], $.events[0].shifts[3].crew[0], $.events[0].ledger_items[4], $.leads[1]. Paths index the review's proposals (or edited_uef_json when sent); a path that names no row is a 400. | |
| merge_version | No | the merge_version from list_ingestion_batches (batch_id, view=review) — the commit is rejected (409) if a re-merge happened since you reviewed. Omit only when the batch has no merged review (merge_status NONE) and you pass files. | |
| edited_uef_json | No | optional corrected UEF document as a JSON string; selected paths name rows in it | |
| organization_id | No | defaults to caller's active org — pass explicitly if the event belongs to a different org | |
| event_field_keys | No | event-level fields to overwrite from the merged proposal: 'venue' and/or 'location'. Omit to write NO event fields. | |
| confirmation_token | No | leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { batch { event_id, files, id, merge_commit_result, merge_error, merge_status, merge_version, merged_proposal_counts, and 2 more fields }, file_results [{ error, file_id, result, status }], result { duplicate_rows, error_rows, errors, failed_rows, finished_at, load_commit_id, provenance_recorded, new_acts, and 67 more fields } } } | |
| error | No | when ok is false |