2026-07-08 22:33:29 +02:00
|
|
|
# `dapi asset mv <ids...> [--to <folderId>]`
|
|
|
|
|
|
|
|
|
|
Moves one or more assets into a folder. Alias: `move`.
|
|
|
|
|
|
|
|
|
|
## Input
|
|
|
|
|
|
|
|
|
|
- `<ids...>`: asset ids (required)
|
|
|
|
|
- `--to <folderId>`: destination folder (optional; omitted = the library root)
|
|
|
|
|
|
|
|
|
|
## Output
|
|
|
|
|
|
2026-07-15 12:39:25 +02:00
|
|
|
JSON Lines on stdout, one per moved asset:
|
2026-07-08 22:33:29 +02:00
|
|
|
|
|
|
|
|
```ts
|
2026-07-15 12:39:25 +02:00
|
|
|
{ id: string; folderId: string | null }
|
2026-07-08 22:33:29 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Errors
|
|
|
|
|
|
2026-07-15 12:39:25 +02:00
|
|
|
An unknown asset id, or a `--to` that doesn't resolve to a folder, fails the whole command before anything is moved.
|