maton one-drive item update
maton one-drive item update <item-id> [flags]
Update a drive item’s metadata. Pass –name to rename, –parent-id to move (sets parentReference.id), or both at once.
Options
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--dry-run - Print the request that would be sent without executing it
-q,--jq <expression>- Filter JSON output using a jq expression
-
--json - Output raw JSON
-
--name <string> - New name for the item (one of --name/--parent-id)
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--parent-id <string> - Destination parent folder ID (one of --name/--parent-id)
-t,--template <string>- Format JSON output using a Go template; see "maton help formatting"
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton one-drive item update 01ABCDEF --name renamed.pdf
$ maton one-drive item update 01ABCDEF --parent-id 01XYZ123
$ maton one-drive item update 01ABCDEF --name v2.pdf --parent-id 01XYZ123