Zum Hauptinhalt springen
PUT
/
crm
/
v3
/
property-validations
/
{objectTypeId}
/
{propertyName}
/
rule-type
/
{ruleType}
Update a validation rule for a specific property and rule type, allowing customization of property value constraints.
curl --request PUT \
  --url https://api.hubapi.com/crm/v3/property-validations/{objectTypeId}/{propertyName}/rule-type/{ruleType} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ruleArguments": [
    "<string>"
  ]
}'
This response has no body data.

Unterstützte Produkte

Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing Hub -Kostenlos
Sales HubSales Hub -Kostenlos
Service HubService Hub -Kostenlos
Content HubContent Hub -Kostenlos
Diese API erfordert einen der folgenden Bereiche:
crm.objects.carts.write
crm.objects.orders.write
crm.objects.users.write
crm.pipelines.orders.write
crm.schemas.appointments.write
crm.schemas.carts.write
crm.schemas.commercepayments.write
crm.schemas.companies.write
crm.schemas.contacts.write
crm.schemas.courses.write
crm.schemas.custom.write
crm.schemas.deals.write
crm.schemas.invoices.write
crm.schemas.listings.write
crm.schemas.orders.write
crm.schemas.services.write
crm.schemas.subscriptions.write
e-commerce
tickets
tickets.highly_sensitive.v2
tickets.sensitive.v2

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

objectTypeId
string
required

The ID of the object type to which the property belongs.

propertyName
string
required

The name of the property for which the validation rule is being updated.

ruleType
enum<string>
required

The type of validation rule being updated, such as FORMAT, ALPHANUMERIC, or MAX_LENGTH.

Verfügbare Optionen:
FORMAT,
ALPHANUMERIC,
MAX_LENGTH,
MIN_LENGTH,
MIN_NUMBER,
MAX_NUMBER,
START_DATE,
END_DATE,
SPECIAL_CHARACTERS,
WHITESPACE,
DECIMAL,
BEFORE_DURATION,
AFTER_DURATION,
DAYS_OF_WEEK,
REGEX,
START_DATETIME,
END_DATETIME,
BEFORE_DATETIME_DURATION,
AFTER_DATETIME_DURATION,
PHONE_NUMBER_WITH_EXPLICIT_COUNTRY_CODE,
URL,
URL_ALLOWED_DOMAINS,
URL_BLOCKED_DOMAINS,
EMAIL,
EMAIL_ALLOWED_DOMAINS,
EMAIL_BLOCKED_DOMAINS,
DOMAIN

Body

application/json
ruleArguments
string[]
required

A list of arguments that define the constraints for the validation rule.