- Plesk for Linux
Unable to run an API request due to the following error:
# curl -k -u johndoe:@password -X POST -d @domain.json "https://203.0.113.2:8443/api/v2/domains"
"message": "Can not find client by login 'johndoe'"
johndoeaccount is the additional Plesk administrator account.
There is a possibility to login to Plesk under the
johndoeaccount using the same password as in the failed API request.
API requests cannot be executed under additional Plesk administrator accounts.
It is the Plesk bug #EXTREST-87 which will be fixed in future product updates.
As a workaround, execute API request under the main Plesk administrator account:
# curl -k -u admin:@password -X POST -d @domain.json "https://203.0.113.2:8443/api/v2/domains"