move_resource
Move a resource to a new parent group while preserving its uniqueID and existing assignments.
Instructions
Reparent a resource without changing its uniqueID.
Wraps the omniJS resource.move(newParent, index) method introduced
in OmniPlan 4.10.3 (build v232.5.9, 2026-05-06). Both omniJS args
are required at the API level; this tool fills in index with
newParent.members.length (append at end) when omitted.
Because uniqueID is preserved across the move, assignments that reference the moved resource stay intact — no clone-and-rebuild.
Args:
resource_id: uniqueID of the resource to move.
new_parent_id: uniqueID of the destination group resource. If
omitted, the resource is moved under the document's
rootResource.
index: 0-based position in new_parent.members. If omitted,
appended at the end.
Returns:
JSON {moved: true, id, new_parent_id, index} where id is
the unchanged uniqueID and new_parent_id is the resolved
parent's uniqueID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_id | Yes | ||
| new_parent_id | No | ||
| index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |