メインコンテンツへスキップ
PUT
/
content
/
api
/
v2
/
pages
/
{page_id}
/
restore-deleted
Restore a previously deleted Page
curl --request PUT \
  --url https://api.hubapi.com/content/api/v2/pages/{page_id}/restore-deleted
import requests

url = "https://api.hubapi.com/content/api/v2/pages/{page_id}/restore-deleted"

response = requests.put(url)

print(response.text)
const options = {method: 'PUT'};

fetch('https://api.hubapi.com/content/api/v2/pages/{page_id}/restore-deleted', 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}/restore-deleted",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.hubapi.com/content/api/v2/pages/{page_id}/restore-deleted"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://api.hubapi.com/content/api/v2/pages/{page_id}/restore-deleted")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.hubapi.com/content/api/v2/pages/{page_id}/restore-deleted")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
{
  "ab": false,
  "ab_variation": false,
  "analytics_page_id": "817549124",
  "analytics_page_type": "standard-page",
  "archived": false,
  "attached_stylesheets": [],
  "author": "testapi@hubspot.com",
  "author_at": 1554834998622,
  "author_email": "testapi@hubspot.com",
  "author_name": "Shoan Chinue",
  "author_user_id": 215482,
  "author_username": "testapi@hubspot.com",
  "blueprint_type_id": 0,
  "category": 1,
  "category_id": 1,
  "content_type_category": 4,
  "content_type_category_id": 4,
  "created": 1552623020841,
  "created_by_id": 6513567,
  "created_time": 1552623020841,
  "css": {},
  "css_text": "",
  "ctas": null,
  "current_state": "DRAFT",
  "currently_published": false,
  "deleted_at": 0,
  "deleted_by": "",
  "domain": "",
  "featured_image": "",
  "featured_image_alt_text": "",
  "featured_image_height": 0,
  "featured_image_length": 0,
  "featured_image_width": 0,
  "flex_areas": {},
  "freeze_date": 1554129350050,
  "has_user_changes": true,
  "id": 817549124,
  "is_draft": true,
  "is_published": false,
  "keywords": [],
  "label": "teste",
  "landing_page": false,
  "last_edit_session_id": 1554129347295,
  "last_edit_update_id": 0,
  "layout_sections": {},
  "link_rel_canonical_url": "",
  "mab": false,
  "mab_master": false,
  "mab_variant": false,
  "name": "teste",
  "page_redirected": false,
  "portal_id": 62515,
  "preview_key": "VUUtxEgQ",
  "processing_status": "",
  "publish_date": 0,
  "publish_date_local_time": 0,
  "publish_immediately": true,
  "published_url": "",
  "resolved_domain": "demo-hubapi.hs-sites.com",
  "site_page": true,
  "slug": "-temporary-slug-10c62f94-de9f-4738-ade0-656c5e46550e",
  "state": "DRAFT",
  "state_when_deleted": "",
  "subcategory": "site_page",
  "team_perms": [],
  "template_path": "generated_layouts/710735994.html",
  "template_path_for_render": "generated_layouts/710735994.html",
  "translated_content": {},
  "tweet_immediately": false,
  "unpublished_at": 0,
  "updated": 1554834998622,
  "updated_by_id": 215482,
  "upsize_featured_image": false,
  "use_featured_image": false,
  "user_perms": [],
  "widget_containers": {},
  "widgetcontainers": {},
  "widgets": {}
}

パスパラメータ

page_id
string
必須

The unique identifier for the page

レスポンス

200 - application/json

Successfully restored page

The response is of type object.

最終更新日 2026年4月10日