Add Categories via API

Want something added? Ask for it here.
Post Reply
Devil
Newbie
Newbie
Posts: 3
Joined: March 3rd, 2020, 8:45 am

Add Categories via API

Post by Devil »

Hello,
I think it would be very usefull, to add categories via api. This is usefull, so you can manage in which directory the download goes. I am also willing to pay the dev, so he will implement it.

User avatar
safihre
Administrator
Administrator
Posts: 3658
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Add Categories via API

Post by safihre »

What exactly do you want to do? Indicate the category when adding a new NZB? This is already possible.
Or add a new Category in the Config?

Devil
Newbie
Newbie
Posts: 3
Joined: March 3rd, 2020, 8:45 am

Re: Add Categories via API

Post by Devil »

To create a new categorie via api, where I can set the download path, so I dont need to add categories by hand

User avatar
safihre
Administrator
Administrator
Posts: 3658
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Add Categories via API

Post by safihre »

This is already possible, just not very well documented.
I added it now: https://sabnzbd.org/wiki/advanced/api#set_config
See the example at "Setting Category settings".

Devil
Newbie
Newbie
Posts: 3
Joined: March 3rd, 2020, 8:45 am

Re: Add Categories via API

Post by Devil »

Please change:
Setting Category settings
api?mode=set_config§ion=categories&name=CATEGORY_NAME&dir=CATEGORY_DIR

to the right one. I dont believe, that § should be here

User avatar
jcfp
Release Testers
Release Testers
Posts: 929
Joined: February 7th, 2008, 12:45 pm

Re: Add Categories via API

Post by jcfp »

Devil wrote:
March 7th, 2020, 4:19 am
I dont believe, that § should be here
Fixed in 1b66b10.

Post Reply