file
Move
Moves, renames, or copies a file or directory.
Path parameter
- source: the path to the file/directory to be moved/renamed/copied relative to the user data root (no default value)
Query parameters
- destination: the path to the destination file/directory (no default value)
- option: controls the behavior of the API
- default (None): moves or renames a file or directory. If the same file/directory already exists in the destination, the API behavior follows the behavior of Linux file systems. Returns a Content Pydantic object containing information on the destination file/directory
- “copy”: copies a file or directory. destination should be a directory. If the same file/directory already exists in the destination, the copied file/directory will be automatically renamed. Returns a Content Pydantic object containing information on the destination file/directory
PATCH
/
fm
/
api
/
v1
/
contents
/
{source}
Authorizations
Enter: 'Bearer <JWT>', where JWT is the access token. Example: Bearer access_token_comes_here