curl --request POST \
--url https://api.hubapi.com/cms/v3/pages/site-pages/batch/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{}
]
}'
{
"completedAt": "2023-11-07T05:31:56Z",
"requestedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"links": {},
"results": [
{
"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>"
}
],
"status": "PENDING"
}
Update the Site Page objects identified in the request body.
curl --request POST \
--url https://api.hubapi.com/cms/v3/pages/site-pages/batch/update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{}
]
}'
{
"completedAt": "2023-11-07T05:31:56Z",
"requestedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"links": {},
"results": [
{
"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>"
}
],
"status": "PENDING"
}
content
The access token received from the authorization server in the OAuth 2.0 flow.
Specifies whether to update deleted Site Pages. Defaults to false
.
The JSON representation of the updated Site Pages.
Wrapper for providing an array of JSON nodes as inputs.
successful operation
Response object for successful batch operations on pages.
Was this page helpful?