Clone a page
curl --request POST \
--url https://api.hubapi.com/content/api/v2/pages/{page_id}/clone \
--header 'Content-Type: application/json' \
--data '
{
"name": "Cloned Industry Page",
"slug": "industry-cloned"
}
'import requests
url = "https://api.hubapi.com/content/api/v2/pages/{page_id}/clone"
payload = {
"name": "Cloned Industry Page",
"slug": "industry-cloned"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Cloned Industry Page', slug: 'industry-cloned'})
};
fetch('https://api.hubapi.com/content/api/v2/pages/{page_id}/clone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hubapi.com/content/api/v2/pages/{page_id}/clone",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Cloned Industry Page',
'slug' => 'industry-cloned'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hubapi.com/content/api/v2/pages/{page_id}/clone"
payload := strings.NewReader("{\n \"name\": \"Cloned Industry Page\",\n \"slug\": \"industry-cloned\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hubapi.com/content/api/v2/pages/{page_id}/clone")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Cloned Industry Page\",\n \"slug\": \"industry-cloned\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/content/api/v2/pages/{page_id}/clone")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Cloned Industry Page\",\n \"slug\": \"industry-cloned\"\n}"
response = http.request(request)
puts response.read_body{
"ab": false,
"ab_variation": false,
"absolute_url": "http://demo-hubapi.hs-sites.com/industry-0",
"analytics_page_id": "7623391699",
"analytics_page_type": "standard-page",
"archived": false,
"attached_stylesheets": [],
"author_at": 1550261521535,
"blueprint_type_id": 0,
"category": 1,
"category_id": 1,
"cloned_from": 7392781886,
"content_type_category": 4,
"content_type_category_id": 4,
"created": 1550261521535,
"created_time": 1550261521535,
"css": {},
"css_text": "",
"ctas": null,
"current_state": "DRAFT",
"currently_published": false,
"deleted_at": 0,
"domain": "",
"dynamic_page_hub_db_table_id": 1035860,
"featured_image": "",
"featured_image_alt_text": "",
"featured_image_height": 0,
"featured_image_length": 0,
"featured_image_width": 0,
"flex_areas": {},
"freeze_date": 1550261521535,
"has_user_changes": true,
"html_title": "Industry",
"id": 7623391699,
"is_draft": true,
"is_published": false,
"keywords": [],
"label": "Industry",
"landing_page": false,
"layout_sections": {},
"live_domain": "demo-hubapi.hs-sites.com",
"mab": false,
"mab_master": false,
"mab_variant": false,
"meta_description": "Industry",
"name": "Industry",
"page_expiry_enabled": false,
"page_redirected": false,
"page_title": "Industry",
"personas": [],
"placement_guids": [],
"portal_id": 62515,
"preview_key": "rYIXcFCA",
"processing_status": "UNDEFINED",
"public_access_rules": [],
"public_access_rules_enabled": false,
"publish_date": 0,
"publish_date_local_time": 0,
"published_by_email": "testapi@hubspot.com",
"published_by_name": "Krishna Tester",
"published_url": "",
"resolved_domain": "demo-hubapi.hs-sites.com",
"site_page": true,
"slug": "industry-0",
"state": "DRAFT",
"subcategory": "site_page",
"team_perms": [],
"template_path": "generated_layouts/7392754667.html",
"template_path_for_render": "generated_layouts/7392754667.html",
"title": "Industry",
"translated_content": {},
"tweet_immediately": false,
"unpublished_at": 0,
"updated": 1550261521535,
"upsize_featured_image": false,
"url": "http://demo-hubapi.hs-sites.com/industry-0",
"use_featured_image": false,
"user_perms": [],
"widget_containers": {},
"widgetcontainers": {},
"widgets": {
"module_154919216514676": {
"body": {
"definition_id": null,
"field_types": {},
"module_id": 5896933,
"per_widget_wrapper_html": "",
"smart_objects": null,
"smart_type": "NOT_SMART",
"tag": "module",
"type": "module",
"widget_name": "industry module",
"wrap_field_tag": "div",
"wrapping_html": ""
},
"child_css": {},
"css": {},
"id": "module_154919216514676",
"label": "industry module",
"module_id": 5896933,
"name": "module_154919216514676",
"order": 0,
"smart_type": null,
"type": "module"
}
}
}v2
Clone a page
Clone an existing page. All page fields can be overridden via the POST body.
POST
/
content
/
api
/
v2
/
pages
/
{page_id}
/
clone
Clone a page
curl --request POST \
--url https://api.hubapi.com/content/api/v2/pages/{page_id}/clone \
--header 'Content-Type: application/json' \
--data '
{
"name": "Cloned Industry Page",
"slug": "industry-cloned"
}
'import requests
url = "https://api.hubapi.com/content/api/v2/pages/{page_id}/clone"
payload = {
"name": "Cloned Industry Page",
"slug": "industry-cloned"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Cloned Industry Page', slug: 'industry-cloned'})
};
fetch('https://api.hubapi.com/content/api/v2/pages/{page_id}/clone', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hubapi.com/content/api/v2/pages/{page_id}/clone",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Cloned Industry Page',
'slug' => 'industry-cloned'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hubapi.com/content/api/v2/pages/{page_id}/clone"
payload := strings.NewReader("{\n \"name\": \"Cloned Industry Page\",\n \"slug\": \"industry-cloned\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hubapi.com/content/api/v2/pages/{page_id}/clone")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Cloned Industry Page\",\n \"slug\": \"industry-cloned\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/content/api/v2/pages/{page_id}/clone")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Cloned Industry Page\",\n \"slug\": \"industry-cloned\"\n}"
response = http.request(request)
puts response.read_body{
"ab": false,
"ab_variation": false,
"absolute_url": "http://demo-hubapi.hs-sites.com/industry-0",
"analytics_page_id": "7623391699",
"analytics_page_type": "standard-page",
"archived": false,
"attached_stylesheets": [],
"author_at": 1550261521535,
"blueprint_type_id": 0,
"category": 1,
"category_id": 1,
"cloned_from": 7392781886,
"content_type_category": 4,
"content_type_category_id": 4,
"created": 1550261521535,
"created_time": 1550261521535,
"css": {},
"css_text": "",
"ctas": null,
"current_state": "DRAFT",
"currently_published": false,
"deleted_at": 0,
"domain": "",
"dynamic_page_hub_db_table_id": 1035860,
"featured_image": "",
"featured_image_alt_text": "",
"featured_image_height": 0,
"featured_image_length": 0,
"featured_image_width": 0,
"flex_areas": {},
"freeze_date": 1550261521535,
"has_user_changes": true,
"html_title": "Industry",
"id": 7623391699,
"is_draft": true,
"is_published": false,
"keywords": [],
"label": "Industry",
"landing_page": false,
"layout_sections": {},
"live_domain": "demo-hubapi.hs-sites.com",
"mab": false,
"mab_master": false,
"mab_variant": false,
"meta_description": "Industry",
"name": "Industry",
"page_expiry_enabled": false,
"page_redirected": false,
"page_title": "Industry",
"personas": [],
"placement_guids": [],
"portal_id": 62515,
"preview_key": "rYIXcFCA",
"processing_status": "UNDEFINED",
"public_access_rules": [],
"public_access_rules_enabled": false,
"publish_date": 0,
"publish_date_local_time": 0,
"published_by_email": "testapi@hubspot.com",
"published_by_name": "Krishna Tester",
"published_url": "",
"resolved_domain": "demo-hubapi.hs-sites.com",
"site_page": true,
"slug": "industry-0",
"state": "DRAFT",
"subcategory": "site_page",
"team_perms": [],
"template_path": "generated_layouts/7392754667.html",
"template_path_for_render": "generated_layouts/7392754667.html",
"title": "Industry",
"translated_content": {},
"tweet_immediately": false,
"unpublished_at": 0,
"updated": 1550261521535,
"upsize_featured_image": false,
"url": "http://demo-hubapi.hs-sites.com/industry-0",
"use_featured_image": false,
"user_perms": [],
"widget_containers": {},
"widgetcontainers": {},
"widgets": {
"module_154919216514676": {
"body": {
"definition_id": null,
"field_types": {},
"module_id": 5896933,
"per_widget_wrapper_html": "",
"smart_objects": null,
"smart_type": "NOT_SMART",
"tag": "module",
"type": "module",
"widget_name": "industry module",
"wrap_field_tag": "div",
"wrapping_html": ""
},
"child_css": {},
"css": {},
"id": "module_154919216514676",
"label": "industry module",
"module_id": 5896933,
"name": "module_154919216514676",
"order": 0,
"smart_type": null,
"type": "module"
}
}
}Scope requirements
Scope requirements
パスパラメータ
The ID of the page to clone
ボディ
application/json
Page fields to override in the cloned page
最終更新日 2026年4月10日
⌘I