mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-05 15:12:32 -06:00
document the existence of torrents/categories
@@ -66,6 +66,7 @@ This Web API documentation applies qBittorrent v4.1+, for previous API version r
|
|||||||
1. [Set torrent location](#set-torrent-location)
|
1. [Set torrent location](#set-torrent-location)
|
||||||
1. [Set torrent name](#set-torrent-name)
|
1. [Set torrent name](#set-torrent-name)
|
||||||
1. [Set torrent category](#set-torrent-category)
|
1. [Set torrent category](#set-torrent-category)
|
||||||
|
1. [Get all categories](#get-all-categories)
|
||||||
1. [Add new category](#add-new-category)
|
1. [Add new category](#add-new-category)
|
||||||
1. [Edit category](#edit-category)
|
1. [Edit category](#edit-category)
|
||||||
1. [Remove categories](#remove-categories)
|
1. [Remove categories](#remove-categories)
|
||||||
@@ -2059,6 +2060,29 @@ HTTP Status Code | Scenario
|
|||||||
|
|
||||||
## Get all categories ##
|
## Get all categories ##
|
||||||
|
|
||||||
|
Name: `categories`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Returns all categories in JSON format, e.g.:
|
||||||
|
|
||||||
|
```JSON
|
||||||
|
{
|
||||||
|
"Video": {
|
||||||
|
"name": "Video",
|
||||||
|
"savePath": "/home/user/torrents/video/"
|
||||||
|
}
|
||||||
|
"eBooks": {
|
||||||
|
"name": "eBooks",
|
||||||
|
"savePath": "/home/user/torrents/eBooks/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Add new category ##
|
||||||
|
|
||||||
```http
|
```http
|
||||||
POST /api/v2/torrents/createCategory HTTP/1.1
|
POST /api/v2/torrents/createCategory HTTP/1.1
|
||||||
User-Agent: Fiddler
|
User-Agent: Fiddler
|
||||||
|
|||||||
Reference in New Issue
Block a user