user APIs
Rename a directory. Deprecated, use "file-actions/move"
Rename a directory for the logged in user. The rename is allowed for empty directory or for non empty local directories, with no virtual folders inside
patch/user/dirs
Request
- Base URL/api/v2 (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- HTTP bearer
- or API key in header X-SFTPGO-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pathstring required
Path to the folder to rename. It must be URL encoded, for example the path "my dir/àdir" must be sent as "my%20dir%2F%C3%A0dir"
targetstring required
New name. It must be URL encoded, for example the path "my dir/àdir" must be sent as "my%20dir%2F%C3%A0dir"
Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.