Hello,
Didn't find any info on the API doc or the forums, but is there any way to set an archive password via the API ?
Thanks !
Set archive password via API
Forum rules
Help us help you:
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.
Re: Set archive password via API
When adding an NZB, only by setting in the request the nzbname:
After it is added and in the queue, changing it is harder but possible by sending a POST request to a specific URL.
This is how it is done in Glitter:
callSpecialAPI will append the API key to the request and the send it.
The name variable is essential also.. Otherwise the password is not updated!
It will return a 303-redirect to the main page and no information about succes/failure, because there is no real API call for it but just this function that's used in the (old) skins.
Code: Select all
nzbname: "name{{password}}"This is how it is done in Glitter:
Code: Select all
callSpecialAPI("/nzb/" + NZB_id + "/save/", {
name: NZB_name,
password: $('#nzb_password').val()
})
The name variable is essential also.. Otherwise the password is not updated!
It will return a 303-redirect to the main page and no information about succes/failure, because there is no real API call for it but just this function that's used in the (old) skins.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Set archive password via API
Thank you ! I will try this.

