• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is 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.

API - Parser error: Request is invalid

W

WallyB

Guest
Hi;

I'm using the API to try to create an email account for a domain on the Plesk 8.4 server; however, after following the information in the Manual, I get errcode 1014 and the above error text.

I'm following the mail create formatting precisely as described from page 669 of the manual; however it only seems to balk at certain elements:

Code:
  $redirect = $xmldoc->createElement('redirect');
  $mailname->appendChild($redirect);
  $redirect->appendChild($xmldoc->createElement('enabled', 'true'));
  $redirect->appendChild($xmldoc->createElement('address', $redirect_address));

Adding any of this to the DomDocument, although it shows a perfect XML formatted base, returns the error.

I'm using version 1.5.2.0.

Are there certain elements that are still unable to be used within 8.4 and I need to upgrade in order to access these functions?
 
A follow-up... it seems that the redirect node (as well as others) only work in a mail->update->add structure and not a mail->create... is this something that's a known problem with the API?
 
Back
Top