create_entities
Create up to 100 linked Albato Builder entities in one ordered batch, validate with dryRun, and roll back created records if any write fails.
Instructions
A batch of creations (POST) in one call — up to 100 operations in one version: items of a fixed list, fields, set mappings, several actions. An operation is like a create_entity call: {resource, parentIds, body}. They are written strictly in order (the order also sets positions), and an operation may reference an ID created earlier in the same batch: the string "$N" in parentIds or body is the ID from operation N (1-based). This way a list and its items are created in one call: [{resource: "enums", body}, {resource: "enums/items", parentIds: {enumId: "$1"}, body}]. First all operations are validated: those without references — fully, those with references — against the schema (builder rules for them — right before the write), and if even one fails, nothing is written. The first write error stops the batch; what was created is deleted with revert_fixes by applyId (confirmed: true), in reverse order. An operation's pick — which fields of the created entity to return (["fields.code"] — the action's field IDs); without it — only id. dryRun: true — validation only. Submitting for moderation and versions — not here.
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": "create_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Operations in order: [{resource, parentIds, body, pick}] | |
| appId | Yes | App ID | |
| dryRun | No | Only validate all operations, create nothing | |
| versionId | Yes | Version ID, shared by all operations |