update_bdef
Replace the complete source of an existing SAP behavior definition (BDEF), optionally activate it after writing, and use patch for small edits; unavailable on production profiles.
Instructions
Overwrite the source of an EXISTING behavior definition (BDEF). Locks, PUTs the whole new source, unlocks, then optionally activates. Refuses to run on production profiles. REPLACES the whole BDEF - read it first, edit that text, and send the complete result back. Prefer patch_bdef for small edits.
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": {
"bdefName": "<bdefName>",
"source": "<source>"
},
"name": "update_bdef"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Complete new BDEF source - REPLACES the entire definition | |
| activate | No | Activate after writing. Default false. | |
| bdefName | Yes | Behavior definition name = its root entity, e.g. ZTJI_PLANT_EMAIL | |
| transport | No | Transport request. Omit only for local/$TMP objects. |