• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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