WHM API1 killpkg function doesn't work
The api function killpkg[1] always results in this error:
but the pkg parameter was correctly specified like this: localhost:2086/json-api/killpkg?api.version=1&pkg=test [1]
command: killpkg
reason: There was an error when the system attempted to delete the package "": You must specify a package.
result: 0
version: 1
but the pkg parameter was correctly specified like this: localhost:2086/json-api/killpkg?api.version=1&pkg=test [1]
-
1. Which version of cPanel & WHM are you using? 2. Does the package exist on the server? 3. What is recorded in /usr/local/cpanel/logs/error_log when you call the killpkg call? 0 -
I have the exact same problem as described above. The query i'm using is: /json-api/killpkg?api.version=1&pkg=new2 The used version: WHM 11.50.0 (build 30) I have confirmed that the package is still present. The error log says: [2015-09-04 11:56:33 +0200] info [xml-api] There was an error when the system attempted to delete the package "": You must specify a package. [killpkg] version [1]. 0 -
Hi, I've verified this and reported it in case CPANEL-1378. Thanks for the report! 0 -
We got this wrong in the documentation. The parameter name should be 'pkgname', not 'pkg'. Sorry for the inconvenience; we'll get that updated ASAP. 0 -
I tried 'pkgname' as option and it works flawless now. Thanks for the help. 0
Please sign in to leave a comment.
Comments
5 comments