Rename File Shares API
Request Info
Info |
Value |
Request URL |
/shares/_share_id_/folders/_folder_id_/files/_file_id_/rename |
Request VERB |
PUT |
Request Parameters
Parameter |
Type |
Description |
new_name |
String |
The new name of the file. |
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_name":"Some New Name.ext"}' https://test.host/shares/project-alpha/folders/goals/files/goals-2017-docx/rename