Skip to content

HubSpot: Pipeline governance schemas (part 5)

20 HubSpot schemas with complete fields and constraints.

← Pipeline governance operations · All schemas

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED index Reference day Of Week: FRIDAY, MONDAY, SATURDAY, SUNDAY, THURSDAY, TUESDAY, WEDNESDAY, reference Type: WEEK

FieldTypePresenceDescription and constraints
$objectRoot
dayOfWeekstringRequired within parentA string representing the day of the week. Valid values include 'MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY', 'SUNDAY'.
One of: FRIDAY, MONDAY, SATURDAY, SUNDAY, THURSDAY, TUESDAY, WEDNESDAY
hourintegerOptionalAn integer representing the hour of the day.
Format: int32
millisecondintegerOptionalAn integer representing the millisecond within the second.
Format: int32
minuteintegerOptionalAn integer representing the minute within the hour.
Format: int32
referenceTypestringRequired within parentA string indicating the type of reference, which is 'WEEK' by default.
Default: WEEK
One of: WEEK
secondintegerOptionalAn integer representing the second within the minute.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED index Reference reference Type: FISCAL QUARTER

FieldTypePresenceDescription and constraints
$objectRoot
dayintegerRequired within parentAn integer representing the day of the month within the fiscal quarter.
Format: int32
hourintegerOptionalAn integer representing the hour of the day.
Format: int32
millisecondintegerOptionalAn integer representing the millisecond within the second.
Format: int32
minuteintegerOptionalAn integer representing the minute within the hour.
Format: int32
monthintegerRequired within parentAn integer representing the month of the fiscal quarter.
Format: int32
referenceTypestringRequired within parentA string indicating the type of reference, which is 'FISCAL_QUARTER' by default.
Default: FISCAL_QUARTER
One of: FISCAL_QUARTER
secondintegerOptionalAn integer representing the second within the minute.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED index Reference reference Type: FISCAL YEAR

FieldTypePresenceDescription and constraints
$objectRoot
dayintegerRequired within parentAn integer representing the day component of the date.
Format: int32
hourintegerOptionalAn integer representing the hour component of the time.
Format: int32
millisecondintegerOptionalAn integer representing the millisecond component of the time.
Format: int32
minuteintegerOptionalAn integer representing the minute component of the time.
Format: int32
monthintegerRequired within parentAn integer representing the month component of the date.
Format: int32
referenceTypestringRequired within parentA string that specifies the type of reference, defaulting to 'FISCAL_YEAR'.
Default: FISCAL_YEAR
One of: FISCAL_YEAR
secondintegerOptionalAn integer representing the second component of the time.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED index Reference reference Type: MONTH

FieldTypePresenceDescription and constraints
$objectRoot
dayintegerRequired within parentAn integer representing the day of the month.
Format: int32
hourintegerOptionalAn integer representing the hour of the day.
Format: int32
millisecondintegerOptionalAn integer representing the millisecond within the second.
Format: int32
minuteintegerOptionalAn integer representing the minute within the hour.
Format: int32
referenceTypestringRequired within parentA string indicating the type of reference, which is 'MONTH' by default.
Default: MONTH
One of: MONTH
secondintegerOptionalAn integer representing the second within the minute.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED index Reference reference Type: NOW

FieldTypePresenceDescription and constraints
$objectRoot
hourintegerOptionalAn integer representing the hour of the current time.
Format: int32
millisecondintegerOptionalAn integer representing the millisecond of the current time.
Format: int32
minuteintegerOptionalAn integer representing the minute of the current time.
Format: int32
referenceTypestringRequired within parentA string that indicates the type of reference, which is always 'NOW' for this component.
Default: NOW
One of: NOW
secondintegerOptionalAn integer representing the second of the current time.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED index Reference reference Type: QUARTER

FieldTypePresenceDescription and constraints
$objectRoot
dayintegerRequired within parentAn integer representing the day within the month.
Format: int32
hourintegerOptionalAn integer representing the hour of the day.
Format: int32
millisecondintegerOptionalAn integer representing the millisecond within the second.
Format: int32
minuteintegerOptionalAn integer representing the minute within the hour.
Format: int32
monthintegerRequired within parentAn integer representing the month within the quarter.
Format: int32
referenceTypestringRequired within parentA string indicating the type of reference, which is 'QUARTER' for this component.
Default: QUARTER
One of: QUARTER
secondintegerOptionalAn integer representing the second within the minute.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED index Reference reference Type: TODAY

FieldTypePresenceDescription and constraints
$objectRoot
hourintegerOptionalAn integer representing the hour of the day.
Format: int32
millisecondintegerOptionalAn integer representing the millisecond within the second.
Format: int32
minuteintegerOptionalAn integer representing the minute within the hour.
Format: int32
referenceTypestringRequired within parentA string indicating the type of reference, which is 'TODAY' by default.
Default: TODAY
One of: TODAY
secondintegerOptionalAn integer representing the second within the minute.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED index Reference reference Type: YEAR

