Move method
A move method is an operation that relocates an existing resource or item to a different location or parent while preserving its identity.
API Design Patterns
Resource moving is the relocation of an API resource so that it belongs to a different parent or location.
- How it is used
- Relocates or renames resources through a custom API method instead of standard update or create operations.
- How deep it goes
- Explains request fields, identifier policy, child resources, references, external data, metadata, and transactional atomicity.
- Examples
- Uses MoveMessageRequest, chat-room message paths, destination identifiers, and top-level-resource applicability as concrete examples.
- What you can do after
- Operate/configure a custom move method with explicit identifiers, relationship handling, external-data policy, and feasible atomicity.
Build a Frontend Web Framework (From Scratch)
A move operation represents relocating an existing array item to a different position while preserving its original index.
- How it is used
- Represents repositioning an existing child while diffing virtual-node arrays into operations for DOM patching.
- How deep it goes
- Defines the operation's fields, works through index changes, and implements moving items while preserving original indices.
- Examples
- Uses array transformations, including `[A, B, C]` to `[C, B, D]`, and a step-by-step example with duplicate items.
- What you can do after
- Build it from scratch in JavaScript by emitting move operations and updating parallel item and original-index arrays.
Read how Build a Frontend Web Framework (From Scratch) explains move method →
Related concepts
- pipelinepart of · A pipeline is an ordered or coordinated sequence of connected processing stages or tasks that passes data, work, or results toward an outcome.
- copycontrasts with · Copying is the creation of a separate representation of an existing value, object, or data, preserving some or all of its contents or state.
- reconciliationproduced by · Reconciliation is the process of comparing related states, records, or outputs to identify differences and, when needed, resolve them or bring them into agreement.
- custom methodkind of · A custom method is a user-defined operation or capability added to an interface to provide behavior beyond its predefined functionality.
- parent elementuses · A parent element is an entity directly above another entity in a hierarchy, with the latter being its child.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

