Skip to content

HubSpot: Property validations schemas

6 HubSpot schemas with complete fields and constraints.

← Property validations operations · All schemas

Read all property validation rules for an object — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentCollection of properties with their validation rules. Each item maps a property name to its configured validation rules for the specified object type.
results[]ModelEach itemExpand Read all property validation rules for an object — response body — results item

Referenced models: Read all property validation rules for an object — response body — results item

Read all property validation rules for an object — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
propertyNamestringRequired within parentThe name of the property for which validation rules are defined.
propertyValidationRulesarrayRequired within parentA list of validation rules applicable to the property.
propertyValidationRules[]ModelEach itemExpand Retrieve a validation rule for a specific property and rule type, providing details on how property values should be formatted — response body

Referenced models: Retrieve a validation rule for a specific property and rule type, providing details on how property values should be formatted — response body

Read validation rules for a property — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentCollection of validation rules configured for the specified property. Each rule defines a constraint that property values must satisfy (e.g., format requirements, length limits, allowed values).
results[]ModelEach itemExpand Retrieve a validation rule for a specific property and rule type, providing details on how property values should be formatted — response body

Referenced models: Retrieve a validation rule for a specific property and rule type, providing details on how property values should be formatted — response body

Retrieve a validation rule for a specific property and rule type, providing details on how property values should be formatted — response body

FieldTypePresenceDescription and constraints
$objectRoot
ruleArgumentsarrayRequired within parentA list of arguments that define the specific conditions or parameters for the validation rule.
ruleArguments[]stringEach item
ruleTypestringRequired within parentThe category of validation applied to the property, such as FORMAT, ALPHANUMERIC, or MAX_LENGTH.
Known values: AFTER_DATETIME_DURATION, AFTER_DURATION, ALPHANUMERIC, BEFORE_DATETIME_DURATION, BEFORE_DURATION, DAYS_OF_WEEK, DECIMAL, DOMAIN, EMAIL, EMAIL_ALLOWED_DOMAINS, EMAIL_BLOCKED_DOMAINS, END_DATE, END_DATETIME, FORMAT, MAX_LENGTH, MAX_NUMBER, MIN_LENGTH, MIN_NUMBER, PHONE_NUMBER_WITH_EXPLICIT_COUNTRY_CODE, REGEX, SPECIAL_CHARACTERS, START_DATE, START_DATETIME, URL, URL_ALLOWED_DOMAINS, URL_BLOCKED_DOMAINS, WHITESPACE
shouldApplyNormalizationbooleanOptionalA boolean indicating whether normalization should be applied to the property value before validation.

Update a validation rule for a specific property and rule type, allowing customization of property value constraints — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
ruleArgumentsarrayRequired within parentA list of arguments that define the constraints for the validation rule.
ruleArguments[]stringEach item
shouldApplyNormalizationbooleanOptionalA boolean indicating whether normalization should be applied to the property value as part of the validation process.

Update a validation rule for a specific property and rule type, allowing customization of property value constraints — request body — path

FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
objectTypeIdstringRequired within parent
propertyNamestringRequired within parent
ruleTypestringRequired within parentOne of: AFTER_DATETIME_DURATION, AFTER_DURATION, ALPHANUMERIC, BEFORE_DATETIME_DURATION, BEFORE_DURATION, DAYS_OF_WEEK, DECIMAL, DOMAIN, EMAIL, EMAIL_ALLOWED_DOMAINS, EMAIL_BLOCKED_DOMAINS, END_DATE, END_DATETIME, FORMAT, MAX_LENGTH, MAX_NUMBER, MIN_LENGTH, MIN_NUMBER, PHONE_NUMBER_WITH_EXPLICIT_COUNTRY_CODE, REGEX, SPECIAL_CHARACTERS, START_DATE, START_DATETIME, URL, URL_ALLOWED_DOMAINS, URL_BLOCKED_DOMAINS, WHITESPACE

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.