FieldTypePresenceDescription and constraints
$objectRoot
dayintegerRequired within parentAn integer representing the day of the month.
Format: int32
hourintegerOptionalAn integer representing the hour of the day.
Format: int32
millisecondintegerOptionalAn integer representing the millisecond within the second.
Format: int32
minuteintegerOptionalAn integer representing the minute within the hour.
Format: int32
monthintegerRequired within parentAn integer representing the month of the year.
Format: int32
referenceTypestringRequired within parentA string that indicates the type of reference, which is 'YEAR' by default.
Default: YEAR
One of: YEAR
secondintegerOptionalAn integer representing the second within the minute.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED offset

FieldTypePresenceDescription and constraints
$objectRoot
daysintegerOptionalAn integer representing the number of days for the offset.
Format: int32
hoursintegerOptionalAn integer representing the number of hours for the offset.
Format: int32
millisecondsintegerOptionalAn integer representing the number of milliseconds for the offset.
Format: int32
minutesintegerOptionalAn integer representing the number of minutes for the offset.
Format: int32
monthsintegerOptionalAn integer representing the number of months for the offset.
Format: int32
quartersintegerOptionalAn integer representing the number of quarters for the offset.
Format: int32
secondsintegerOptionalAn integer representing the number of seconds for the offset.
Format: int32
weeksintegerOptionalAn integer representing the number of weeks for the offset.
Format: int32
yearsintegerOptionalAn integer representing the number of years for the offset.
Format: int32

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: PROPERTY REFERENCED

FieldTypePresenceDescription and constraints
$objectRoot
propertystringRequired within parentA string that denotes the property used as the reference for the time operation.
referenceTypestringRequired within parentA string indicating the type of reference used for the property.
timeTypestringRequired within parentA string indicating the type of time reference, which is 'PROPERTY_REFERENCED' by default.
Default: PROPERTY_REFERENCED
One of: PROPERTY_REFERENCED
timezoneSourcestringOptionalA string representing the source of the timezone information.
zoneIdstringRequired within parentA string specifying the identifier for the timezone.

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: ABSOLUTE COMPARATIVE

FieldTypePresenceDescription and constraints
$objectRoot
comparisonstringRequired within parentA string representing the type of comparison to be made with the timestamp.
timestampintegerRequired within parentAn integer representing the specific point in time to be used for the comparison, formatted as a Unix timestamp in milliseconds.
Format: int64
typestringRequired within parentA string indicating the type of refinement, which is 'ABSOLUTE_COMPARATIVE'.
Default: ABSOLUTE_COMPARATIVE
One of: ABSOLUTE_COMPARATIVE

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: ABSOLUTE RANGED

FieldTypePresenceDescription and constraints
$objectRoot
lowerTimestampintegerRequired within parentAn integer representing the lower bound of the timestamp range, specified as a Unix timestamp in milliseconds.
Format: int64
rangeTypestringRequired within parentA string representing the type of range being defined.
typestringRequired within parentA string that specifies the type of refine by operation. The default value is 'ABSOLUTE_RANGED'.
Default: ABSOLUTE_RANGED
One of: ABSOLUTE_RANGED
upperTimestampintegerRequired within parentAn integer representing the upper bound of the timestamp range, specified as a Unix timestamp in milliseconds.
Format: int64

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: ALL HISTORY

FieldTypePresenceDescription and constraints
$objectRoot
typestringRequired within parentA string representing the type of refinement. The default and only valid value is 'ALL_HISTORY'.
Default: ALL_HISTORY
One of: ALL_HISTORY

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: NUM OCCURRENCES

FieldTypePresenceDescription and constraints
$objectRoot
maxOccurrencesintegerOptionalAn integer specifying the maximum number of occurrences allowed.
Format: int32
minOccurrencesintegerOptionalAn integer specifying the minimum number of occurrences required.
Format: int32
typestringRequired within parentA string indicating the type of refinement, which is 'NUM_OCCURRENCES'.
Default: NUM_OCCURRENCES
One of: NUM_OCCURRENCES

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: RELATIVE COMPARATIVE

FieldTypePresenceDescription and constraints
$objectRoot
comparisonstringRequired within parentA string representing the comparison operation to be performed.
timeOffsetModelRequired within parentExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: RELATIVE COMPARATIVE time Offset
typestringRequired within parentA string indicating the type of refinement, which is 'RELATIVE_COMPARATIVE'.
Default: RELATIVE_COMPARATIVE
One of: RELATIVE_COMPARATIVE

Referenced models: Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: RELATIVE COMPARATIVE time Offset

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: RELATIVE COMPARATIVE time Offset

