Hello, i have problem in Api.
Hello, I am testing the API and found an error:
My tests were:
- I could create a user with the api
- I could create a WebSite associate the user with the api.
and the fault appeared to me when I tried to associate a website builder webpresece I created.
I used this command:
and I get this error:
1014 Error Parser error: Request is invalid. Error in line 2: Element 'sitebuilder': This element is not expected. Expected is one of (server, customer, webspace, subdomain, dns, db_server, mail, migration, certificate, site-alias).
No because this is this, someone can help me on this?
My plesk version is 11.5.x
S.O.: linux centos
thanks for your asistence.
thanks and sorry for my english.
Hello, I am testing the API and found an error:
My tests were:
- I could create a user with the api
- I could create a WebSite associate the user with the api.
and the fault appeared to me when I tried to associate a website builder webpresece I created.
I used this command:
Code:
$ cmd = '<packet version="1.6.3.0">
<sitebuilder>
*** <assign-trial-site>
****** <pp-site-guid> cfec97b7-4c8f-8e16-xSdf-da2428d2905a </ wp-site-guid>
****** <sb-site-uuid> ad869887-d3c6-6912-5c61-833f0099b874 </ sb-site-uuid>
*** </ assign-trial-site>
</ sitebuilder>
</ packet> ';
$ curl = curlInit ($ host, $ login, $ password);
$ response = sendRequest ($ curl, $ cmd);
echo $ response;
and I get this error:
1014 Error Parser error: Request is invalid. Error in line 2: Element 'sitebuilder': This element is not expected. Expected is one of (server, customer, webspace, subdomain, dns, db_server, mail, migration, certificate, site-alias).
No because this is this, someone can help me on this?
My plesk version is 11.5.x
S.O.: linux centos
thanks for your asistence.
thanks and sorry for my english.