pydio-core icon indicating copy to clipboard operation
pydio-core copied to clipboard

Pydio delete API and move API [APIv1]

Open tdram opened this issue 7 years ago • 6 comments

Hi,

I am using Pydio 6.x.x version ( unfortunately cannot upgrade at this moment ). The API example page https://pydio.com/en/docs/developer-guide-v8/filesystem-api-v1 is not displaying the examples properly ( the site has some issues ). Please let me know the exact delete API and move API for Pydio 6.x.x version.

Thank you.

tdram avatar Aug 21 '18 08:08 tdram

Can any one help with this? The API examples site is not working.

tdram avatar Aug 22 '18 11:08 tdram

hi raamee - sorry, the team is massively on vacations during august :-) Can you post the call that you tried? Charles

cdujeu avatar Aug 26 '18 14:08 cdujeu

Hi Charles,

Ahh, ok :)

According to your API page, we need to use the following:

/workspace_alias/delete/nodes+

But I am not sure how to use that in curl command.

I tried,

curl -u $USERNAME:$PASSWORD -X DELETE "$HOST/api/$REPOSITORY/delete/testfile"

It returns,

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

I am stuck. Please help.

Thank you.

tdram avatar Aug 27 '18 04:08 tdram

Hi Charles,

Do you have any update?

tdram avatar Oct 03 '18 04:10 tdram

Hi Charles,

Do you have any update?

vclsystem avatar Oct 04 '18 08:10 vclsystem

Hi, you can delete files using the api like this : http://<pydio-uri>/api/<workspace id or alias>/delete/?file=/<file to delete>

curl -X GET -u <username>:<password> 'http://<pydio-uri>/api/<workspace id or alias>/delete/?file=/<file or folder name>'

if you are using https, add --insecure

jthabet avatar Oct 04 '18 14:10 jthabet