Ploi API
Ploi API

Clone site

Clones a site in your server.

POST api/servers/{server}/sites/{site}/clone

Parameters

Parameter Type Status Description
clone_to_server numeric required Should be a ID from a server you want to clone it too, it should be a server you own
domain string optional If you want, you can name the domain differently

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/sites/{site}/clone" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
   --data '{"domain": "test.com", "clone_to_server": 2}'

Example response:

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

{
    "status": "ok",
    "message": "Site test.com is being cloned"
}