• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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