UpsertPropertyValidations
Adds or replaces a single validation rule for a CRM property in HubSpot. Issues one PUT request to the CRM Property Validations API.
Input
| Name | Type | Description |
| ObjectTypeId | String | The object type Id of the property (for example, 0-1 for contacts, 0-2 for companies). |
| PropertyName | String | The name of the property for which to set the validation rule. |
| RuleType | String | The type of validation rule to add or replace. Supported values include ALPHANUMERIC, MIN_NUMBER, MAX_NUMBER, MIN_LENGTH, MAX_LENGTH, DECIMAL, REGEX, EMAIL, URL, and others. |
| RuleArguments | String | A JSON array of arguments for the validation rule (for example, [ |
| ShouldApplyNormalization | Bool | Whether normalization should be applied when the rule is evaluated. Optional. |
Result Set Columns
| Name | Type | Description |
| Success | Bool | Returns true if the validation rule was successfully created or updated. |
| ErrorCode | String | The HTTP status code returned when the operation fails. |
| ErrorMessage | String | The error message returned when the operation fails. |