PYDIO API Support to rename a file or folder

api

#1

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.


#2

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


#3

Hi

I am using pydio 6.x

Thanks


#4

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.


#5

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


#6

Hi,
on what OS is your pydio running on?


#7

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>


#8

or How to delete file ?


#9

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>

#10

Sorry . its wokring now. Rename and Delete .

Now Could you please guide me to move file … Thanks


#11

Thanks . move is also working . thanks