• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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