haops_update_role_template
Publish a new version of an existing role template, updating only supplied fields with transactional versioning and optional cascade to rewire pinned project protocols.
Instructions
Publish a new version of an existing role template (admin-only, requires composed-protocols feature flag). The server flips the current row to isCurrent=false and inserts a new row at version+1, transactionally. Only supply fields you want to change — a no-op call (no diff) returns the current row unchanged with version untouched. name and isSystem are immutable post-create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Kebab-case name of the template to update (path identifier). | |
| cascade | No | When true, atomically re-wires all project protocols pinned to the current template UUID to the NEW UUID in the same DB transaction. Recommended for any system template bump. Default: false. | |
| verbose | No | If true, return the full API response instead of the compact summary (default: false) | |
| baseBody | No | Optional. New verbatim markdown — must be non-empty when supplied. | |
| baseRole | No | Optional. New base role bucket. | |
| description | No | Optional. New short description. Pass null to clear. | |
| defaultSkills | No | Optional. Replacement bundle of skill references (full set, not a diff). UUIDs must reference current, non-deprecated skills. |