Articles in this section

Unable to run API request under additional administrator account: Can not find client by login

kb: bug ABT: Group B

If you reuse this article in your ticket, ask the customer why it is important for them to use additional admin account for API instead of built-in admin user. Forward the customer's response to @ipostnikov

Symptoms

Executing REST API request to Plesk server under additional administrator account fails:

​"message": "Can not find client by login 'johndoe'"

Cause

Plesk REST API limitation: requests cannot be executed under Plesk additional administrator accounts.

The item for improvement with ID EXTREST-87 was created to implement this functionality. 

Resolution

Until the functionality is implemented, execute the API request using built-in "admin" Plesk account instead, for example:

# curl -k -u admin:password -X POST -d @domain.json "https://203.0.113.2:8443/api/v2/domains"

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.