Sync Api: Folder Preferences Question


flamman

Recommended Posts

The folder preference to overwrite local changes is off by default and must be manually activated.

In the API there are several options you can manage:

"search_lan":1,
"use_dht":0,
"use_hosts":0,
"use_relay_server":1,
"use_sync_trash":1,
"use_tracker":1

 

Is there an Api call available to set "overwrite changes" to 1 - so any local changes will always be overwritten by Sync?

 

That's my intended use. I need to implement "read-only" in the broadest sense and not allow (or at least immediately undo) local changes.

Link to comment
Share on other sites

  • 3 weeks later...

@flamman

Sure. See "set_folder_prefs". Here is sample request and response:

http://127.0.0.1:8888/api?method=set_folder_prefs&secret=Bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&overwrite_changes=1{ "overwrite_changes": 1, "search_lan": 1, "selective_sync": 0, "use_dht": 0, "use_hosts": 0, "use_relay_server": 1, "use_sync_trash": 1, "use_tracker": 1 }
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.