Zum Hauptinhalt springen
GET
/
cms
/
v3
/
blogs
/
posts
/
{objectId}
/
revisions
記事の以前のバージョンを全て取得
curl --request GET \
  --url https://api.hubapi.com/cms/v3/blogs/posts/{objectId}/revisions \
  --header 'Authorization: Bearer <token>'
{
  "total": 123,
  "paging": {
    "next": {
      "link": "",
      "after": ""
    },
    "prev": {
      "before": "",
      "link": ""
    }
  },
  "results": [
    {
      "id": "<string>",
      "user": {
        "fullName": "<string>",
        "id": "<string>",
        "email": "<string>"
      },
      "object": {
        "publishDate": "2023-11-07T05:31:56Z",
        "language": "af",
        "enableLayoutStylesheets": true,
        "metaDescription": "<string>",
        "attachedStylesheets": [
          {}
        ],
        "password": "<string>",
        "htmlTitle": "<string>",
        "publishImmediately": true,
        "translations": {},
        "id": "<string>",
        "state": "<string>",
        "slug": "<string>",
        "createdById": "<string>",
        "rssBody": "<string>",
        "currentlyPublished": true,
        "archivedInDashboard": true,
        "created": "2023-11-07T05:31:56Z",
        "contentTypeCategory": "0",
        "mabExperimentId": "<string>",
        "updatedById": "<string>",
        "translatedFromId": "<string>",
        "folderId": "<string>",
        "widgetContainers": {},
        "pageExpiryRedirectId": 123,
        "dynamicPageDataSourceType": 123,
        "featuredImage": "<string>",
        "authorName": "<string>",
        "domain": "<string>",
        "name": "<string>",
        "dynamicPageHubDbTableId": "<string>",
        "campaign": "<string>",
        "dynamicPageDataSourceId": "<string>",
        "enableDomainStylesheets": true,
        "includeDefaultCustomCss": true,
        "layoutSections": {},
        "updated": "2023-11-07T05:31:56Z",
        "footerHtml": "<string>",
        "tagIds": [
          123
        ],
        "widgets": {},
        "postSummary": "<string>",
        "headHtml": "<string>",
        "pageExpiryRedirectUrl": "<string>",
        "abStatus": "master",
        "useFeaturedImage": true,
        "abTestId": "<string>",
        "featuredImageAltText": "<string>",
        "blogAuthorId": "<string>",
        "contentGroupId": "<string>",
        "rssSummary": "<string>",
        "pageExpiryEnabled": true,
        "url": "<string>",
        "enableGoogleAmpOutputOverride": true,
        "publicAccessRules": [
          {}
        ],
        "archivedAt": 123,
        "postBody": "<string>",
        "themeSettingsValues": {},
        "pageExpiryDate": 123,
        "publicAccessRulesEnabled": true,
        "currentState": "AUTOMATED",
        "categoryId": 123,
        "linkRelCanonicalUrl": "<string>"
      },
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -Professional
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -Starter
この API には、次のいずれかのスコープが必要です。
content

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

objectId
string
required

以前のバージョンを取得するブログ記事のID。

Query Parameters

after
string

次の結果のセットを取得するためのカーソルトークン値。これはその他の結果が含まれるページ付けされたレスポンスの「paging.next.after」JSONプロパティーから取得できます。

before
string
limit
integer

返す結果の最大数。既定値は100です。

Response

successful operation

Response object for collections of blog post versions with pagination information.

total
integer
required

ブログ記事バージョンの合計数。

results
object[]
required

ブログ記事バージョンのコレクション。

paging
object

Model definition for paging.