Apply Approved UniFi Change
unifi_apply_changeApplies a previewed UniFi change or batch with the owner's one-time approval code, verifies each target, reports what changed, and returns rollback data.
Instructions
Applies the previewed change or batch with the owner's one-time approval code, then reads each target back and reports what changed. A batch applies in order and stops at the first change that does not apply; status partial lists results and what was not attempted. Refuses unapproved, mismatched, expired, reused, and stale approvals. Use the returned rollback to undo.
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": {
"changeId": "<changeId>",
"approvalCode": "<approvalCode>"
},
"name": "unifi_apply_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changeId | Yes | ||
| approvalCode | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| status | Yes | ||
| target | Yes | ||
| verified | Yes | ||
| operationId | Yes |