Move File Shares API
Request Info
Info |
Value |
Request URL |
/shares/_share_id_/folders/_folder_id_/files/_file_id_/move |
Request VERB |
PUT |
Request Parameters
Parameter |
Type |
Description |
new_parent_folder_id |
String |
The Folder ID of where you want to move the file to. |
Reponses
HTTP Status |
Descrption |
200 |
The rename was successful. The response body will be empty. |
404 |
The file was not found. The response body will be empty. |
400 |
Another error occurred. Please see the body of the response for a detailed description of the error. |
Example Request in JSON
curl -X PUT -H "Accept: application/json" -H "Content-Type: application/json" --user nkpIxMK9ucUUE7FvfNpdAf:x -d '{"new_parent_folder_id":"root"}' https://test.host/shares/project-alpha/folders/goals/files/goals-2017-docx/move