Move File to Folder
Move File to Folder
Moves a file from its current folder to another folder.
Method: POST
URL: {{base_url}}/files/{{file_id}}/move
Authentication
This endpoint requires authentication.
- Recommended: Bearer token in the
Authorizationheader:
Notes:
-
If your collection/folder already sets auth, this request can inherit auth.
-
Ensure
{{access_token}}is a valid, non-expired token.
Required variables
Set these variables at the environment or collection level:
Path Parameters
Example request URL:
Body (raw JSON)
Send the request body as raw JSON.
Example body:
Notes:
-
The file will be removed from its current folder and assigned to the new folder.
-
The
folder_idmust belong to a folder that exists and is accessible to the authenticated user.
Sample request
Sample success response
A successful request typically returns HTTP 200 OK.
Common errors
-
400 Bad Request
-
Missing
folder_id -
Invalid folder ID provided
-
-
401 Unauthorized / 403 Forbidden
-
Missing/invalid
Authorizationheader -
Expired
{{access_token}}
-
-
404 Not Found
-
File with the given
file_iddoes not exist -
Destination folder does not exist
-
Notes
-
This endpoint moves a file between folders without changing the file itself.
-
The file’s metadata and URL remain unchanged.
-
Only the
folder_idassociation is updated.
