Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API v2.1.0 - torrents/setCategory 409 Conflict error for new category #9719

Closed
zfwjs opened this issue Oct 17, 2018 · 2 comments
Closed

API v2.1.0 - torrents/setCategory 409 Conflict error for new category #9719

zfwjs opened this issue Oct 17, 2018 · 2 comments
Labels
Documentation WebAPI WebAPI-related issues/changes

Comments

@zfwjs
Copy link

zfwjs commented Oct 17, 2018

Please provide the following information

qBittorrent version and Operating System

qB = v4.1.3 - Ubuntu 18.04.1 LTS Server

If on linux, libtorrent and Qt version

libtorrent= 0.13.6-2build1

What is the problem

According to the API docs here:

https://github.com/qbittorrent/qBittorrent/wiki/Web-API-Documentation#set-torrent-category

the endpoint torrents/setCategory will create a new category if the category passed doesn't exist. However, passing a new category results in a 409 Client Error: Conflict. Passing an existing category is successful.

What is the expected behavior

The preference is to add a new category if the passed category doesn't exist, as stated in the API docs. **Or correct the API docs to state the category must exist prior to calling setCategory (createCategory exists and is working, so there is a work around)

Steps to reproduce

Make API call to torrents/setCategory using a new category.

Extra info(if any)

(type here)

@glassez
Copy link
Member

glassez commented Oct 17, 2018

@Piccirello, can you look into it?

@Piccirello
Copy link
Member

This behavior was changed in PR #9228 and is reflected in WebAPI 2.1.0. I've updated the WebAPI docs to reflect this change. Thanks for reporting this @zfwjs.

@Piccirello Piccirello added Documentation WebAPI WebAPI-related issues/changes labels Oct 17, 2018
@qbittorrent qbittorrent locked and limited conversation to collaborators Feb 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation WebAPI WebAPI-related issues/changes
Projects
None yet
Development

No branches or pull requests

3 participants