Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

setfolderpref

Mark Johnson edited this page Sep 15, 2013 · 1 revision

Change preferences for a synced folder

Request Parameters

  • action setfolderpref
  • token Your current token (see Session Initalisation)
  • t The current timestamp (optional)
  • deletetotrash Store deleted files in SyncArchive? (1 for yes, 0 for no)
  • secret The secret for the folder
  • relay Use relay server when required (1 for yes, 0 for no)
  • searchdht Search DHT network for peers? (1 for yes, 0 for no)
  • searchlan Search LAN for peers? (1 for yes, 0 for no)
  • usehosts Use predefined hosts? (1 for yes, 0 for no)
  • usetracker Use tracker server? (1 for yes, 0 for no)

returns

JSON string containing an empty object

example

GET http://localhost:8888/gui/?token=ToKeNStRinG&action=setfolderpref&name=/home/me/btsync&secret=SeCReTStrING&relay=1&usetracker=1&searchlan=1&searchdht=0&deletetotrash=1&usehosts=0&t=1379276577271

Clone this wiki locally