v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Sites

Clone a site (via background task)

Creates a new site using all the contents, plugins, themes, etc from an existing site. The site's URL will be a new temporary URL

post/v1/sites/{id}/clone

Path parameters

idinteger required

Request body

locationinteger

Which Rocket.net Point of Presence the cloned site should be created at. Use the List Site locations API to get the location ID.

restricted_locationinteger

If you have dedicated locations, you can use these by ID to add sites at those dedicated locations. (When passed, do not pass location). Use the List Site locations API to get the restricted location ID.

labelstring

Label for the cloned site

metadataSiteMetadata

Example request

{
  "label": "agencypartner1::site1::abcd",
  "metadata": {
    "key": "value"
  },
  "template_replacements": [
    {
      "key": "__contact_email__",
      "value": "hello@rocket.net"
    }
  ]
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "task_level": "account"
  }
}