Skip to content

HubSpot: Association labels schemas

19 HubSpot schemas with complete fields and constraints.

← Association labels operations · All schemas

Configure association limits — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
inputsarrayRequired within parentAn array of PublicAssociationDefinitionConfigurationCreateRequest objects. Each item in the array specifies the configuration details for creating an association definition.
inputs[]ModelEach itemExpand Configure association limits — request body — body inputs item

Referenced models: Configure association limits — request body — body inputs item

Configure association limits — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRoot
categorystringRequired within parentSpecifies the category of the association, which can be HUBSPOT_DEFINED, INTEGRATOR_DEFINED, or USER_DEFINED.
One of: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK
maxToObjectIdsintegerRequired within parentThe maximum number of target object IDs that can be associated with a single source object.
Format: int32
typeIdintegerRequired within parentAn integer used to uniquely identify a specific association type within its category.
Format: int32

Configure association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Association Labels Batch Response Public Association Definition User Configuration

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed.
Format: date-time
linksobjectOptionalA collection of URLs linking to related documentation or resources associated with the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch operation was requested.
Format: date-time
resultsarrayRequired within parentAn array of user configurations for public association definitions, representing the outcome of the batch operation.
results[]ModelEach itemExpand Retrieve association limits — response body — results item
startedAtstringRequired within parentThe date and time when the batch operation started.
Format: date-time
statusstringRequired within parentThe current status of the batch operation, which can be CANCELED, COMPLETE, PENDING, or PROCESSING.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Retrieve association limits — response body — results item

Configure association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Association Labels Batch Response Public Association Definition User Configuration With Errors

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of errors encountered during the batch operation, each item detailing a specific error.
errors[]ModelEach itemExpand Remove association limits — response body — errors item
linksobjectOptionalAn object containing key-value pairs where each key is a link name and each value is a URI string related to the operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe number of errors encountered during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of results from the batch operation, each item representing a public association definition user configuration.
results[]ModelEach itemExpand Retrieve association limits — response body — results item
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Remove association limits — response body — errors item, Retrieve association limits — response body — results item

Create association label — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
inverseLabelstringOptionalAn optional descriptor that clarifies the reverse relationship in the association.
labelstringRequired within parentA descriptor that provides context about the relationship between two associated CRM objects.
namestringRequired within parentThe unique identifier for the association definition.

Create association label — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of association specifications with labels, where each item defines a specific association type between two object types. Each specification includes details such as category, typeId, and labels.
results[]ModelEach itemExpand Create association label — response body — results item

Referenced models: Create association label — response body — results item

Create association label — response body — results item

FieldTypePresenceDescription and constraints
$objectRootDefines the type, direction, and details of the relationship between two CRM objects.
categorystringRequired within parentThe category of the association, which can be 'HUBSPOT_DEFINED', 'USER_DEFINED', 'INTEGRATOR_DEFINED', or 'WORK'.
Known values: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK
fromObjectTypeIdstringOptionalA string indicating the object type ID from which the association originates.
labelstringOptionalA string representing the label for the association, which is optional.
toObjectTypeIdstringOptionalA string indicating the object type ID to which the association points.
typeIdJSONRequired within parent
typeId (anyOf 1)integerAlternativeAn integer representing the unique identifier for the type of association.
Format: int32
typeId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Remove association limits — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
inputsarrayRequired within parentAn array of PublicAssociationSpec objects, each defining the specifications for an association. This property is required and allows multiple association specifications to be processed in a single batch operation.
inputs[]ModelEach itemExpand Remove association limits — request body — body inputs item

Referenced models: Remove association limits — request body — body inputs item

Remove association limits — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRoot
categorystringRequired within parentSpecifies the category of the association, which can be HUBSPOT_DEFINED, INTEGRATOR_DEFINED, or USER_DEFINED.
typeIdintegerRequired within parentA unique integer identifier for the specific association type within its category.
Format: int32

Remove association limits — response body

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of errors encountered during the batch operation. Each error provides details about the issue.
errors[]ModelEach itemExpand Remove association limits — response body — errors item
linksobjectOptionalA map of link names to associated URIs, providing additional information about the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe number of errors that occurred during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array containing the results of the batch operation. Each result corresponds to an object processed in the batch.
results[]objectEach item
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Remove association limits — response body — errors item

Remove association limits — response body — errors item

FieldTypePresenceDescription and constraints
$objectRootRepresents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request.
categorystringRequired within parentA string that categorizes the error.
contextobjectRequired within parentAn object containing additional context about the error condition, with each key mapping to an array of strings.
Additional keys: see wildcard field
context.*arrayAdditional keys
context.*[]stringEach item
errorsarrayRequired within parentAn array of ErrorDetail objects providing further information about the error.
errors[]ModelEach itemExpand Batch insert events — response body — errors item errors item
idstringOptionalA string representing the unique identifier for this error.
linksobjectRequired within parentAn object mapping link names to associated URIs that contain documentation about the error or recommended remediation steps.
Additional keys: see wildcard field
links.*stringAdditional keys
messagestringRequired within parentA string containing a human-readable message describing the error.
statusstringRequired within parentA string indicating the status of the error.
subCategoryobjectOptionalAn object providing more specific details about the error category.

