WebAPI_Changelog.md
app/getFreeSpaceAtPathAction endpoint with path as parameter returning the free space at the given pathapp/processInfo endpoint returning launch_time (process launch time as UTC epoch seconds)sync/torrentPeers endpoint now includes peer host_name when peer host name resolution is enabledtorrents/pieceAvailability endpoint for retrieving availability of each torrent piecetorrents/properties endpoint now includes the number of distributed copies of the torrent's selected files via availability fieldtorrents/editCategory endpoint will not throw an error when editing category without changestorrents/editCategory endpoint will throw a "Not Found" (404) error when editing category that does not existsync/maindata endpoint no longer includes the key use_subcategories as subcategories are now always enabledapp/rotateAPIKey endpoint for generating, and rotating, the WebAPI API keyapp/deleteAPIKey endpoint for deleting the existing WebAPI API keyauth/login endpoint responds to invalid credentials with a 401torrents/add endpoint responds with success_count, pending_count, failure_count, and added_torrent_ids
pending_count is non-zero, response code 202 is usedtorrents/add endpoint now supports downloading from a search plugin via the downloader parametertorrents/fetchMetadata endpoint now supports fetching from a search plugin via the downloader parameterclientdata/load and clientdata/store endpoints for managing WebUI-specific client settings and other shared datatorrents/trackers returns three new fields: next_announce, min_announce and endpoints
endpoints is an array of tracker endpoints, each with name, updating, status, msg, bt_version, num_peers, num_peers, num_leeches, num_downloaded, next_announce and min_announce fieldstorrents/trackers now returns 5 and 6 in status field as possible values5 for Tracker error and 6 for Unreachabletorrents/editTracker endpoint now supports setting a tracker's tier via tier parametertorrents/editTracker endpoint always responds with a 204 when successfultorrents/editTracker endpoint origUrl parameter renamed to urlsync/torrentPeers returns one new field: i2p_dest, only when the peer is from I2P
ip and port are not returnedtorrents/parseMetadata now responds with an array of metadata in the same order as the files in the request. It previously responded with an object keyed off of the submitted file name.torrents/setComment endpoint with parameters hashes and comment for setting a new torrent commentsync/maindata returns one new field: share_limit_actiontorrents/setShareLimits now requires a new shareLimitAction param that sets a torrent's shareLimitAction property
Default, Stop, Remove, RemoveWithContent and EnableSuperSeedingtorrents/categories and sync/maindata now serialize categories' downloadPath to null, rather than undefinedtorrents/reannounce supports specifying individual trackers via trackers fieldtorrents/fetchMetadata endpoint for retrieving torrent metadata associated with a URLtorrents/parseMetadata endpoint for retrieving torrent metadata associated with a .torrent filetorrents/saveMetadata endpoint for saving retrieved torrent metadata to a .torrent filetorrents/add allows adding a torrent with metadata previously retrieved via torrents/fetchMetadata or torrents/parseMetadatatorrents/add allows specifying a torrent's file prioritiestorrents/addTrackers and torrents/removeTrackers now accept hash=all and adds/removes the tracker to/from all torrents
torrents/removeTrackers still accepts hash=* internally we transform it into all|) separated list of hashes in hash for torrents/addTrackers and torrents/removeTrackers204 No Content status code when response contains no data
200 OK to ensure smooth transitiontorrents/info allows an optional parameter includeFiles that defaults to false
files which will list all files similar to the torrents/files endpointapp/getDirectoryContent allows an optional parameter withMetadata to send file metadata
name, type, size, creation_date, last_access_date, last_modification_datesync/maindata returns 3 new torrent fields: has_tracker_warning, has_tracker_error, has_other_announce_errorapp/setPreferences allows only one of max_ratio_enabled, max_ratio to be presentapp/setPreferences allows only one of max_seeding_time_enabled, max_seeding_time to be presentapp/setPreferences allows only one of max_inactive_seeding_time_enabled, max_inactive_seeding_time to be present