mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 05:38:06 -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 name](#set-torrent-name)
|
||||
1. [Set torrent category](#set-torrent-category)
|
||||
1. [Get all categories](#get-all-categories)
|
||||
1. [Add new category](#add-new-category)
|
||||
1. [Edit category](#edit-category)
|
||||
1. [Remove categories](#remove-categories)
|
||||
@@ -2059,6 +2060,29 @@ HTTP Status Code | Scenario
|
||||
|
||||
## 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
|
||||
POST /api/v2/torrents/createCategory HTTP/1.1
|
||||
User-Agent: Fiddler
|
||||
|
||||
Reference in New Issue
Block a user