Approve all pending dataLayer diffs for a scan
approve_all_datalayer_diffsApprove all pending dataLayer diffs for a scan (permission: edit)
Approve every approvable, non-ignored, non-regression diff of the scan, optionally scoped to one stepIndex or to the intersection named by elementKeys, into the journey baseline in one transaction. Diffs of a vendor the journey does not watch (its watched vendors) are not approved. Returns the count approved. Applies one mode to every approved presence diff. mode: required (default) makes an added event/param required and removes a missing one from the expected state; optional records it as may-or-may-not-occur.
For one diff use approve_datalayer_diff.
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": {
"id": "<id>",
"scanId": "<scanId>"
},
"name": "approve_all_datalayer_diffs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Journey id: from GET /journeys or the POST /journeys answer. | |
| mode | No | Presence diffs only (missing/extra event or param): required (default) or optional. | required |
| scanId | Yes | The scan whose diffs are approved. | |
| stepIndex | No | Approve only the diffs of this zero-based journey step; omitted: every step. | |
| elementKeys | No | Approve only diffs of these element keys, from GET /scans/{id}?include=diffs. |