HubSpot: Goal targets schemas
38 HubSpot schemas with complete fields and constraints.
← Goal targets operations · All schemas
Archive a batch of goal targets by ID — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a batch input payload containing a list of simple public object IDs. This component is used when performing batch operations on multiple objects within HubSpot. |
inputs | array | Required within parent | An array of SimplePublicObjectId objects, each representing the ID of a CRM object to be included in the batch operation. |
inputs[] | Model | Each item | Expand Archive a batch of contacts — request body — body inputs item |
Referenced models: Archive a batch of contacts — request body — body inputs item
Create a batch of goal targets — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a batch input for creating multiple simple public objects in a single request. This component is used to streamline the process of adding new objects to a HubSpot account by allowing multiple entries to be created at once. |
inputs | array | Required within parent | An array of objects, each representing a CRM object to be created. Each object must include the properties and associations necessary for creation. |
inputs[] | Model | Each item | Expand Create a batch of goal targets — request body — body inputs item |
Referenced models: Create a batch of goal targets — request body — body inputs item
Create a batch of goal targets — request body — body inputs item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An input object that contains a collection of objects to be created together in a batch. |
associations | array | Required within parent | An array of associations to be established for each object being created. Each association links the object to another object type, defined by the 'PublicAssociationsForObject' schema. |
associations[] | Model | Each item | Expand Create a goal target — request body — body associations item |
objectWriteTraceId | string | Optional | A string used to trace the write operation for the object creation. This ID helps in tracking and debugging the batch creation process. |
properties | object | Required within parent | An object containing key-value pairs representing the properties of the CRM objects to be created. Each key is a property name, and each value is the corresponding property value. Additional keys: see wildcard field |
properties.* | string | Additional keys |
Referenced models: Create a goal target — request body — body associations item
Create a batch of goal targets — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a standard error response in the HubSpot API, providing detailed information about an error that occurred during an API request. |
category | string | Required within parent | A string indicating the category of the error. |
context | object | Required within parent | An object containing context about the error condition, with additional properties as arrays of strings. Additional keys: see wildcard field |
context.* | array | Additional keys | |
context.*[] | string | Each item | |
errors | array | Required within parent | An array of ErrorDetail objects that provide additional information about the error. |
errors[] | Model | Each item | Expand Batch insert events — response body — errors item errors item |
id | string | Optional | A string that uniquely identifies this error instance. |
links | object | Required within parent | An object mapping link names to associated URIs containing documentation about the error or recommended remediation steps. Additional keys: see wildcard field |
links.* | string | Additional keys | |
message | string | Required within parent | A string containing a human-readable message describing the error. |
status | string | Required within parent | A string representing the status of the error. |
subCategory | object | Optional | An object providing more specific details about the error category. |
Referenced models: Batch insert events — response body — errors item errors item
Create a batch of goal targets — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Goal Targets Batch Response Simple Public Object
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A public object batch response object |
completedAt | string | Required within parent | The date and time when the batch operation was completed, in ISO 8601 format. Format: date-time |
links | object | Optional | A map of link names to associated URIs, providing additional resources or documentation related to the batch operation. Additional keys: see wildcard field |
links.* | string | Additional keys | |
requestedAt | string | Optional | The date and time when the batch operation was requested, in ISO 8601 format. Format: date-time |
results | array | Required within parent | An array of simple public objects that are the result of the batch operation. |
results[] | Model | Each item | Expand Merge goal targets — response body |
startedAt | string | Required within parent | The date and time when the batch operation started, in ISO 8601 format. Format: date-time |
status | string | Required within parent | The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'. Known values: CANCELED, COMPLETE, PENDING, PROCESSING |
Referenced models: Merge goal targets — response body
Create a batch of goal targets — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Goal Targets Batch Response Simple Public Object With Errors
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the result of a batch operation on CRM objects, including the processing status, batch results, timestamps, and a list of any errors encountered during the operation. |
completedAt | string | Required within parent | The date and time when the batch operation was completed, in ISO 8601 format. Format: date-time |
errors | array | Optional | An array of errors that occurred during the batch operation, each represented by a StandardError object. |
errors[] | Model | Each item | Expand Create a batch of goal targets — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item |
links | object | Optional | A map of link names to associated URIs, providing additional information or actions related to the batch operation. Additional keys: see wildcard field |
links.* | string | Additional keys | |
numErrors | JSON | Optional | |
numErrors (anyOf 1) | integer | Alternative | The number of errors that occurred during the batch operation. Format: int32 |
numErrors (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
requestedAt | string | Optional | The date and time when the batch operation was requested, in ISO 8601 format. Format: date-time |
results | array | Required within parent | An array of simple public objects that were processed in the batch operation. |
results[] | Model | Each item | Expand Merge goal targets — response body |
startedAt | string | Required within parent | The date and time when the batch operation started, in ISO 8601 format. Format: date-time |
status | string | Required within parent | The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'. Known values: CANCELED, COMPLETE, PENDING, PROCESSING |
Referenced models: Create a batch of goal targets — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Merge goal targets — response body
Create a goal target — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Is the input object used to create a new CRM object, containing the properties to be set and optional associations to link the new record with other CRM objects. |
associations | array | Required within parent | An array of associations that define relationships between the new CRM object and other existing objects. Each association is represented by a 'PublicAssociationsForObject' object. |
associations[] | Model | Each item | Expand Create a goal target — request body — body associations item |
properties | object | Required within parent | An object containing key-value pairs where keys are property names and values are the corresponding property values for the CRM object. Each value is a string. Additional keys: see wildcard field |
properties.* | string | Additional keys |
Referenced models: Create a goal target — request body — body associations item
Create a goal target — request body — body associations item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the associations for a specific object in HubSpot, detailing the types of associations and the related objects involved. |
to | Model | Required within parent | Expand Read batch objects — tickets batch Get Tickets — request body — body inputs item |
types | array | Required within parent | An array of association specifications, each defining a type of relationship between the objects. |
types[] | Model | Each item | Expand Create a goal target — request body — body associations item types item |
Referenced models: Create a goal target — request body — body associations item types item, Read batch objects — tickets batch Get Tickets — request body — body inputs item
Create a goal target — request body — body associations item types item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the type, direction, and details of the relationship between two CRM objects. |
associationCategory | string | Required within parent | The category of the association. Valid values include 'HUBSPOT_DEFINED', 'USER_DEFINED', 'INTEGRATOR_DEFINED', and 'WORK'. One of: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK |
associationTypeId | integer | Required within parent | The unique identifier for the type of association. This is an integer value. Format: int32 |
Create or update a batch of goal targets by unique property values — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a batch input operation for upserting simple public objects in HubSpot. This component is used to process multiple upsert operations in a single request, improving efficiency and performance. |
inputs | array | Required within parent | An array of SimplePublicObjectBatchInputUpsert objects, each representing a CRM object to be created or updated. This property is required. |
inputs[] | Model | Each item | Expand Create or update a batch of goal targets by unique property values — request body — body inputs item |
Referenced models: Create or update a batch of goal targets by unique property values — request body — body inputs item
Create or update a batch of goal targets by unique property values — request body — body inputs item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an object used in batch upsert operations, containing an object’s unique identifier, its properties, and optionally the unique property name and a write trace ID. |
id | string | Required within parent | A string representing the unique identifier of the object. |
idProperty | string | Optional | The name of a property whose values are unique for this object |
objectWriteTraceId | string | Optional | A string used to trace the write operations for the object. |
properties | object | Required within parent | An object containing key-value pairs representing the properties of the CRM object. Each key is a property name and each value is the property's value. Additional keys: see wildcard field |
properties.* | string | Additional keys |
Create or update a batch of goal targets by unique property values — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a CRM object that has either been created or updated (upserted) |
archived | boolean | Required within parent | A boolean indicating whether the object is archived. |
archivedAt | string | Optional | The date and time when the object was archived, in ISO 8601 format. Format: date-time |
createdAt | string | Required within parent | The date and time when the object was created, in ISO 8601 format. Format: date-time |
id | string | Required within parent | The unique identifier for the object, represented as a string. |
new | boolean | Required within parent | A boolean indicating whether the object is newly created. |
objectWriteTraceId | string | Optional | A string representing the trace ID for the write operation. |
properties | object | Required within parent | A map of property names to their current values, where each value is a string. Additional keys: see wildcard field |
properties.* | string | Additional keys | |
propertiesWithHistory | object | Optional | A map of property names to their historical values, where each value is an array of objects containing the value and timestamp. Additional keys: see wildcard field |
propertiesWithHistory.* | array | Additional keys | |
propertiesWithHistory.*[] | Model | Each item | Expand Merge goal targets — response body — properties With History value item |
updatedAt | string | Required within parent | The date and time when the object was last updated, in ISO 8601 format. Format: date-time |
url | string | Optional | A string containing the URL of the object. |
warnings | array | Optional | An array of warnings related to the object, where each warning includes a category, message, and context. |
warnings[] | Model | Each item | Expand Merge goal targets — response body — warnings item |
Referenced models: Merge goal targets — response body — warnings item, Merge goal targets — response body — properties With History value item
Create or update a batch of goal targets by unique property values — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Goal Targets Batch Response Simple Public Upsert Object
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the result of a batch upsert operation, including the operation’s status, timestamps, and a list of successfully created or updated objects. |
completedAt | string | Required within parent | The date and time when the batch operation was completed, in ISO 8601 format. Format: date-time |
links | object | Optional | A map of link names to associated URIs, providing additional information or actions related to the batch operation. Additional keys: see wildcard field |
links.* | string | Additional keys | |
requestedAt | string | Optional | The date and time when the batch operation was requested, in ISO 8601 format. Format: date-time |
results | array | Required within parent | An array of SimplePublicUpsertObject items representing the objects that were created or updated in the batch operation. |
results[] | Model | Each item | Expand Create or update a batch of goal targets by unique property values — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item |
startedAt | string | Required within parent | The date and time when the batch operation started, in ISO 8601 format. Format: date-time |
status | string | Required within parent | The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'. Known values: CANCELED, COMPLETE, PENDING, PROCESSING |
Referenced models: Create or update a batch of goal targets by unique property values — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
Create or update a batch of goal targets by unique property values — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING — Goal Targets Batch Response Simple Public Upsert Object With Errors
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the response from a batch upsert operation, including the status, timestamps, successfully processed objects, and any errors that occurred during processing. |
completedAt | string | Required within parent | The date and time when the batch operation was completed, in ISO 8601 format. Format: date-time |
errors | array | Optional | An array of error objects detailing any errors that occurred during the batch operation. Each error object includes information about the error category, message, and context. |
errors[] | Model | Each item | Expand Create a batch of goal targets — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item |
links | object | Optional | A map of link names to associated URIs, providing additional information or actions related to the batch operation. Additional keys: see wildcard field |
links.* | string | Additional keys | |
numErrors | JSON | Optional | |
numErrors (anyOf 1) | integer | Alternative | The number of errors encountered during the batch operation. Format: int32 |
numErrors (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
requestedAt | string | Optional | The date and time when the batch operation was requested, in ISO 8601 format. Format: date-time |
results | array | Required within parent | An array of objects representing the results of the upsert operation. Each object contains details about the individual upserted items. |
results[] | Model | Each item | Expand Create or update a batch of goal targets by unique property values — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item |
startedAt | string | Required within parent | The date and time when the batch operation started, in ISO 8601 format. Format: date-time |
status | string | Required within parent | The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'. Known values: CANCELED, COMPLETE, PENDING, PROCESSING |
Referenced models: Create a batch of goal targets — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING errors item, Create or update a batch of goal targets by unique property values — response body — status: CANCELED, COMPLETE, PENDING, PROCESSING results item
GDPR Delete — goal Targets gdpr Delete — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | An input that contains the information required to process a public GDPR data deletion request. |
idProperty | string | Optional | The name of a property whose values are unique for this object |
objectId | string | Required within parent | A string representing the unique identifier of the object to be deleted. |
List associations — goal Targets get Associations By To Object Type — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a paginated collection of objects that are associated with multiple labels, including the results and pagination details. This component is used when retrieving associated objects with specific labels in a forward-paging manner. |
paging | Model | Optional | Expand Retrieve goal targets — response body — paging |
results | array | Required within parent | An array of objects, each representing an association with multiple labels. Each object includes details about the associated object and its labels. |
results[] | Model | Each item | Expand List associations — goal Targets get Associations By To Object Type — response body — results item |
Referenced models: Retrieve goal targets — response body — paging, List associations — goal Targets get Associations By To Object Type — response body — results item
List associations — goal Targets get Associations By To Object Type — response body — results item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an object that is associated with multiple other objects, with optional context. |
associationTypes | array | Required within parent | An array of association specifications, each including a label. These define the types of associations between the objects. |
associationTypes[] | Model | Each item | Expand List associations — goal Targets get Associations By To Object Type — response body — results item association Types item |
toObjectId | string | Required within parent | The unique identifier of the target object to which associations are made. This is a string. |
Referenced models: List associations — goal Targets get Associations By To Object Type — response body — results item association Types item
List associations — goal Targets get Associations By To Object Type — response body — results item association Types item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the type, direction, and details of the relationship between two CRM objects. |
category | string | Required within parent | The category of the association, which can be 'HUBSPOT_DEFINED', 'USER_DEFINED', 'INTEGRATOR_DEFINED', or 'WORK'. Known values: HUBSPOT_DEFINED, INTEGRATOR_DEFINED, USER_DEFINED, WORK |
fromObjectTypeId | string | Optional | A string representing the object type ID from which the association originates. |
label | string | Optional | A string that provides an optional label for the association. |
toObjectTypeId | string | Optional | A string representing the object type ID to which the association points. |
typeId | JSON | Required within parent | |
typeId (anyOf 1) | integer | Alternative | An integer representing the unique identifier for the association type. Format: int32 |
typeId (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Merge goal targets — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Input data for merging two records. |
objectIdToMerge | string | Required within parent | The unique identifier of the object that will be merged into the primary object. It is a string. |
primaryObjectId | string | Required within parent | The unique identifier of the object that will remain as the primary object after the merge. It is a string. |
Merge goal targets — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A simple public object. |
archived | boolean | Required within parent | A boolean indicating whether this object is archived. |
archivedAt | string | Optional | The date and time when this object was archived, in ISO 8601 format. Format: date-time |
createdAt | string | Required within parent | The date and time when this object was created, in ISO 8601 format. Format: date-time |
id | string | Required within parent | The unique identifier for this object, represented as a string. |
objectWriteTraceId | string | Optional | A string representing the trace ID for write operations on this object. |
properties | object | Required within parent | A map of property names to their values, where each value is a string. Additional keys: see wildcard field |
properties.* | string | Additional keys | |
propertiesWithHistory | object | Optional | A map of property names to an array of their historical values, each with a timestamp and source information. Additional keys: see wildcard field |
propertiesWithHistory.* | array | Additional keys | |
propertiesWithHistory.*[] | Model | Each item | Expand Merge goal targets — response body — properties With History value item |
updatedAt | string | Required within parent | The date and time when this object was last updated, in ISO 8601 format. Format: date-time |
url | string | Optional | A string containing the URL associated with this object. |
warnings | array | Optional | An array of warnings related to this object, each containing a category, message, and context. |
warnings[] | Model | Each item | Expand Merge goal targets — response body — warnings item |
Referenced models: Merge goal targets — response body — warnings item, Merge goal targets — response body — properties With History value item
Merge goal targets — response body — properties With History value item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Property model that includes timestamp. |
sourceId | string | Optional | A string representing the identifier of the source that provided the value. |
sourceLabel | string | Optional | A string that labels or describes the source of the value. |
sourceType | string | Required within parent | A string indicating the type of source that provided the value. |
timestamp | string | Required within parent | A string in date-time format indicating when the value was recorded. Format: date-time |
updatedByUserId | JSON | Optional | |
updatedByUserId (anyOf 1) | integer | Alternative | An integer representing the ID of the user who updated the value. Format: int32 |
updatedByUserId (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
value | string | Required within parent | A string representing the value associated with the timestamp. |
Merge goal targets — response body — warnings item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a warning message related to a public object in HubSpot, providing details about the nature and context of the warning. |
category | string | Required within parent | A string indicating the category of the warning. |
context | object | Required within parent | An object providing additional context for the warning, with string values for each context key. Additional keys: see wildcard field |
context.* | string | Additional keys | |
message | string | Required within parent | A string containing the warning message. |
Read a batch of goal targets by internal ID, or unique property values — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Specifies the input for reading a batch of CRM objects, including arrays of object IDs, requested property names (with optional history), and an optional unique identifying property. |
idProperty | string | Optional | When using a custom unique value property to retrieve records, the name of the property. Do not include this parameter if retrieving by record ID. |
inputs | array | Required within parent | An array of SimplePublicObjectId objects, each representing an object to be read by its ID. |
inputs[] | Model | Each item | Expand Archive a batch of contacts — request body — body inputs item |
properties | array | Required within parent | An array of strings representing the properties to be returned in the response. If any specified properties are not present on the requested objects, they will be ignored. |
properties[] | string | Each item | |
propertiesWithHistory | array | Required within parent | An array of strings representing the properties to be returned along with their history of previous values. If any specified properties are not present on the requested objects, they will be ignored. |
propertiesWithHistory[] | string | Each item |
Referenced models: Archive a batch of contacts — request body — body inputs item
Retrieve a goal target — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a CRM object along with its properties, timestamps, and a set of associated object IDs grouped by association type. |
archived | boolean | Required within parent | A boolean indicating whether this object is archived. |
archivedAt | string | Optional | The date and time when this object was archived, in ISO 8601 format. Format: date-time |
associations | object | Optional | A map of associated object types to their associated IDs. Additional keys: see wildcard field |
associations.* | Model | Additional keys | Expand Retrieve a goal target — response body — associations value |
createdAt | string | Required within parent | The date and time when this object was created, in ISO 8601 format. Format: date-time |
id | string | Required within parent | The unique identifier for this object. |
objectWriteTraceId | string | Optional | A string used to trace the write operations for this object. |
properties | object | Required within parent | A map of property names to their current values for this object. Additional keys: see wildcard field |
properties.* | string | Additional keys | |
propertiesWithHistory | object | Optional | A map of property names to arrays of their values over time, including timestamps. Additional keys: see wildcard field |
propertiesWithHistory.* | array | Additional keys | |
propertiesWithHistory.*[] | Model | Each item | Expand Merge goal targets — response body — properties With History value item |
updatedAt | string | Required within parent | The date and time when this object was last updated, in ISO 8601 format. Format: date-time |
url | string | Optional | The URL of this object. |
warnings | array | Optional | An array of warnings associated with this object, each containing a category, message, and context. |
warnings[] | Model | Each item | Expand Merge goal targets — response body — warnings item |
Referenced models: Retrieve a goal target — response body — associations value, Merge goal targets — response body — warnings item, Merge goal targets — response body — properties With History value item
Retrieve a goal target — response body — associations value
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a collection of associated IDs returned by an API request, including pagination details for navigating through the results. |
paging | Model | Optional | Expand Search for goal targets — response body — paging |
results | array | Required within parent | An array of associated IDs, each represented by an 'AssociatedId' object. |
results[] | Model | Each item | Expand Retrieve a goal target — response body — associations value results item |
Referenced models: Retrieve a goal target — response body — associations value results item, Search for goal targets — response body — paging
Retrieve a goal target — response body — associations value results item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains the id and type of an association |
id | string | Required within parent | The unique identifier for the associated object, represented as a string. |
type | string | Required within parent | The type of the associated object, represented as a string. |
Retrieve goal targets — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a paginated collection response that includes simple public objects with their associations. This component is used to handle the results and pagination details when retrieving a list of objects from the API. |
paging | Model | Optional | Expand Retrieve goal targets — response body — paging |
results | array | Required within parent | An array of SimplePublicObjectWithAssociations, each representing a CRM object with its properties and associated data. |
results[] | Model | Each item | Expand Retrieve a goal target — response body |
Referenced models: Retrieve goal targets — response body — paging, Retrieve a goal target — response body
Retrieve goal targets — response body — paging
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Paging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page. |
next | Model | Optional | Expand Retrieve goal targets — response body — paging next |
Referenced models: Retrieve goal targets — response body — paging next
Retrieve goal targets — response body — paging next
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Specifies the paging information needed to retrieve the next set of results in a paginated API response |
after | string | Required within parent | A string token that serves as a cursor for fetching the next page of results. |
link | string | Optional | A URL string that provides a direct link to the next page of results. |
Search for goal targets — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a search request |
after | string | Required within parent | A string representing the paging cursor token to retrieve results after a specific point in the search results. |
filterGroups | array | Required within parent | An array of filter groups that define the conditions objects must meet to be included in the search results. |
filterGroups[] | Model | Each item | Expand Search for goal targets — request body — body filter Groups item |
limit | integer | Required within parent | An integer specifying the maximum number of results to return. Format: int32 |
properties | array | Required within parent | An array of strings indicating which properties of the objects should be included in the search results. |
properties[] | string | Each item | |
query | string | Optional | A string representing a search query to filter objects based on their properties. |
sorts | array | Required within parent | An array of strings specifying the properties by which the search results should be sorted. |
sorts[] | string | Each item |
Referenced models: Search for goal targets — request body — body filter Groups item
Search for goal targets — request body — body filter Groups item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a group of filters used to query data within HubSpot. This component is used to define criteria for filtering records in various API endpoints. |
filters | array | Required within parent | An array of filter objects that define the criteria for filtering CRM objects. Each filter specifies conditions such as property names and operators to apply during the search. |
filters[] | Model | Each item | Expand Search for goal targets — request body — body filter Groups item filters item |
Referenced models: Search for goal targets — request body — body filter Groups item filters item
Search for goal targets — request body — body filter Groups item filters item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against. |
highValue | string | Optional | An optional string value used in range filters to specify the upper bound. |
operator | string | Required within parent | The operator used to compare the property value against the filter value(s). Valid operators include 'EQ', 'NEQ', 'LT', 'LTE', 'GT', 'GTE', 'BETWEEN', 'IN', 'NOT_IN', 'HAS_PROPERTY', 'NOT_HAS_PROPERTY', 'CONTAINS_TOKEN', and 'NOT_CONTAINS_TOKEN'. One of: BETWEEN, CONTAINS_TOKEN, EQ, GT, GTE, HAS_PROPERTY, IN, LT, LTE, NEQ, NOT_CONTAINS_TOKEN, NOT_HAS_PROPERTY, NOT_IN |
propertyName | string | Required within parent | The name of the property to filter by. This is a string value. |
value | string | Optional | The specific value to filter for the given property. This is a string value. |
values | array | Optional | An array of string values used for filters that require multiple values, such as 'IN' or 'NOT_IN' operators. |
values[] | string | Each item |
Search for goal targets — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a list of simple objects returned from an API request, along with the total count of objects available. |
paging | Model | Optional | Expand Search for goal targets — response body — paging |
results | array | Required within parent | An array containing the simple public objects returned in the response. |
results[] | Model | Each item | Expand Merge goal targets — response body |
total | JSON | Required within parent | |
total (anyOf 1) | integer | Alternative | The number of available results Format: int32 |
total (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Search for goal targets — response body — paging, Merge goal targets — response body
Search for goal targets — response body — paging
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the pagination information for navigating through a list of results in the API. It provides details on how to access the previous or next set of results. |
next | Model | Optional | Expand Retrieve goal targets — response body — paging next |
prev | Model | Optional | Expand Search for goal targets — response body — paging prev |
Referenced models: Retrieve goal targets — response body — paging next, Search for goal targets — response body — paging prev
Search for goal targets — response body — paging prev
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | specifies the paging information needed to retrieve the previous set of results in a paginated API response |
before | string | Required within parent | A string token used to retrieve the previous page of results. |
link | string | Optional | A URL string that links to the previous page of results. |
Update a batch of goal targets by internal ID, or unique property values — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a batch input component used to handle multiple simple public objects in a single API request. This component is typically used when performing batch operations to create, update, or delete multiple records simultaneously. |
inputs | array | Required within parent | An array of SimplePublicObjectBatchInput objects, each containing the properties and optional associations for a CRM object to be processed in the batch. |
inputs[] | Model | Each item | Expand Update a batch of goal targets by internal ID, or unique property values — request body — body inputs item |
Referenced models: Update a batch of goal targets by internal ID, or unique property values — request body — body inputs item
Update a batch of goal targets by internal ID, or unique property values — request body — body inputs item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains an array of CRM object records to be processed in a batch operation, each defined by their ID and properties. |
id | string | Required within parent | The id to be updated. This can be the object id, or the unique property value of the idProperty property |
idProperty | string | Optional | The name of a property whose values are unique for this object |
objectWriteTraceId | string | Optional | A string used to trace the write operation for debugging or logging purposes. |
properties | object | Required within parent | An object containing key-value pairs where keys are property names and values are the corresponding property values for the CRM objects. Each property is a string. Additional keys: see wildcard field |
properties.* | string | Additional keys |
Update a goal target — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the input required to update a CRM object, containing an object with property names and their corresponding values. |
properties | object | Required within parent | An object containing key-value pairs where each key is a property name and each value is the property's value. All properties are represented as strings. Additional keys: see wildcard field |
properties.* | string | Additional keys |