Skip to main content
POST
/
v1
/
sites
/
{siteId}
/
duplicate
Duplicate Site
curl --request POST \
  --url https://8511e6e5e351.ngrok-free.app/v1/sites/{siteId}/duplicate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Hearth Furniture Duplicate"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Hearth Furniture Company",
  "hostUrl": "https://hearthfurniture.com",
  "apiKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

The API key for the App (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

Path Parameters

siteId
string<uuid>
required

The ID of the site to duplicate

Example:

"123e4567-e89b-12d3-a456-426614174000"

Body

application/json
name
string

The name for the new duplicated site

Example:

"Hearth Furniture Duplicate"

Response

201 - application/json

The newly created duplicated site with all content and configuration copied from the original

id
string<uuid>
required
name
string
required

The name of the site

Example:

"Hearth Furniture Company"

hostUrl
null
required

The host URL of the site. The URL should consist of only the origin.

Example:

"https://hearthfurniture.com"

apiKey
string<uuid>
required