Replies: 1 comment
-
To answer my own question, apparently deleteFiles is a mandatory parameter, so once I added it, it worked: hashes=dd5ac8f019a0b4c6252cb85de0f24c5149d64aa0&deleteFiles=true HTTP/1.1 200 OK |
Beta Was this translation helpful? Give feedback.
-
I have tried to adjust my code from using Get to using Post to delete torrents, but I keep on getting Bad Request with no information on what is wrong. I have posted the request and response below, can anyone point me in the right direction?
POST /api/v2/torrents/delete HTTP/1.1
user-agent: got (https://github.com/sindresorhus/got)
cookie: SID=Prt8TQEl1Qnyy0J5YKzqk5haGWxxF+XE
Content-Length: 47
Content-type: application/x-www-form-urlencoded
Host: qbittorrent:8112
Connection: keep-alive
hashes=dd5ac8f019a0b4c6252cb85de0f24c5149d64aa0
HTTP/1.1 400 Bad Request
connection: keep-alive
content-length: 11
content-security-policy: default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; object-src 'none'; form-action 'self'; frame-ancestors 'self';
content-type: text/plain; charset=UTF-8
cross-origin-opener-policy: same-origin
date: Wed, 22 Nov 2023 09:12:46 GMT
referrer-policy: same-origin
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
Bad Request
Beta Was this translation helpful? Give feedback.
All reactions