Ploi API
Ploi API

Enable test domain

Enable a testing domain for your site

POST api/servers/{server}/sites/{id}/test-domain

Example request:

curl -X POST "{server}/sites/{id}/test-domain" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

    "data": {
        "id": 1,
        "domain": "",
        "test_domain": "",
        "full_test_domain": ""
    "message": "We have created a test domain for you, it could take 5 to 10 minutes before it works because of DNS propagation."