Tsarr Documentation - v2.11.0
    Preparing search index...

    Type Alias TorrentsAddPostData

    type TorrentsAddPostData = {
        body: AddTorrentsUrls | AddTorrentsFiles;
        path?: never;
        query?: never;
        url: "/torrents/add";
    }
    Index

    Properties

    Properties

    Add torrent from URLs example:

    POST /api/v2/torrents/add HTTP/1.1
    User-Agent: Fiddler
    Host: 127.0.0.1
    Cookie: SID=your_sid
    Content-Type: multipart/form-data; boundary=---------------------------6688794727912
    Content-Length: length

    -----------------------------6688794727912
    Content-Disposition: form-data; name="urls"

    https://torcache.net/torrent/3B1A1469C180F447B77021074DBBCCAEF62611E7.torrent
    https://torcache.net/torrent/3B1A1469C180F447B77021074DBBCCAEF62611E8.torrent
    -----------------------------6688794727912
    Content-Disposition: form-data; name="savepath"

    C:/Users/qBit/Downloads
    -----------------------------6688794727912
    Content-Disposition: form-data; name="cookie"

    ui=28979218048197
    -----------------------------6688794727912
    Content-Disposition: form-data; name="category"

    movies
    -----------------------------6688794727912
    Content-Disposition: form-data; name="skip_checking"

    true
    -----------------------------6688794727912
    Content-Disposition: form-data; name="paused"

    true
    -----------------------------6688794727912
    Content-Disposition: form-data; name="root_folder"

    true
    -----------------------------6688794727912--

    Add torrents from files example:

    POST /api/v2/torrents/add HTTP/1.1
    Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468
    User-Agent: Fiddler
    Host: 127.0.0.1
    Cookie: SID=your_sid
    Content-Length: length

    ---------------------------acebdf13572468
    Content-Disposition: form-data; name="torrents"; filename="8f18036b7a205c9347cb84a253975e12f7adddf2.torrent"
    Content-Type: application/x-bittorrent

    file_binary_data_goes_here
    ---------------------------acebdf13572468
    Content-Disposition: form-data; name="torrents"; filename="UFS.torrent"
    Content-Type: application/x-bittorrent

    file_binary_data_goes_here
    ---------------------------acebdf13572468--

    The above example will add two torrent files. file_binary_data_goes_here represents raw data of torrent file (basically a byte array).

    path?: never
    query?: never
    url: "/torrents/add"