Hello Guys,
I am testing the package edit API Update hosting plan as root using cURL and it shows an error message as follows:
(XID sxaa59) “_modpkg” requires a package name that you have permission to access.
Don't try to use the CLI API call, that one works just fine. It is the URL API call that shows this behavior. The package name has no "root_" prefix (and it shouldn't), do you know what is going on there?, i have seen a post from 2020 that does not help and everyone just went silent on it without an answer.
forums.cpanel.net
If anybody knows how to avoid this, workaround or fix, that would be great. I expected that the CLI call and URL call would behave the same, but here i am.
I am testing the package edit API Update hosting plan as root using cURL and it shows an error message as follows:
(XID sxaa59) “_modpkg” requires a package name that you have permission to access.
Don't try to use the CLI API call, that one works just fine. It is the URL API call that shows this behavior. The package name has no "root_" prefix (and it shouldn't), do you know what is going on there?, i have seen a post from 2020 that does not help and everyone just went silent on it without an answer.
Can not edit package via api if it not begins with root_ in name
Hi, I have root access to my server, and I want to edit packages using the WHM API, but I am having the error “_modpkg” require a package name that you have permission to access. If the package_name starts with root_ I am allowed to edit it; also, if I create a package using api, it starts...
If anybody knows how to avoid this, workaround or fix, that would be great. I expected that the CLI call and URL call would behave the same, but here i am.
Last edited by a moderator: