Pathrule Update Rule
pathrule_update_ruleUpdate a rule's name, content, scope, priority, or move its path. Uses optimistic concurrency to avoid overwriting concurrent changes.
Instructions
Update a rule's fields and/or path. Optimistic concurrency via expected_version_id. Cloud-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | Workspace UUID from pathrule_list_workspaces. | |
| rule_id | Yes | Rule UUID returned by pathrule_get_context, pathrule_goto, or pathrule_read_rule. | |
| expected_version_id | No | Optional optimistic-concurrency token from the existing record. Pass it when available to avoid overwriting a newer edit. | |
| patch | Yes | ||
| move_to_path | No | Optional workspace-relative destination path such as /packages/app. Missing nodes are created when allowed by the backend. | |
| allow_duplicate | No | Set true only when intentionally allowing another rule with the same name. |