Referenced models: Batch insert events — response body — errors item errors item

Retrieve association limits — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of PublicAssociationDefinitionUserConfiguration objects, each representing a user configuration for an association definition.
results[]ModelEach itemExpand Retrieve association limits — response body — results item

Referenced models: Retrieve association limits — response body — results item

Retrieve association limits — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
categorystringRequired within parentThe category of the association, which can be HUBSPOT_DEFINED, INTEGRATOR_DEFINED, or USER_DEFINED.
Known values: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK
labelstringOptionalA descriptor providing context about the relationship between associated records.
typeIdJSONRequired within parent
typeId (anyOf 1)integerAlternativeA unique integer identifier for the association type within its category.
Format: int32
typeId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
userEnforcedMaxToObjectIdsJSONOptional
userEnforcedMaxToObjectIds (anyOf 1)integerAlternativeThe maximum number of target object IDs that a user can enforce in an association.
Format: int32
userEnforcedMaxToObjectIds (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Update association label — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
associationTypeIdintegerRequired within parentThe unique identifier for the association type.
Format: int32
inverseLabelstringOptionalAn optional descriptor for the inverse relationship between associated records.
labelstringRequired within parentA descriptor that provides context about the relationship between associated records.

Update association limits — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
inputsarrayRequired within parentAn array of PublicAssociationDefinitionConfigurationUpdateRequest objects. Each object in the array specifies the configuration details to be updated.
inputs[]ModelEach itemExpand Update association limits — request body — body inputs item

Referenced models: Update association limits — request body — body inputs item

Update association limits — request body — body inputs item

FieldTypePresenceDescription and constraints
$objectRoot
categorystringRequired within parentSpecifies the category of the association, which can be HUBSPOT_DEFINED, INTEGRATOR_DEFINED, or USER_DEFINED.
One of: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK
maxToObjectIdsintegerRequired within parentDefines the maximum number of target object IDs that can be associated.
Format: int32
typeIdintegerRequired within parentA unique identifier for the association type.
Format: int32

Update association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

FieldTypePresenceDescription and constraints
$objectRoot
categorystringRequired within parentThe category of the association, which can be HUBSPOT_DEFINED, INTEGRATOR_DEFINED, or USER_DEFINED.
Known values: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK
typeIdJSONRequired within parent
typeId (anyOf 1)integerAlternativeAn integer value used to uniquely identify a specific association type within its Association Category.
Format: int32
typeId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
userEnforcedMaxToObjectIdsJSONOptional
userEnforcedMaxToObjectIds (anyOf 1)integerAlternativeThe maximum number of object IDs that a user can enforce for associations.
Format: int32
userEnforcedMaxToObjectIds (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Update association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Association Labels Batch Response Public Association Definition Configuration Update Result

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch update operation was completed.
Format: date-time
linksobjectOptionalURLs linking to documentation or resources associated with the batch update operation.
Additional keys: see wildcard field
links.*stringAdditional keys
requestedAtstringOptionalThe date and time when the batch update operation was requested.
Format: date-time
resultsarrayRequired within parentAn array of results from the batch update operation. Each item in the array is a PublicAssociationDefinitionConfigurationUpdateResult object.
results[]ModelEach itemExpand Update association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
startedAtstringRequired within parentThe date and time when the batch update operation started.
Format: date-time
statusstringRequired within parentThe current status of the batch update operation, which can be CANCELED, COMPLETE, PENDING, or PROCESSING.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Update association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

Update association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Association Labels Batch Response Public Association Definition Configuration Update Result With Errors

FieldTypePresenceDescription and constraints
$objectRoot
completedAtstringRequired within parentThe date and time when the batch operation was completed, in ISO 8601 format.
Format: date-time
errorsarrayOptionalAn array of errors encountered during the batch operation, each detailing a specific issue that occurred.
errors[]ModelEach itemExpand Remove association limits — response body — errors item
linksobjectOptionalA map of link names to associated URIs, providing additional information or resources related to the batch operation.
Additional keys: see wildcard field
links.*stringAdditional keys
numErrorsJSONOptional
numErrors (anyOf 1)integerAlternativeThe total number of errors encountered during the batch operation.
Format: int32
numErrors (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requestedAtstringOptionalThe date and time when the batch operation was requested, in ISO 8601 format.
Format: date-time
resultsarrayRequired within parentAn array of results from the batch operation, each representing an update result for a public association definition configuration.
results[]ModelEach itemExpand Update association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
startedAtstringRequired within parentThe date and time when the batch operation started, in ISO 8601 format.
Format: date-time
statusstringRequired within parentThe current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
Known values: CANCELED, COMPLETE, PENDING, PROCESSING

Referenced models: Remove association limits — response body — errors item, Update association limits — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item

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.