Enable test domain
Enable a testing domain for your site
POST api/servers/{server}/sites/{id}/test-domain
Example request:
curl -X POST "https://ploi.io/api/servers/{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": "wordpress.com",
"test_domain": "mellow-winds-034wtvtzb8.ploi.link",
"full_test_domain": "https://mellow-winds-034wtvtzb8.ploi.link"
},
"message": "We have created a test domain for you, it could take 5 to 10 minutes before it works because of DNS propagation."
}