FieldTypePresenceDescription and constraints
$objectRoot
amountintegerRequired within parentAn integer specifying the amount of time units for the offset.
Format: int64
offsetDirectionstringRequired within parentA string indicating the direction of the time offset. Valid values are 'BEFORE' and 'AFTER'.
timeUnitstringRequired within parentA string representing the unit of time for the offset, such as 'DAYS', 'HOURS', 'MINUTES', etc.

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: RELATIVE RANGED

FieldTypePresenceDescription and constraints
$objectRoot
lowerBoundOffsetModelRequired within parentExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: RELATIVE COMPARATIVE time Offset
rangeTypestringRequired within parentA string indicating the type of range being used for the timestamp refinement.
typestringRequired within parentA string that specifies the type of the refine by operation, which is 'RELATIVE_RANGED'.
Default: RELATIVE_RANGED
One of: RELATIVE_RANGED
upperBoundOffsetModelRequired within parentExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: RELATIVE COMPARATIVE time Offset

Referenced models: Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: RELATIVE COMPARATIVE time Offset

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: SET OCCURRENCES

FieldTypePresenceDescription and constraints
$objectRoot
setTypestringRequired within parentA string that specifies the set type for the occurrences refinement.
typestringRequired within parentA string representing the type of refinement. The default value is 'SET_OCCURRENCES'.
Default: SET_OCCURRENCES
One of: SET_OCCURRENCES

Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By type: TIME RANGED

FieldTypePresenceDescription and constraints
$objectRoot
includeObjectsWithNoValueSetbooleanRequired within parentA boolean indicating whether to include objects that have no value set.
lowerBoundEndpointBehaviorstringOptionalA string that specifies the behavior of the lower bound endpoint in the time range.
lowerBoundTimePointJSONRequired within parentAn object that defines the lower bound time point of the range. It can be a date point, indexed time point, or property-referenced time.
lowerBoundTimePoint (oneOf 1)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: DATE
lowerBoundTimePoint (oneOf 2)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED
lowerBoundTimePoint (oneOf 3)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: PROPERTY REFERENCED
operationTypestringRequired within parentA string that specifies the type of operation being performed.
operatorstringRequired within parentA string that defines the operator used in the time operation.
propertyParserstringOptionalA string that indicates the property parser used in the operation.
typestringRequired within parentA string that specifies the type of operation, with a default value of 'TIME_RANGED'.
Default: TIME_RANGED
One of: TIME_RANGED
upperBoundEndpointBehaviorstringOptionalA string that specifies the behavior of the upper bound endpoint in the time range.
upperBoundTimePointJSONRequired within parentAn object that defines the upper bound time point of the range. It can be a date point, indexed time point, or property-referenced time.
upperBoundTimePoint (oneOf 1)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: DATE
upperBoundTimePoint (oneOf 2)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED
upperBoundTimePoint (oneOf 3)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: PROPERTY REFERENCED

Referenced models: Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: DATE, Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: INDEXED, Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED pruning Refine By operation Type: TIME POINT time Point time Type: PROPERTY REFERENCED

Update rules (Replace) — request body — body approval Stage

FieldTypePresenceDescription and constraints
$objectRoot
approvalCommentstringOptionalA string that allows an optional comment to be added to the approval rule.
approvalModestringRequired within parentSpecifies the mode of approval required. It can be either 'ALL', meaning all specified users must approve, or 'ANY', meaning any one of the specified users can approve.
One of: ALL, ANY
approverUserIdsarrayRequired within parentAn array of user IDs representing the users who are authorized to approve the stage transition. Each ID is a string.
approverUserIds[]stringEach item
conditionalApprovalFilterBranchJSONOptionalDefines conditional logic for the approval process using a filter branch. It can be one of several types, such as PublicOrFilterBranch or PublicAndFilterBranch, to specify complex approval conditions.
conditionalApprovalFilterBranch (oneOf 1)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: OR
conditionalApprovalFilterBranch (oneOf 2)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: AND
conditionalApprovalFilterBranch (oneOf 3)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: NOT ALL
conditionalApprovalFilterBranch (oneOf 4)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: NOT ANY
conditionalApprovalFilterBranch (oneOf 5)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: RESTRICTED
conditionalApprovalFilterBranch (oneOf 6)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED
conditionalApprovalFilterBranch (oneOf 7)ModelAlternativeExpand Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: ASSOCIATION
pipelineStageIdstringRequired within parentThe unique identifier for the pipeline stage that the approval rule applies to. It is a string.

Referenced models: Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: AND, Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: ASSOCIATION, Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: NOT ALL, Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: NOT ANY, Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: OR, Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: RESTRICTED, Update rules (Replace) — request body — body / approvalStage / conditionalApprovalFilterBranch / filterBranchType: UNIFIED EVENTS, operator: HAS COMPLETED, HAS NOT COMPLETED

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.