plesk Customer

/plesk-customer

POST

Add a plesk customer account.

Request parameters

name string The name for the account.
username string The username for the account (used for login)
host uuid The host on which the account should be created
email string The email for the account

Possible errors

JSON response

Sample

curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
    {
        "name": "John Smith",
        "username": "jsmith",
        "host": "3a6ca5b2-ba2b-49df-aeb3-225adcc3e8df",
        "email": "info@example.com",
    }
' \
"{{api_base_url}}/plesk-customer" | python -m json.tool

/plesk-customer-verify

GET

Verify username is valid and available.

Request parameters

username string The username to verify
host uuid The host on which the username should be verified

Possible errors

JSON response

Sample

curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/plesk-customer-verify?username=jsmith&host=3a6ca5b2-ba2b-49df-aeb3-225adcc3e8df" \
 | python -m json.tool

/plesk-customer/{id}

GET

Get detailed information for this customer.

Request parameters

N/A

JSON response

Possible errors

Sample

curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/plesk-customer/{id}" | python -m json.tool