• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Plesk Rest API Error 500 (Create User)

BenjaminK

New Pleskian
Hey,

I am currently working on the automation of a system and want to have a user created via API.
Using Swagger to test the endpoints resulted in an error that I could not explain. The endpoint throws back a 500 Internal Error Code with the following content:

{
"code": 1002,
"message": ""
}

According to the documentation, this error deals with the attempt to create users multiple times, which is clearly not the case here.

Here again the whole request as CURL:

curl -X POST "myplesklink.com" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"id\": 1000, \"created\": \"2016-11-13\", \"name\" \"John Smith\", \"company\": \"Plesk\", \"login\": \"john-unit-test\", \"status\": 0, \"email\": \"[email protected]\", \"locale\": \"en-US\", \"guid\": \"18b78dd1-2b43-44f7-9599-56ccb56a85dc\", \"owner_login\": \"admin\", \"external_id\" \"link:12345\", \"description\": \"nice guy\", \"password\": \"setup\", \"type\": \"reseller\"}

You will also find the system data here:

{
"platform": "Unix",
"hostname": "myplesklink.com",
"guid": "some uuid",
"panel_version": "18.0.26",
"panel_revision": "f01f47b9bea31b4186ff330d137e1aea57bb084a",
"panel_build_date": "2020-04-10",
"panel_update_version": "0",
"extension_version": "1.4.2",
"extension_release": "142"
}

Many thanks in advance!
 
From the error code it seems to be the password that is not complex enough (you need to give a password that complies with the requirements set by policy)
 
Back
Top