• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Plesk API - Invalid request after Plesk upgrade

LudovicB

New Pleskian
Hello,

My plesk version was recently updated from 9.0 (probably, i'm not sure) to 9.2. I'm using Plesk API to create clients accounts and domains accounts. 90% of request that were used with the old version of plesk are still functionning, but when I try to add a domain with physical hosting, I get this error : 1014 - Parser error : request is invalid.

Here is my XML code :

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.4.2.0">
<domain>
<add>
<gen_setup>
<name>domainname.ch</name>
<ip_address>94.23.20.150</ip_address>
<status>0</status>
<client_id>34</client_id>
<htype>vrt_hst</htype>
</gen_setup>
<template-name>CJ_Test</template-name>
<hosting>
<vrt_hst>
<ftp_login>domainname.com</ftp_login>
<ftp_password>password</ftp_password>
<ip_address>94.23.20.150</ip_address>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>

Any idea ?? And if I try to remove the "hosting" block and the "htype" line, like this :

<packet version="1.4.2.0">
<domain>
<add>
<gen_setup>
<name>domainname.ch</name>
<ip_address>94.23.20.150</ip_address>
<status>0</status>
<client_id>34</client_id>
</gen_setup>
<template-name>CJ_Test</template-name>
</add>
</domain>
</packet>

Everything works well... but my "hosting" block is exactly like in the doc (http://download1.swsoft.com/Plesk/Plesk8.1/Doc/plesk-8.1-api-rpc/33872.htm)...

Thanx a lot,
Ludovic Barman.
 
Try to use much more fresh Plesk API documentation than mentioned for 8.x versions. You can find it here.
I hope it will help.
 
Back
Top