Page 1 of 1

Add Categories via API

Posted: March 3rd, 2020, 8:52 am
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.

Re: Add Categories via API

Posted: March 3rd, 2020, 2:21 pm
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?

Re: Add Categories via API

Posted: March 4th, 2020, 5:33 am
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

Re: Add Categories via API

Posted: March 6th, 2020, 8:49 am
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".

Re: Add Categories via API

Posted: March 7th, 2020, 4:19 am
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

Re: Add Categories via API

Posted: March 8th, 2020, 12:18 pm
by jcfp
Devil wrote:
March 7th, 2020, 4:19 am
I dont believe, that § should be here
Fixed in 1b66b10.