• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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