Possible to reset quota by API or http get?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Possible to reset quota by API or http get?

Post by psycik »

Subject says it all. I know how to change the quote via api, but is it possible to reset the days quota?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Possible to reset quota by API or http get?

Post by shypike »

The API call reset_quota resets the currently active quota.
So if you set a daily quota, it will reset that.
I'm not sure what you're after with this question.
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Re: Possible to reset quota by API or http get?

Post by psycik »

I had a play last night with set quota api and have it scheduled in windows.

But I was looking if there was a reset api (which I believe you've just said there is) so that I can call it from an iphone app I use that calls scheduled tasks.

And Iive just tried that out and was able to reset the quota via api. Thanks
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Possible to reset quota by API or http get?

Post by shypike »

psycik wrote:I know how to change the quote via api
I misread this part, so I assumed you knew how to REset the quota, while you meant that you already knew how to SET the quota.
My bad.
psycik
Full Member
Full Member
Posts: 108
Joined: September 28th, 2009, 2:33 pm

Re: Possible to reset quota by API or http get?

Post by psycik »

no problems, managed to figure it out. Just trying to use the quotas more and set a daily limit....but obviously be nice to override it when i need to.
Post Reply