update_entities
Apply up to 100 entity edits in one validated batch, with dry-run checks and sequential writes; if one operation fails, revert prior writes using the returned applyId.
Instructions
A batch of edits (PATCH) in one call — up to 100 operations in one version. Each operation is like an update_entity call: {resource, id, parentIds, body, confirmed}. First all operations are validated, and if even one fails, nothing is written. Then writes go one by one (operations on the same entity — in order); the first error stops the rest from starting. The API has no transactions: what was already written is reverted with revert_fixes by applyId from the response (confirmed: true). Edits of arrays of objects (fields: [...]) can't be reverted — the "before" state of such operations is kept only in the audit log. For bulk field edits use scalar bodies per field (resource "actions/fields"), not arrays: those can be reverted. dryRun: true — validation only.
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": {
"appId": "<appId>",
"versionId": "<versionId>",
"ops": "<ops>"
},
"name": "update_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Operations: [{resource, id, parentIds, body, confirmed}] | |
| appId | Yes | App ID | |
| dryRun | No | Only validate all operations, write nothing | |
| versionId | Yes | Version ID, shared by all operations |