PYDIO API Support to rename a file or folder

Hi ,

We are using PYDIO File System V1 . how to rename the file or folder . I tried with below

https://pydio.com/api/myfiles/rename?file=file1.config&filename_new=file2.config

its not working .

Please help me on this.

Hi,
could you tell me if you are using pydio 8 or pydio cells ?

Hi

I am using pydio 6.x

Thanks

Hi,
this php request allows you to modify the filenames,
php cmd.php -u=<user> -p=<password> -r=<workspacename> -a=rename --file='/filename' --filename_new='/newfilename'

the cmd.php is located in your <pydio>/cmd.php,
i will take a look to see how you can do a web request for that.

Hi

already I have tried the same . but it snot working. i am using powershell.

Invoke-WebRequest “https://zzzz.pydio.com/api/e01ead95195ba035d8af56378bc55de7/rename?file=/NewFolder/Web.config&filename_new=/NewFolder/Web2.config” -Method Post -Credential $credential

Thanks

Hi,
on what OS is your pydio running on?

Here’s how i renamed the file with an http request,

http://<pydio-uri>/api/<workspace id or alias>/rename/?file=/<targetedfile>&filename_new=<newname>

or How to delete file ?

Invoke-WebRequest “https://pydio-uri/api/workspace id or alias;/delete/?nodes[]=/bbb3.docx” -Method Delete -Credential $credential

I am getting

<?xml version="1.0" encoding="UTF-8"?>The selection is empty!
                : - catchException(AJXP_Exception)
                </message></tree>

Sorry . its wokring now. Rename and Delete .

Now Could you please guide me to move file … Thanks

Thanks . move is also working . thanks