Rename or move a file
Files
Rename or move a file
POST
Rename or move a file
Authorizations
API key passed as Bearer token
Path Parameters
Machine ID (e.g. mch_a1b2c3d4)
Body
application/json
Source machine path. Relative paths resolve using the same filesystem contract as PathRequest.path.
Destination machine path. Relative paths resolve using the same filesystem contract as PathRequest.path.
Optional machine user for relative-path resolution and ownership.
Response
200 - application/json
Renamed file metadata
Absolute resolved filesystem path. For machine routes this is an absolute machine path; for volume routes this is an absolute volume-internal path rooted at /.
Entry type (e.g. "file", "directory", "symlink")
Example:
"file"
Example:
"0644"
Example:
"0644"