curl --request GET \
--url https://api.hubapi.com/cms/v3/pages/landing-pages/{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>",
"publishImmediately": true,
"htmlTitle": "<string>",
"translations": {},
"id": "<string>",
"state": "<string>",
"slug": "<string>",
"createdById": "<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,
"subcategory": "<string>",
"layoutSections": {},
"updated": "2023-11-07T05:31:56Z",
"footerHtml": "<string>",
"widgets": {},
"headHtml": "<string>",
"pageExpiryRedirectUrl": "<string>",
"abStatus": "master",
"useFeaturedImage": true,
"abTestId": "<string>",
"featuredImageAltText": "<string>",
"contentGroupId": "<string>",
"pageExpiryEnabled": true,
"templatePath": "<string>",
"url": "<string>",
"publicAccessRules": [
{}
],
"archivedAt": "2023-11-07T05:31:56Z",
"themeSettingsValues": {},
"pageExpiryDate": 123,
"publicAccessRulesEnabled": true,
"pageRedirected": true,
"currentState": "AUTOMATED",
"categoryId": 123,
"linkRelCanonicalUrl": "<string>"
},
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
Recupera todas las versiones anteriores de una landing page.
curl --request GET \
--url https://api.hubapi.com/cms/v3/pages/landing-pages/{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>",
"publishImmediately": true,
"htmlTitle": "<string>",
"translations": {},
"id": "<string>",
"state": "<string>",
"slug": "<string>",
"createdById": "<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,
"subcategory": "<string>",
"layoutSections": {},
"updated": "2023-11-07T05:31:56Z",
"footerHtml": "<string>",
"widgets": {},
"headHtml": "<string>",
"pageExpiryRedirectUrl": "<string>",
"abStatus": "master",
"useFeaturedImage": true,
"abTestId": "<string>",
"featuredImageAltText": "<string>",
"contentGroupId": "<string>",
"pageExpiryEnabled": true,
"templatePath": "<string>",
"url": "<string>",
"publicAccessRules": [
{}
],
"archivedAt": "2023-11-07T05:31:56Z",
"themeSettingsValues": {},
"pageExpiryDate": 123,
"publicAccessRulesEnabled": true,
"pageRedirected": true,
"currentState": "AUTOMATED",
"categoryId": 123,
"linkRelCanonicalUrl": "<string>"
},
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
content
The access token received from the authorization server in the OAuth 2.0 flow.
El id de la landing page.
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.
El número máximo de resultados que se devolverán. La opción predeterminada es 100.
successful operation
Response object for collections of page versions with pagination information.