Rename folder

PATCH {{api-server}}/:token/{{api-version}}/folders/:folder_uuid

This API is used to rename a folder using the UUID of the folder.

Body attributes

AttributeDescriptionTypeRequired
nameNew name of the folderstringYes

Request Body

{"name"=>"name-changed"}

HEADERS

KeyDatatypeRequiredDescription
X-Filerobot-KeystringFilerobot API key
Content-Typestring

RESPONSES

status: OK

{"status":"success","action":"folder_renamed","folder_uuid":"427937a1-f141-53bc-92c4-e6a0956e61c9","folder":{"uuid":"427937a1-f141-53bc-92c4-e6a0956e61c9","path":"/api-demo/name-changed","name":"name-changed","meta":{},"visibility":{"in_dam":{"set":"inherited","actual":"all_organisation"},"in_cdn":{"set":"inherited","actual":"not_public"}},"updated_at":"2023-07-26T05:06:28Z","created_at":"2023-07-26T04:50:12Z","count":{"files_recursive":0,"files_direct":0},"size":{"total_recursive_bytes":0,"total_recursive_pretty":"0 B"},"public_icon":"https://scaleflex.cloudimg.io/crop/300x300/x/http://www.airstore.io/assets/dir.png"},"api_version":{"hash":"ed8718a742085aed68a46b4a95c50ac0a1d0d1ae","datetime":"2023-07-18T11:26:26+07:00"}}