Skip to content

HubSpot: Content audit schemas

7 HubSpot schemas with complete fields and constraints.

← Content audit operations · All schemas

Export Logs — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
emailstringRequired within parentA string specifying the email address to which notifications about the export should be sent.
filtersModelOptionalExpand Export Logs — request body — body filters
formatstringRequired within parentA string specifying the format of the export file. Valid values include 'XLS', 'XLSX', and 'CSV'.
One of: CSV, XLS, XLSX
partitionintegerOptionalAn integer used for partitioning the export data, if applicable.
Format: int32
portalIdintegerRequired within parentAn integer representing the ID of the portal from which the audit logs are being exported.
Format: int32
recipientUserIdsarrayRequired within parentAn array of integers specifying the IDs of users who should receive the exported file.
recipientUserIds[]integerEach itemFormat: int32
shouldMarkExportFileAsSensitivebooleanRequired within parentA boolean indicating whether the export file should be marked as sensitive.
typestringRequired within parentA string indicating the type of export being performed.
userIdintegerOptionalAn integer representing the ID of the user initiating the export.
Format: int32
userTimeZonestringOptionalA string representing the time zone of the user initiating the export.

Referenced models: Export Logs — request body — body filters

Export Logs — request body — body filters

FieldTypePresenceDescription and constraints
$objectRoot
objectTypearrayRequired within parentAn array of strings representing the types of objects to filter by during the export. Valid object types include 'BLOG', 'BLOG_POST', 'LANDING_PAGE', 'WEBSITE_PAGE', 'TEMPLATE', 'MODULE', 'GLOBAL_MODULE', 'SERVERLESS_FUNCTION', 'DOMAIN', 'URL_MAPPING', 'EMAIL', 'CONTENT_SETTINGS', 'HUBDB_TABLE', 'KNOWLEDGE_BASE_ARTICLE', 'KNOWLEDGE_BASE', 'THEME', 'CSS', 'JS', 'CTA', 'FILE', 'WEB_INTERACTIVE', 'PODCAST', 'CASE_STUDY', and 'QUOTE'.
objectType[]stringEach item

Retrieve logs — response body

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand Retrieve logs — response body — paging
resultsarrayRequired within parentAn array of PublicAuditLog objects, each representing a single audit log entry.
results[]ModelEach itemExpand Retrieve logs — response body — results item

Referenced models: Retrieve logs — response body — paging, Retrieve logs — response body — results item

Retrieve logs — response body — paging

FieldTypePresenceDescription and constraints
$objectRootRepresents the pagination information for navigating through a list of results in the API. It provides details on how to access the previous or next set of results.
nextModelOptionalExpand Retrieve logs — response body — paging next
prevModelOptionalExpand Retrieve logs — response body — paging prev

Referenced models: Retrieve logs — response body — paging next, Retrieve logs — response body — paging prev

Retrieve logs — response body — paging next

FieldTypePresenceDescription and constraints
$objectRootSpecifies the paging information needed to retrieve the next set of results in a paginated API response
afterstringRequired within parentCursor token representing the boundary timestamp after which to fetch the next page of results. Pass this value as the after query parameter to retrieve later audit logs.
linkstringOptionalPre-constructed URL that can be used to directly fetch the next page of results without manually building the query.

Retrieve logs — response body — paging prev

FieldTypePresenceDescription and constraints
$objectRootspecifies the paging information needed to retrieve the previous set of results in a paginated API response
beforestringRequired within parentPre-constructed URL that can be used to directly fetch the previous page of results without manually building the query.
linkstringOptionalCursor token representing the boundary timestamp before which to fetch the previous page of results. Pass this value as the before query parameter to retrieve earlier audit logs.

Retrieve logs — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
eventstringRequired within parentThe type of event that took place (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED).
Known values: CREATED, DELETED, PUBLISHED, RESTORE, UNPUBLISHED, UPDATED
fullNamestringRequired within parentThe name of the user who caused the event.
metaobjectRequired within parentSupplementary metadata associated with the audit log entry. It provides additional context about the audited event (ex: rows deleted/updated for a HubDB event, the specific fields that were changed for a Content Settings event).
objectIdstringRequired within parentThe ID of the object.
objectNamestringRequired within parentThe internal name of the object in HubSpot.
objectTypestringRequired within parentThe type of the object (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.)
Known values: BLOG, BLOG_POST, CASE_STUDY, CONTENT_SETTINGS, CSS, CTA, DOMAIN, EMAIL, FILE, GLOBAL_MODULE, HUBDB_TABLE, JS, KNOWLEDGE_BASE, KNOWLEDGE_BASE_ARTICLE, LANDING_PAGE, MODULE, PODCAST, QUOTE, SERVERLESS_FUNCTION, TEMPLATE, THEME, URL_MAPPING, WEB_INTERACTIVE, WEBSITE_PAGE
timestampstringRequired within parentThe timestamp at which the event occurred.
Format: date-time
userIdstringRequired within parentThe ID of the user who caused the event.

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.