Clone site

Clone a site to another server.


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

Clone site

This endpoint allows you to clone a site to another server.

Required parameters

  • Name
    clone_to_server
    Type
    integer
    Description

    The ID of the server to clone the site to. Must be a server you own.

Optional parameters

  • Name
    domain
    Type
    string
    Description

    A different domain name for the cloned site.

Request

POST
/api/servers/{server}/sites/{site}/clone
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" \
  -d '{
    "domain": "test.com",
    "clone_to_server": 2
  }'

Response

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