addTorrent

suspend fun addTorrent(configure: AddTorrentBody.() -> Unit)

Add torrents from server local file or from URLs. http://, https://, magnet: and bc://bt/ links are supported.

To include torrents, add HTTP and magnet urls to AddTorrentBody.urls, or file paths to AddTorrentBody.torrents. Only one AddTorrentBody.urls or AddTorrentBody.torrents entry is required for the request to succeed.

Parameters

configure

A function to configure the request body with AddTorrentBody.

See also

for all available options.