Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client API: Change Archive/Inbox and Trash state for files #393

Closed
floogulinc opened this issue Jul 19, 2020 · 1 comment
Closed

Client API: Change Archive/Inbox and Trash state for files #393

floogulinc opened this issue Jul 19, 2020 · 1 comment
Labels

Comments

@floogulinc
Copy link
Collaborator

floogulinc commented Jul 19, 2020

It would be nice to have an API endpoint to change the archive/inbox and trash states for files. This would allow for many nice things in third party client applications like mobile archive/delete filters and such. Currently such functionality requires the third party app to set a special tag on the files to archive/inbox/delete and the user has to go and manually apply those operations.

@hydrusnetwork
Copy link
Owner

I am running super late on the week, but I have added basic commands for these for 415. I don't have documentation or proper unit tests ready, but feel free to play with them:

/add_files/delete_files
/add_files/undelete_files
/add_files/archive_files
/add_files/unarchive_files

All take 'hash' or 'hashes' parameters. Delete only works to send from my files to trash atm, it doesn't do physical delete (delete from trash).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants