Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 574 Bytes

File metadata and controls

20 lines (12 loc) · 574 Bytes

dapi folder mv <ids...> [--to <folderId>]

Moves one or more folders under a new parent. A folder cannot be moved into itself or any of its descendants; such a move fails the command. Alias: move.

Input

  • <ids...>: folder ids (required)
  • --to <folderId>: destination parent folder (optional; omitted = the library root)

Output

JSON Lines on stdout, one per moved folder:

{ id: string; parentId: string | null }

Errors

An unknown id, a cycle, or a --to that doesn't resolve to a folder fails the whole command before anything is moved.