Skip to main content
GET
/
cms
/
v3
/
blogs
/
posts
/
{objectId}
/
revisions
Recuperar todas las versiones anteriores de una entrada
curl --request GET \
  --url https://api.hubapi.com/cms/v3/blogs/posts/{objectId}/revisions \
  --header 'Authorization: Bearer <token>'
{
  "total": 123,
  "paging": {
    "next": {
      "link": "<string>",
      "after": "<string>"
    },
    "prev": {
      "before": "<string>",
      "link": "<string>"
    }
  },
  "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"
    }
  ]
}

Productos compatibles

Se requiere uno de los siguientes productos o productos de ediciones superiores.
Marketing HubMarketing Hub -Pro
Sales HubSales Hub -Gratuito
Service HubService Hub -Gratuito
Content HubContent Hub -Starter
Esta API requiere uno de los siguientes ámbitos:
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

El ID de la entrada de blog para recuperar versiones anteriores.

Query Parameters

after
string

El valor del token del cursor para obtener el siguiente conjunto de resultados. Se puede obtener de la propiedad JSON paging.next.after de una respuesta paginada que contenga más resultados.

before
string
limit
integer

El número máximo de resultados que se devolverán. La opción predeterminada es 100.

Response

successful operation

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

total
integer
required

Total de versiones de entradas de blog.

results
object[]
required

Colección de versiones de entradas de blog.

paging
object

Model definition for paging.