{ "openapi" : "3.0.1", "info" : { "title" : "CRM Lists", "description" : "Basepom for all HubSpot Projects", "version" : "2026-09", "x-hubspot-product-tier-requirements" : { "marketing" : "FREE", "sales" : "FREE", "service" : "FREE", "cms" : "FREE", "commerce" : "FREE", "crmHub" : "FREE", "dataHub" : "FREE" } }, "servers" : [ { "url" : "https://api.hubapi.com" } ], "tags" : [ { "name" : "Basic" }, { "name" : "Batch" }, { "name" : "Search" } ], "paths" : { "/crm/lists/2026-09" : { "get" : { "tags" : [ "Basic" ], "summary" : "List", "description" : "Retrieve a list of CRM lists in your HubSpot account. This endpoint allows you to filter the lists by their IDs and optionally include filters applied to the lists. It is useful for managing and organizing your CRM data by accessing specific lists.", "operationId" : "get-/crm/lists/2026-09", "parameters" : [ { "name" : "includeFilters", "in" : "query", "description" : "A boolean indicating whether to include filters applied to the lists in the response. Defaults to false.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "boolean", "example" : null, "default" : false } }, { "name" : "listIds", "in" : "query", "description" : "An array of list IDs to filter the lists returned. Each ID should be a string.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "array", "example" : null, "items" : { "type" : "string", "example" : null } } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListsByIdResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] }, "post" : { "tags" : [ "Basic" ], "summary" : "Create List", "description" : "Create a new list in your HubSpot account using the specified parameters. This endpoint allows you to define the properties and criteria for the list, which can be used for organizing and managing contacts or other CRM objects.", "operationId" : "post-/crm/lists/2026-09", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListCreateRequest" }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListCreateResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write" ] }, { "oauth2" : [ "crm.segments.write" ] } ] } }, "/crm/lists/2026-09/folders" : { "get" : { "tags" : [ "Basic" ], "summary" : "List folders", "description" : "Retrieve a list of folders within the CRM lists. This endpoint can be used to navigate through the folder structure by specifying a folder ID. It is useful for organizing and managing lists within folders.", "operationId" : "get-/crm/lists/2026-09/folders", "parameters" : [ { "name" : "folderId", "in" : "query", "description" : "The unique identifier of the folder to retrieve. Defaults to '0' if not specified.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "example" : null, "default" : "0" } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListFolderFetchResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] }, "post" : { "tags" : [ "Basic" ], "summary" : "Create Folder", "description" : "Create a new folder within the CRM lists in your HubSpot account. This operation allows you to organize your lists into folders for better management and accessibility.", "operationId" : "post-/crm/lists/2026-09/folders", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListFolderCreateRequest" }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListFolderCreateResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/folders/move-list" : { "put" : { "tags" : [ "Basic" ], "summary" : "Move List", "description" : "Move a list to a different folder within your HubSpot account. This operation requires specifying the list and the target folder. It is useful for organizing lists into different categories or structures.", "operationId" : "put-/crm/lists/2026-09/folders/move-list", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListMoveRequest" }, "example" : null } }, "required" : true }, "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/folders/{folderId}" : { "delete" : { "tags" : [ "Basic" ], "summary" : "Delete folder", "description" : "Delete a specific folder within the CRM lists by providing the folder's unique identifier. This operation is useful for removing folders that are no longer needed or to clean up the folder structure within your CRM lists.", "operationId" : "delete-/crm/lists/2026-09/folders/{folderId}", "parameters" : [ { "name" : "folderId", "in" : "path", "description" : "The unique identifier of the folder to delete.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/folders/{folderId}/move/{newParentFolderId}" : { "put" : { "tags" : [ "Basic" ], "summary" : "Move Folder", "description" : "Move a folder to a new parent folder within the CRM lists. This operation is useful for reorganizing your folder structure by changing the parent folder of a specified folder.", "operationId" : "put-/crm/lists/2026-09/folders/{folderId}/move/{newParentFolderId}", "parameters" : [ { "name" : "folderId", "in" : "path", "description" : "The unique identifier of the folder to be moved.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "newParentFolderId", "in" : "path", "description" : "The unique identifier of the new parent folder where the folder will be moved.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListFolderFetchResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/folders/{folderId}/rename" : { "put" : { "tags" : [ "Basic" ], "summary" : "Rename folder", "description" : "Rename an existing folder in the CRM lists by specifying the folder's ID and the new desired name. This can be useful for organizing and updating folder structures within your account.", "operationId" : "put-/crm/lists/2026-09/folders/{folderId}/rename", "parameters" : [ { "name" : "folderId", "in" : "path", "description" : "The unique identifier of the folder to be renamed.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "newFolderName", "in" : "query", "description" : "The new name for the folder. It should be a string representing the desired folder name.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListFolderFetchResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/idmapping" : { "get" : { "tags" : [ "Basic" ], "summary" : "Retrieve ID Mapping", "description" : "Retrieve the mapping of legacy list IDs to their current IDs in the HubSpot system. This endpoint is useful for migrating or updating systems that rely on legacy list identifiers.", "operationId" : "get-/crm/lists/2026-09/idmapping", "parameters" : [ { "name" : "legacyListId", "in" : "query", "description" : "The legacy list ID for which you want to retrieve the current ID mapping.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicMigrationMapping" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] }, "post" : { "tags" : [ "Basic" ], "summary" : "Map IDs", "description" : "Map legacy list IDs to their corresponding new IDs in the HubSpot system. This endpoint is useful for migrating data from older systems to the current HubSpot structure, ensuring that all list references are updated correctly.", "operationId" : "post-/crm/lists/2026-09/idmapping", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "type" : "array", "example" : null, "items" : { "type" : "string", "example" : null } }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicBatchMigrationMapping" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] } }, "/crm/lists/2026-09/object-type-id/{objectTypeId}/name/{listName}" : { "get" : { "tags" : [ "Basic" ], "summary" : "Retrieve List", "description" : "Retrieve a specific list by its name and object type ID in your HubSpot account. This endpoint allows you to access the details of a list, which can be useful for managing and analyzing your CRM data. You can also choose to include filters in the response.", "operationId" : "get-/crm/lists/2026-09/object-type-id/{objectTypeId}/name/{listName}", "parameters" : [ { "name" : "listName", "in" : "path", "description" : "The name of the list to retrieve.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "objectTypeId", "in" : "path", "description" : "The unique identifier of the object type associated with the list.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "includeFilters", "in" : "query", "description" : "A boolean indicating whether to include filters in the response. Defaults to false.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "boolean", "example" : null, "default" : false } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListFetchResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] } }, "/crm/lists/2026-09/records/memberships/batch/read" : { "post" : { "tags" : [ "Batch" ], "summary" : "Batch read memberships", "description" : "Retrieve batch membership information for records within specified lists. This endpoint is useful for obtaining membership details in bulk, allowing for efficient data retrieval when dealing with multiple records.", "operationId" : "post-/crm/lists/2026-09/records/memberships/batch/read", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/BatchInputRecordIdInput" }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/BatchResponseRecordIdWithMemberships" }, "example" : null } } }, "207" : { "description" : "multiple statuses", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/BatchResponseRecordIdWithMembershipsWithErrors" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] } }, "/crm/lists/2026-09/records/{objectTypeId}/{recordId}/memberships" : { "get" : { "tags" : [ "Basic" ], "summary" : "Retrieve memberships", "description" : "Retrieve the list memberships for a specific record within a specified object type. This endpoint is useful for understanding which lists a particular record is a member of, based on the object type and record ID provided.", "operationId" : "get-/crm/lists/2026-09/records/{objectTypeId}/{recordId}/memberships", "parameters" : [ { "name" : "objectTypeId", "in" : "path", "description" : "The unique identifier of the object type to which the record belongs.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "recordId", "in" : "path", "description" : "The unique identifier of the record for which memberships are being retrieved.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ApiCollectionResponseRecordListMembership" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] } }, "/crm/lists/2026-09/search" : { "post" : { "tags" : [ "Search" ], "summary" : "Search Lists", "description" : "Search for lists within your HubSpot account using various criteria. This endpoint allows you to filter and retrieve lists based on specific search parameters, making it easier to manage and organize your lists effectively.", "operationId" : "post-/crm/lists/2026-09/search", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListSearchRequest" }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListSearchResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] } }, "/crm/lists/2026-09/{listId}" : { "get" : { "tags" : [ "Basic" ], "summary" : "Retrieve list", "description" : "Retrieve details of a specific list in your HubSpot account using the list's unique identifier. This endpoint allows you to optionally include filters associated with the list in the response.", "operationId" : "get-/crm/lists/2026-09/{listId}", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list to retrieve.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "includeFilters", "in" : "query", "description" : "A boolean indicating whether to include the list's filters in the response. Defaults to false.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "boolean", "example" : null, "default" : false } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListFetchResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] }, "delete" : { "tags" : [ "Basic" ], "summary" : "Delete", "description" : "Delete a specific list in your HubSpot account using its unique identifier. This operation will permanently remove the list and its associated data, ensuring it is no longer accessible.", "operationId" : "delete-/crm/lists/2026-09/{listId}", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list to delete.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/memberships" : { "get" : { "tags" : [ "Basic" ], "summary" : "List memberships", "description" : "Retrieve the memberships of a specific list in your HubSpot account. This endpoint allows you to paginate through the list memberships using cursor-based pagination. It is useful for obtaining detailed membership information for a given list.", "operationId" : "get-/crm/lists/2026-09/{listId}/memberships", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list whose memberships are to be retrieved.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "after", "in" : "query", "description" : "A cursor token for pagination. Use the value from the previous response's paging.next.after field to retrieve the next set of results.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "example" : null } }, { "name" : "before", "in" : "query", "description" : "A cursor token for pagination. Use this to retrieve the previous set of results.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "example" : null } }, { "name" : "limit", "in" : "query", "description" : "The maximum number of results to display per page. Defaults to 100.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "integer", "format" : "int32", "example" : null, "default" : 100 } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ApiCollectionResponseJoinTimeAndRecordId" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] }, "delete" : { "tags" : [ "Basic" ], "summary" : "Delete memberships", "description" : "Delete all memberships associated with a specific list in your HubSpot account. This operation is useful when you need to remove all members from a list, effectively clearing its membership data.", "operationId" : "delete-/crm/lists/2026-09/{listId}/memberships", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list whose memberships are to be deleted.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/memberships/add" : { "put" : { "tags" : [ "Basic" ], "summary" : "Add memberships", "description" : "Add memberships to a specified list in your HubSpot account. This endpoint allows you to add multiple memberships to a list identified by the listId. It is useful for managing list memberships in bulk, ensuring that the specified records are included in the list.", "operationId" : "put-/crm/lists/2026-09/{listId}/memberships/add", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list to which memberships will be added.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "requestBody" : { "content" : { "application/json" : { "schema" : { "type" : "array", "example" : null, "items" : { "type" : "string", "example" : null } }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/MembershipsUpdateResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/memberships/add-and-remove" : { "put" : { "tags" : [ "Basic" ], "summary" : "Update memberships", "description" : "Update the memberships of a list by adding and removing members in a single operation. This endpoint allows you to efficiently manage list memberships by specifying which members to add and which to remove in one request.", "operationId" : "put-/crm/lists/2026-09/{listId}/memberships/add-and-remove", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list whose memberships are to be updated.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/MembershipChangeRequest" }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/MembershipsUpdateResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/memberships/add-from/{sourceListId}" : { "put" : { "tags" : [ "Basic" ], "summary" : "Add memberships", "description" : "Add memberships to a specified list from another source list. This operation is useful for consolidating list memberships by transferring members from one list to another. The endpoint does not return any content upon successful execution.", "operationId" : "put-/crm/lists/2026-09/{listId}/memberships/add-from/{sourceListId}", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the target list to which memberships will be added.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "sourceListId", "in" : "path", "description" : "The unique identifier of the source list from which memberships will be transferred.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/memberships/join-order" : { "get" : { "tags" : [ "Basic" ], "summary" : "Retrieve join order", "description" : "Retrieve the join order of memberships for a specific list in your HubSpot account. This endpoint allows you to view the order in which records joined the list, which can be useful for tracking membership changes over time.", "operationId" : "get-/crm/lists/2026-09/{listId}/memberships/join-order", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list whose membership join order is being retrieved.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "after", "in" : "query", "description" : "The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "example" : null } }, { "name" : "before", "in" : "query", "description" : "A cursor token to retrieve results before a specific point in the list.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "example" : null } }, { "name" : "limit", "in" : "query", "description" : "The maximum number of results to display per page. Defaults to 100.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "integer", "format" : "int32", "example" : null, "default" : 100 } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ApiCollectionResponseJoinTimeAndRecordId" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] } }, "/crm/lists/2026-09/{listId}/memberships/remove" : { "put" : { "tags" : [ "Basic" ], "summary" : "Remove memberships", "description" : "Remove memberships from a specific list in your HubSpot account. This operation is useful for managing list memberships by removing specified records from the list. The request requires a list of record IDs to be removed from the specified list.", "operationId" : "put-/crm/lists/2026-09/{listId}/memberships/remove", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list from which memberships will be removed.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "requestBody" : { "content" : { "application/json" : { "schema" : { "type" : "array", "example" : null, "items" : { "type" : "string", "example" : null } }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/MembershipsUpdateResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/restore" : { "put" : { "tags" : [ "Basic" ], "summary" : "Restore", "description" : "Restore a previously deleted list in your HubSpot account. This operation allows you to recover lists that have been removed, ensuring that any associated data or configurations are reinstated. This can be useful for retrieving lists that were mistakenly deleted or are needed again for ongoing operations.", "operationId" : "put-/crm/lists/2026-09/{listId}/restore", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list to restore.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/schedule-conversion" : { "get" : { "tags" : [ "Basic" ], "summary" : "Retrieve", "description" : "Retrieve the scheduled conversion details for a specific list in your HubSpot account. This endpoint provides information about any scheduled conversions for the specified list, allowing you to manage and track list conversions effectively.", "operationId" : "get-/crm/lists/2026-09/{listId}/schedule-conversion", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list for which the scheduled conversion details are to be retrieved.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicListConversionResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] }, "put" : { "tags" : [ "Basic" ], "summary" : "Schedule Conversion", "description" : "Schedule a conversion for a specific list in your HubSpot account. This operation allows you to set a conversion time for the list identified by the listId. Use this endpoint to manage the conversion schedule of your lists effectively.", "operationId" : "put-/crm/lists/2026-09/{listId}/schedule-conversion", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list for which the conversion schedule is to be set.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicListConversionTime" }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicListConversionResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] }, "delete" : { "tags" : [ "Basic" ], "summary" : "Delete schedule conversion", "description" : "Delete a scheduled conversion for a specific list in your HubSpot account. This operation is useful when you need to cancel a previously scheduled conversion for a list identified by its listId.", "operationId" : "delete-/crm/lists/2026-09/{listId}/schedule-conversion", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list for which the scheduled conversion is to be deleted.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/size-and-edits-history/between" : { "get" : { "tags" : [ "Basic" ], "summary" : "Retrieve history", "description" : "Retrieve the size and edits history of a specific list within a defined date range. This endpoint is useful for tracking changes and understanding the evolution of list size over time.", "operationId" : "get-/crm/lists/2026-09/{listId}/size-and-edits-history/between", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list for which the size and edits history is being retrieved.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "endDate", "in" : "query", "description" : "The end date for the history retrieval, formatted as a date-time string.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "format" : "date-time", "example" : null } }, { "name" : "startDate", "in" : "query", "description" : "The start date for the history retrieval, formatted as a date-time string.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "format" : "date-time", "example" : null } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListSizeAndEditHistoryResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.segments.read" ] }, { "oauth2" : [ "crm.lists.read" ] } ] } }, "/crm/lists/2026-09/{listId}/update-list-filters" : { "put" : { "tags" : [ "Basic" ], "summary" : "Update list filters", "description" : "Update the filters for a specific list in your HubSpot account. This operation allows you to modify the criteria used to include objects in the list. You can also specify whether objects should be enrolled in workflows based on the updated filters.", "operationId" : "put-/crm/lists/2026-09/{listId}/update-list-filters", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list whose filters are to be updated.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "enrollObjectsInWorkflows", "in" : "query", "description" : "A boolean indicating whether to enroll objects in workflows based on the updated filters. Defaults to false.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "boolean", "example" : null, "default" : false } } ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListFilterUpdateRequest" }, "example" : null } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListUpdateResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } }, "/crm/lists/2026-09/{listId}/update-list-name" : { "put" : { "tags" : [ "Basic" ], "summary" : "Update list name", "description" : "Update the name of a specific list in your HubSpot account. This endpoint allows you to change the list's name by specifying the new name as a query parameter. It is useful for keeping your lists organized and up-to-date with relevant titles.", "operationId" : "put-/crm/lists/2026-09/{listId}/update-list-name", "parameters" : [ { "name" : "listId", "in" : "path", "description" : "The unique identifier of the list whose name is to be updated.", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string", "example" : null } }, { "name" : "includeFilters", "in" : "query", "description" : "A boolean indicating whether to include filters in the response. Defaults to false.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "boolean", "example" : null, "default" : false } }, { "name" : "listName", "in" : "query", "description" : "The new name for the list. It should be a string representing the desired name.", "required" : false, "style" : "form", "explode" : true, "schema" : { "type" : "string", "example" : null } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/ListUpdateResponse" }, "example" : null } } }, "default" : { "description" : "", "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "crm.lists.write", "crm.segments.read" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.lists.read" ] }, { "oauth2" : [ "crm.segments.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.segments.write" ] }, { "oauth2" : [ "crm.lists.read", "crm.lists.write" ] }, { "oauth2" : [ "cms.membership.access_groups.write", "crm.segments.read" ] } ] } } }, "components" : { "schemas" : { "ApiCollectionResponseJoinTimeAndRecordId" : { "required" : [ "results" ], "type" : "object", "properties" : { "paging" : { "$ref" : "#/components/schemas/Paging" }, "results" : { "type" : "array", "description" : "An array of objects, each containing join time and record ID information.", "example" : null, "items" : { "$ref" : "#/components/schemas/JoinTimeAndRecordId" } }, "total" : { "type" : "integer", "description" : "An integer representing the total number of results available.", "format" : "int64", "example" : null } }, "example" : null }, "ApiCollectionResponseRecordListMembership" : { "required" : [ "results" ], "type" : "object", "properties" : { "paging" : { "$ref" : "#/components/schemas/Paging" }, "results" : { "type" : "array", "description" : "An array of record list memberships, each detailing the membership of a record in a list.", "example" : null, "items" : { "$ref" : "#/components/schemas/RecordListMembership" } }, "total" : { "type" : "integer", "description" : "An integer representing the total number of record list memberships available.", "format" : "int64", "example" : null } }, "example" : null }, "BatchInputRecordIdInput" : { "required" : [ "inputs" ], "type" : "object", "properties" : { "inputs" : { "type" : "array", "description" : "An array of record ID inputs. Each element is a string representing a unique record ID to be processed in the batch operation.", "example" : null, "items" : { "$ref" : "#/components/schemas/RecordIdInput" } } }, "example" : null }, "BatchResponseRecordIdWithMemberships" : { "required" : [ "completedAt", "results", "startedAt", "status" ], "type" : "object", "properties" : { "completedAt" : { "type" : "string", "description" : "The date and time when the batch operation was completed, in ISO 8601 format.", "format" : "date-time", "example" : null }, "links" : { "type" : "object", "additionalProperties" : { "type" : "string", "example" : null }, "description" : "An object containing additional links related to the batch operation.", "example" : null }, "requestedAt" : { "type" : "string", "description" : "The date and time when the batch operation was requested, in ISO 8601 format.", "format" : "date-time", "example" : null }, "results" : { "type" : "array", "description" : "An array of results from the batch operation, each containing record IDs and their associated memberships.", "example" : null, "items" : { "$ref" : "#/components/schemas/RecordIdWithMemberships" } }, "startedAt" : { "type" : "string", "description" : "The date and time when the batch operation started, in ISO 8601 format.", "format" : "date-time", "example" : null }, "status" : { "type" : "string", "description" : "The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.", "example" : null, "enum" : [ "CANCELED", "COMPLETE", "PENDING", "PROCESSING" ] } }, "example" : null }, "BatchResponseRecordIdWithMembershipsWithErrors" : { "required" : [ "completedAt", "results", "startedAt", "status" ], "type" : "object", "properties" : { "completedAt" : { "type" : "string", "description" : "The date and time when the batch process was completed, in ISO 8601 format.", "format" : "date-time", "example" : null }, "errors" : { "type" : "array", "description" : "An array of errors that occurred during the batch process. Each item in the array is a reference to a StandardError schema.", "example" : null, "items" : { "$ref" : "#/components/schemas/StandardError" } }, "links" : { "type" : "object", "additionalProperties" : { "type" : "string", "example" : null }, "description" : "An object containing additional links related to the batch process. Each key-value pair represents a link name and its URL.", "example" : null }, "numErrors" : { "type" : "integer", "description" : "The total number of errors encountered during the batch process.", "format" : "int32", "example" : null }, "requestedAt" : { "type" : "string", "description" : "The date and time when the batch process was requested, in ISO 8601 format.", "format" : "date-time", "example" : null }, "results" : { "type" : "array", "description" : "An array of results containing record IDs with their memberships. Each item in the array is a reference to a RecordIdWithMemberships schema.", "example" : null, "items" : { "$ref" : "#/components/schemas/RecordIdWithMemberships" } }, "startedAt" : { "type" : "string", "description" : "The date and time when the batch process started, in ISO 8601 format.", "format" : "date-time", "example" : null }, "status" : { "type" : "string", "description" : "The current status of the batch process. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.", "example" : null, "enum" : [ "CANCELED", "COMPLETE", "PENDING", "PROCESSING" ] } }, "example" : null }, "Error" : { "required" : [ "category", "correlationId", "message" ], "type" : "object", "properties" : { "category" : { "type" : "string", "description" : "A string indicating the category of the error.", "example" : null }, "context" : { "type" : "object", "additionalProperties" : { "type" : "array", "example" : null, "items" : { "type" : "string", "example" : null } }, "description" : "An object containing additional context about the error, represented as a map of key-value pairs.", "example" : "{invalidPropertyName=[propertyValue], missingScopes=[scope1, scope2]}" }, "correlationId" : { "type" : "string", "description" : "A unique identifier for the error instance, used for tracking and debugging purposes.", "format" : "uuid", "example" : "aeb5f871-7f07-4993-9211-075dc63e7cbf" }, "errors" : { "type" : "array", "description" : "An array of ErrorDetail objects, each providing additional information about specific errors that occurred.", "example" : null, "items" : { "$ref" : "#/components/schemas/ErrorDetail" } }, "links" : { "type" : "object", "additionalProperties" : { "type" : "string", "example" : null }, "description" : "An object containing related links, represented as a map of link names to URLs.", "example" : null }, "message" : { "type" : "string", "description" : "A string that provides a human-readable description of the error.", "example" : "An error occurred" }, "subCategory" : { "type" : "string", "description" : "An object representing a more specific classification of the error within its category.", "example" : null } }, "description" : "Represents an error response returned by the API when an operation fails. This component is used in various endpoints to provide detailed information about the error encountered.", "example" : { "message" : "Invalid input (details will vary based on the error)", "correlationId" : "aeb5f871-7f07-4993-9211-075dc63e7cbf", "category" : "VALIDATION_ERROR", "links" : { "knowledge-base" : "https://www.hubspot.com/products/service/knowledge-base" } } }, "ErrorDetail" : { "required" : [ "message" ], "type" : "object", "properties" : { "code" : { "type" : "string", "description" : "A string representing a specific error code that identifies the type of error.", "example" : null }, "context" : { "type" : "object", "additionalProperties" : { "type" : "array", "example" : null, "items" : { "type" : "string", "example" : null } }, "description" : "An object containing additional context about the error, represented as a map of strings to arrays of strings, which can include specific parameters or values related to the error.", "example" : "{missingScopes=[scope1, scope2]}" }, "in" : { "type" : "string", "description" : "A string indicating the location where the error occurred, such as 'query', 'header', or 'body'.", "example" : null }, "message" : { "type" : "string", "description" : "A string containing a human-readable description of the error.", "example" : null }, "subCategory" : { "type" : "string", "description" : "An object providing additional categorization of the error, which may contain further details.", "example" : null } }, "description" : "Represents detailed information about an error that occurred in the API. This component is used to provide additional context and specifics about errors, typically as part of an error response.", "example" : null }, "JoinTimeAndRecordId" : { "required" : [ "membershipTimestamp", "recordId" ], "type" : "object", "properties" : { "membershipTimestamp" : { "type" : "string", "description" : "The timestamp indicating when the record was added to the list. It is represented as a string in date-time format.", "format" : "date-time", "example" : null }, "recordId" : { "type" : "string", "description" : "The unique identifier for the record within the list. It is represented as a string.", "example" : null } }, "example" : null }, "ListCreateRequest" : { "required" : [ "name", "objectTypeId", "processingType" ], "type" : "object", "properties" : { "customProperties" : { "type" : "object", "additionalProperties" : { "type" : "string", "example" : null }, "description" : "An object containing custom properties for the list. These properties allow for additional customization of the list.", "example" : null }, "filterBranch" : { "description" : "An object that defines the filter criteria for the list. It determines which records are included in the list based on specified conditions.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] }, "listFolderId" : { "type" : "integer", "description" : "A string representing the ID of the folder where the list will be stored. This helps in organizing lists into folders.", "format" : "int32", "example" : null }, "listPermissions" : { "$ref" : "#/components/schemas/PublicListPermissions" }, "membershipSettings" : { "$ref" : "#/components/schemas/PublicMembershipSettings" }, "name" : { "type" : "string", "description" : "A string representing the name of the list. This is used to identify the list within the system.", "example" : null }, "objectTypeId" : { "type" : "string", "description" : "A string indicating the type of objects that the list will contain. This helps in categorizing the list based on the object type.", "example" : null }, "processingType" : { "type" : "string", "description" : "A string that specifies the processing type of the list. It defines how the list is processed within the system.", "example" : null } }, "example" : null }, "ListCreateResponse" : { "required" : [ "list" ], "type" : "object", "properties" : { "list" : { "$ref" : "#/components/schemas/PublicObjectList" } }, "example" : null }, "ListFetchResponse" : { "required" : [ "list" ], "type" : "object", "properties" : { "list" : { "$ref" : "#/components/schemas/PublicObjectList" } }, "example" : null }, "ListFilterUpdateRequest" : { "required" : [ "filterBranch" ], "type" : "object", "properties" : { "filterBranch" : { "description" : "A complex object that defines the structure and logic of the filters to be applied to the list. It can include various types of filter branches and filters, allowing for detailed and specific filtering criteria.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] } }, "example" : null }, "ListFolderCreateRequest" : { "required" : [ "name" ], "type" : "object", "properties" : { "name" : { "type" : "string", "description" : "A string representing the name of the folder to be created.", "example" : null }, "parentFolderId" : { "type" : "string", "description" : "A string representing the unique identifier of the parent folder under which the new folder will be created.", "example" : null } }, "example" : null }, "ListFolderCreateResponse" : { "required" : [ "folder" ], "type" : "object", "properties" : { "folder" : { "$ref" : "#/components/schemas/PublicListFolder" } }, "example" : null }, "ListFolderFetchResponse" : { "required" : [ "folder" ], "type" : "object", "properties" : { "folder" : { "$ref" : "#/components/schemas/PublicListFolder" } }, "example" : null }, "ListMoveRequest" : { "required" : [ "listId", "newFolderId" ], "type" : "object", "properties" : { "listId" : { "type" : "string", "description" : "The unique identifier of the list to be moved. It is a string.", "example" : null }, "newFolderId" : { "type" : "string", "description" : "The unique identifier of the folder where the list will be moved to. It is a string.", "example" : null } }, "example" : null }, "ListSearchRequest" : { "required" : [ "additionalProperties", "listIds", "offset", "processingTypes" ], "type" : "object", "properties" : { "additionalProperties" : { "type" : "array", "description" : "An array of strings representing additional properties to include in the search.", "example" : null, "items" : { "type" : "string", "example" : null } }, "count" : { "type" : "integer", "description" : "An integer specifying the number of results to return.", "format" : "int32", "example" : null }, "listIds" : { "type" : "array", "description" : "An array of strings specifying the IDs of the lists to search.", "example" : null, "items" : { "type" : "string", "example" : null } }, "objectTypeId" : { "type" : "string", "description" : "A string representing the object type ID to filter the lists.", "example" : null }, "offset" : { "type" : "integer", "description" : "An integer used for pagination, indicating the starting point for the search results.", "format" : "int32", "example" : null }, "processingTypes" : { "type" : "array", "description" : "An array of strings indicating the types of processing to apply to the search results.", "example" : null, "items" : { "type" : "string", "example" : null } }, "query" : { "type" : "string", "description" : "A string representing the search query to filter the lists.", "example" : null }, "sort" : { "type" : "string", "description" : "A string specifying the sorting criteria for the search results.", "example" : null } }, "example" : null }, "ListSearchResponse" : { "required" : [ "hasMore", "lists", "offset", "total" ], "type" : "object", "properties" : { "hasMore" : { "type" : "boolean", "description" : "A boolean indicating whether there are more results available beyond the current page.", "example" : null }, "lists" : { "type" : "array", "description" : "An array of objects representing the lists found in the search, each conforming to the PublicObjectListSearchResult schema.", "example" : null, "items" : { "$ref" : "#/components/schemas/PublicObjectListSearchResult" } }, "offset" : { "type" : "integer", "description" : "An integer indicating the position in the list of results where the current page starts.", "format" : "int32", "example" : null }, "total" : { "type" : "integer", "description" : "An integer indicating the total number of lists found by the search.", "format" : "int32", "example" : null } }, "example" : null }, "ListSizeAndEditHistoryResponse" : { "required" : [ "editHistory", "sizeHistory" ], "type" : "object", "properties" : { "editHistory" : { "type" : "array", "description" : "An array of date-time strings indicating the timestamps of edits made to the list.", "example" : null, "items" : { "type" : "string", "format" : "date-time", "example" : null } }, "sizeHistory" : { "type" : "array", "description" : "An array of ListSizeDataPoint objects representing the historical size data of the list.", "example" : null, "items" : { "$ref" : "#/components/schemas/ListSizeDataPoint" } } }, "example" : null }, "ListSizeDataPoint" : { "required" : [ "size", "timestamp" ], "type" : "object", "properties" : { "size" : { "type" : "integer", "description" : "An integer representing the size of the list at the given timestamp.", "format" : "int64", "example" : null }, "timestamp" : { "type" : "string", "description" : "A Unix timestamp in milliseconds indicating the specific point in time when the list size was recorded.", "format" : "date-time", "example" : null } }, "example" : null }, "ListUpdateResponse" : { "type" : "object", "properties" : { "updatedList" : { "$ref" : "#/components/schemas/PublicObjectList" } }, "example" : null }, "ListsByIdResponse" : { "required" : [ "lists" ], "type" : "object", "properties" : { "lists" : { "type" : "array", "description" : "An array of PublicObjectList objects, each representing a list retrieved by its ID. This property is required.", "example" : null, "items" : { "$ref" : "#/components/schemas/PublicObjectList" } } }, "example" : null }, "MembershipChangeRequest" : { "required" : [ "recordIdsToAdd", "recordIdsToRemove" ], "type" : "object", "properties" : { "recordIdsToAdd" : { "type" : "array", "description" : "An array of strings representing the unique identifiers of records to be added to the list.", "example" : null, "items" : { "type" : "string", "example" : null } }, "recordIdsToRemove" : { "type" : "array", "description" : "An array of strings representing the unique identifiers of records to be removed from the list.", "example" : null, "items" : { "type" : "string", "example" : null } } }, "example" : null }, "MembershipsUpdateResponse" : { "required" : [ "recordIdsMissing", "recordIdsRemoved", "recordsIdsAdded" ], "type" : "object", "properties" : { "recordIdsMissing" : { "type" : "array", "description" : "An array of strings representing the IDs of records that were not found or could not be processed during the update.", "example" : null, "items" : { "type" : "string", "example" : null } }, "recordIdsRemoved" : { "type" : "array", "description" : "An array of strings representing the IDs of records that were successfully removed from the list.", "example" : null, "items" : { "type" : "string", "example" : null } }, "recordsIdsAdded" : { "type" : "array", "description" : "An array of strings representing the IDs of records that were successfully added to the list.", "example" : null, "items" : { "type" : "string", "example" : null } } }, "example" : null }, "NextPage" : { "required" : [ "after" ], "type" : "object", "properties" : { "after" : { "type" : "string", "description" : "A string token used as a cursor to retrieve the next page of results. It is returned as the `paging.next.after` JSON property in a paged response.", "example" : null }, "link" : { "type" : "string", "description" : "A URL string that provides a direct link to the next page of results.", "example" : null } }, "description" : "Specifies the paging information needed to retrieve the next set of results in a paginated API response", "example" : null }, "Paging" : { "type" : "object", "properties" : { "next" : { "$ref" : "#/components/schemas/NextPage" }, "prev" : { "$ref" : "#/components/schemas/PreviousPage" } }, "description" : "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.", "example" : null }, "PreviousPage" : { "required" : [ "before" ], "type" : "object", "properties" : { "before" : { "type" : "string", "description" : "A string token used to identify the position in the list before the current page, enabling navigation to the previous page.", "example" : null }, "link" : { "type" : "string", "description" : "A URL string that provides a direct link to the previous page of results.", "example" : null } }, "description" : "specifies the paging information needed to retrieve the previous set of results in a paginated API response", "example" : null }, "PublicAbsoluteComparativeTimestampRefineBy" : { "title" : "ABSOLUTE_COMPARATIVE", "required" : [ "comparison", "timestamp", "type" ], "type" : "object", "properties" : { "comparison" : { "type" : "string", "description" : "A string representing the comparison operation to be performed with the timestamp.", "example" : null }, "timestamp" : { "type" : "integer", "description" : "An integer representing the specific timestamp to be used in the comparison, typically expressed as a Unix timestamp in milliseconds.", "format" : "int64", "example" : null }, "type" : { "type" : "string", "description" : "A string representing the type of refinement, which is 'ABSOLUTE_COMPARATIVE' by default.", "example" : null, "default" : "ABSOLUTE_COMPARATIVE", "enum" : [ "ABSOLUTE_COMPARATIVE" ] } }, "description" : "The PublicAbsoluteComparativeTimestampRefineBy component is used to refine timestamp-based filters in HubSpot's ListAppService API. It specifies an absolute timestamp and a comparison type to filter data based on specific time criteria.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicAbsoluteRangedTimestampRefineBy" : { "title" : "ABSOLUTE_RANGED", "required" : [ "lowerTimestamp", "rangeType", "type", "upperTimestamp" ], "type" : "object", "properties" : { "lowerTimestamp" : { "type" : "integer", "description" : "An integer representing the lower bound of the timestamp range, in Unix time format (milliseconds).", "format" : "int64", "example" : null }, "rangeType" : { "type" : "string", "description" : "A string that specifies the type of range being used in the filter.", "example" : null }, "type" : { "type" : "string", "description" : "A string that indicates the type of refine by operation, which is 'ABSOLUTE_RANGED'.", "example" : null, "default" : "ABSOLUTE_RANGED", "enum" : [ "ABSOLUTE_RANGED" ] }, "upperTimestamp" : { "type" : "integer", "description" : "An integer representing the upper bound of the timestamp range, in Unix time format (milliseconds).", "format" : "int64", "example" : null } }, "description" : "The PublicAbsoluteRangedTimestampRefineBy component is used to define a filter based on an absolute time range. It specifies a fixed lower and upper timestamp to refine results in API requests, particularly for filtering data within a specific time period.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicAdsSearchFilter" : { "title" : "ADS_SEARCH", "required" : [ "adNetwork", "entityType", "filterType", "operator", "searchTermType", "searchTerms" ], "type" : "object", "properties" : { "adNetwork" : { "type" : "string", "description" : "The advertising network being targeted by the filter. This is a string value indicating the ad network.", "example" : null }, "entityType" : { "type" : "string", "description" : "The type of entity to which the filter is applied. This is a string value representing the entity type.", "example" : null }, "filterType" : { "type" : "string", "description" : "The type of filter being applied. This is a string value that defines the category or nature of the filter.", "example" : null, "default" : "ADS_SEARCH", "enum" : [ "ADS_SEARCH" ] }, "operator" : { "type" : "string", "description" : "The operator used to apply the filter. This is a string value that specifies the logical operation for the filter.", "example" : null }, "searchTermType" : { "type" : "string", "description" : "The type of search term used in the filter. This is a string value that specifies how the search term is interpreted.", "example" : null }, "searchTerms" : { "type" : "array", "description" : "An array of strings representing the search terms used in the filter.", "example" : null, "items" : { "type" : "string", "example" : null } } }, "description" : "The PublicAdsSearchFilter component is used to define filters for searching advertisements within the HubSpot API. It specifies the criteria for filtering ads based on various parameters such as filter type, entity type, search term type, and more.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicAdsTimeFilter" : { "title" : "ADS_TIME", "required" : [ "filterType", "pruningRefineBy" ], "type" : "object", "properties" : { "filterType" : { "type" : "string", "description" : "A string representing the type of filter being applied. The default value is 'ADS_TIME'.", "example" : null, "default" : "ADS_TIME", "enum" : [ "ADS_TIME" ] }, "pruningRefineBy" : { "description" : "An optional property that allows further refinement of the filter criteria based on time. It can be one of several types, such as relative or absolute time comparisons.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "The PublicAdsTimeFilter component is used to define a filter for advertisements based on time-related criteria. It is typically utilized in scenarios where time-based filtering of ad data is required.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicAllHistoryRefineBy" : { "title" : "ALL_HISTORY", "required" : [ "type" ], "type" : "object", "properties" : { "type" : { "type" : "string", "description" : "A string that specifies the type of refinement, with a default value of 'ALL_HISTORY'.", "example" : null, "default" : "ALL_HISTORY", "enum" : [ "ALL_HISTORY" ] } }, "description" : "The PublicAllHistoryRefineBy component is used to specify a refinement criterion that considers all historical data. It is typically used within filter operations to ensure that all past occurrences are taken into account.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicAllPropertyTypesOperation" : { "title" : "ALL_PROPERTY", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether objects with no value set for the property should be included in the operation. This property is required.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation being performed. This property is required.", "example" : null, "default" : "ALL_PROPERTY", "enum" : [ "ALL_PROPERTY" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the filter operation. This property is required.", "example" : null } }, "description" : "The PublicAllPropertyTypesOperation component represents a filter operation that can handle various property types within the HubSpot API. It is used to specify conditions for filtering objects based on their properties, and it is typically utilized in search or filter operations.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicAndFilterBranch" : { "title" : "AND", "required" : [ "filterBranchOperator", "filterBranchType", "filterBranches", "filters" ], "type" : "object", "properties" : { "filterBranchOperator" : { "type" : "string", "description" : "A string representing the operator used within this filter branch.", "example" : null }, "filterBranchType" : { "type" : "string", "description" : "A string indicating the type of filter branch. Defaults to 'AND'.", "example" : null, "default" : "AND", "enum" : [ "AND" ] }, "filterBranches" : { "type" : "array", "description" : "An array of nested filter branches. Each item can be a branch of various types, such as 'OR', 'AND', 'NOT_ALL', etc.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] } }, "filters" : { "type" : "array", "description" : "An array of filters that apply to this branch. Each filter can be of various types, such as property filters, event filters, or subscription filters.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicPropertyFilter" }, { "$ref" : "#/components/schemas/PublicAssociationInListFilter" }, { "$ref" : "#/components/schemas/PublicPageViewAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicCtaAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicEventAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionOnPageFilter" }, { "$ref" : "#/components/schemas/PublicIntegrationEventFilter" }, { "$ref" : "#/components/schemas/PublicEmailSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicCommunicationSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyValueFilter" }, { "$ref" : "#/components/schemas/PublicWebinarFilter" }, { "$ref" : "#/components/schemas/PublicEmailEventFilter" }, { "$ref" : "#/components/schemas/PublicPrivacyAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicAdsSearchFilter" }, { "$ref" : "#/components/schemas/PublicAdsTimeFilter" }, { "$ref" : "#/components/schemas/PublicInListFilter" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilter" }, { "$ref" : "#/components/schemas/PublicConstantFilter" } ] } } }, "description" : "Represents a logical 'AND' filter branch used in constructing complex filter criteria for lists in the HubSpot ListAppService API. This component is utilized to group multiple filters and sub-branches that must all be true for the branch to be considered true.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicAssociationFilterBranch" : { "title" : "ASSOCIATION", "required" : [ "associationCategory", "associationTypeId", "filterBranchOperator", "filterBranchType", "filterBranches", "filters", "objectTypeId", "operator" ], "type" : "object", "properties" : { "associationCategory" : { "type" : "string", "description" : "A string that categorizes the type of association being filtered.", "example" : null }, "associationTypeId" : { "type" : "integer", "description" : "An integer representing the type ID of the association.", "format" : "int32", "example" : null }, "filterBranchOperator" : { "type" : "string", "description" : "A string that defines the logical operator for combining filters within this branch.", "example" : null }, "filterBranchType" : { "type" : "string", "description" : "A string indicating the type of filter branch, which is 'ASSOCIATION' for this component.", "example" : null, "default" : "ASSOCIATION", "enum" : [ "ASSOCIATION" ] }, "filterBranches" : { "type" : "array", "description" : "An array of nested filter branches, allowing for complex logical groupings of filters.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] } }, "filters" : { "type" : "array", "description" : "An array of filters applied within this branch, each defining specific criteria for filtering associations.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicPropertyFilter" }, { "$ref" : "#/components/schemas/PublicAssociationInListFilter" }, { "$ref" : "#/components/schemas/PublicPageViewAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicCtaAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicEventAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionOnPageFilter" }, { "$ref" : "#/components/schemas/PublicIntegrationEventFilter" }, { "$ref" : "#/components/schemas/PublicEmailSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicCommunicationSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyValueFilter" }, { "$ref" : "#/components/schemas/PublicWebinarFilter" }, { "$ref" : "#/components/schemas/PublicEmailEventFilter" }, { "$ref" : "#/components/schemas/PublicPrivacyAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicAdsSearchFilter" }, { "$ref" : "#/components/schemas/PublicAdsTimeFilter" }, { "$ref" : "#/components/schemas/PublicInListFilter" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilter" }, { "$ref" : "#/components/schemas/PublicConstantFilter" } ] } }, "objectTypeId" : { "type" : "string", "description" : "A string representing the type ID of the object involved in the association.", "example" : null }, "operator" : { "type" : "string", "description" : "A string that specifies the operator used in the filter logic.", "example" : null } }, "description" : "Represents a branch of filters specifically for associations in the HubSpot API. This component is used to define complex filtering logic involving associations between objects, typically in the context of search or list operations.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicAssociationInListFilter" : { "title" : "ASSOCIATION", "required" : [ "associationCategory", "associationTypeId", "coalescingRefineBy", "filterType", "listId", "operator" ], "type" : "object", "properties" : { "associationCategory" : { "type" : "string", "description" : "A string that categorizes the type of association, providing additional context for the filter.", "example" : null }, "associationTypeId" : { "type" : "integer", "description" : "An integer that identifies the specific type of association that is being filtered.", "format" : "int32", "example" : null }, "coalescingRefineBy" : { "description" : "An optional refinement criterion that can be applied to the filter. It can be one of several types, such as PublicNumOccurrencesRefineBy or PublicRelativeComparativeTimestampRefineBy.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] }, "filterType" : { "type" : "string", "description" : "A string that specifies the type of filter being applied. The default value is 'IN_LIST'.", "example" : null, "default" : "ASSOCIATION", "enum" : [ "ASSOCIATION" ] }, "listId" : { "type" : "string", "description" : "A string representing the unique identifier of the list to which the filter is applied.", "example" : null }, "operator" : { "type" : "string", "description" : "A string that defines the operator used in the filter. This determines how the filter criteria are applied.", "example" : null }, "toObjectType" : { "type" : "string", "description" : "A string that describes the type of object to which the association is related.", "example" : null }, "toObjectTypeId" : { "type" : "string", "description" : "A string that specifies the type ID of the object to which the association is related.", "example" : null } }, "description" : "The PublicAssociationInListFilter component is used to define a filter that applies to associations within a list. It specifies the criteria for filtering associations based on their type, category, and related object types. This component is typically used as part of a request to filter results in list-related operations.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicBatchMigrationMapping" : { "required" : [ "legacyListIdsToIdsMapping", "missingLegacyListIds" ], "type" : "object", "properties" : { "legacyListIdsToIdsMapping" : { "type" : "array", "description" : "An array of PublicMigrationMapping objects that map legacy list IDs to their corresponding new IDs.", "example" : null, "items" : { "$ref" : "#/components/schemas/PublicMigrationMapping" } }, "missingLegacyListIds" : { "type" : "array", "description" : "An array of strings representing legacy list IDs that could not be found or migrated.", "example" : null, "items" : { "type" : "string", "example" : null } } }, "example" : null }, "PublicBoolPropertyOperation" : { "title" : "BOOL", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator", "value" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether objects with no value set should be included in the operation.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation. The default value is 'BOOLEAN'.", "example" : null, "default" : "BOOL", "enum" : [ "BOOL" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the operation.", "example" : null }, "value" : { "type" : "boolean", "description" : "A boolean representing the value to be used in the operation.", "example" : null } }, "description" : "Represents an operation for boolean properties in a HubSpot account. This component is used to define how boolean properties should be evaluated in various operations, such as filtering or searching.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicCalendarDatePropertyOperation" : { "title" : "CALENDAR_DATE", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator", "timeUnit" ], "type" : "object", "properties" : { "fiscalYearStart" : { "type" : "string", "description" : "A string indicating the start of the fiscal year, used if the operation involves fiscal year calculations.", "example" : null, "enum" : [ "APRIL", "AUGUST", "DECEMBER", "FEBRUARY", "JANUARY", "JULY", "JUNE", "MARCH", "MAY", "NOVEMBER", "OCTOBER", "SEPTEMBER" ] }, "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that have no value set for the calendar date property.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation. The default value is 'CALENDAR_DATE'.", "example" : null, "default" : "CALENDAR_DATE", "enum" : [ "CALENDAR_DATE" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the operation.", "example" : null }, "timeUnit" : { "type" : "string", "description" : "A string representing the unit of time used in the operation, such as 'DAY', 'WEEK', 'MONTH', or 'YEAR'.", "example" : null }, "timeUnitCount" : { "type" : "integer", "description" : "An integer representing the count of the time units involved in the operation.", "format" : "int32", "example" : null }, "useFiscalYear" : { "type" : "boolean", "description" : "A boolean indicating whether to use the fiscal year in the operation.", "example" : null } }, "description" : "The PublicCalendarDatePropertyOperation component represents an operation that can be performed on calendar date properties within the HubSpot API. It is used to define operations that involve calendar dates, such as filtering or manipulating date-based data.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicCommunicationSubscriptionFilter" : { "title" : "COMMUNICATION_SUBSCRIPTION", "required" : [ "acceptedOptStates", "channel", "filterType", "subscriptionIds", "subscriptionType" ], "type" : "object", "properties" : { "acceptedOptStates" : { "type" : "array", "description" : "An array of strings representing the opt-in states that are accepted for the subscription.", "example" : null, "items" : { "type" : "string", "example" : null } }, "businessUnitId" : { "type" : "string", "description" : "A string representing the ID of the business unit associated with the subscription.", "example" : null }, "channel" : { "type" : "string", "description" : "A string indicating the communication channel for the subscription.", "example" : null }, "filterType" : { "type" : "string", "description" : "A string representing the type of filter. Defaults to 'COMMUNICATION_SUBSCRIPTION'.", "example" : null, "default" : "COMMUNICATION_SUBSCRIPTION", "enum" : [ "COMMUNICATION_SUBSCRIPTION" ] }, "subscriptionIds" : { "type" : "array", "description" : "An array of strings representing the IDs of the subscriptions to be filtered.", "example" : null, "items" : { "type" : "string", "example" : null } }, "subscriptionType" : { "type" : "string", "description" : "A string indicating the type of subscription being filtered.", "example" : null } }, "description" : "Represents a filter for communication subscriptions in the HubSpot API, used to specify criteria for filtering communication subscriptions based on various parameters.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicComparativeDatePropertyOperation" : { "title" : "COMPARATIVE_DATE", "required" : [ "comparisonPropertyName", "includeObjectsWithNoValueSet", "operationType", "operator" ], "type" : "object", "properties" : { "comparisonPropertyName" : { "type" : "string", "description" : "A string specifying the name of the property to be used for comparison.", "example" : null }, "defaultComparisonValue" : { "type" : "string", "description" : "A string representing the default value to be used in the comparison if no specific value is set.", "example" : null }, "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that do not have a value set for the property being compared.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation, with a default value of 'COMPARATIVE_DATE'.", "example" : null, "default" : "COMPARATIVE_DATE", "enum" : [ "COMPARATIVE_DATE" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the comparison.", "example" : null } }, "description" : "The PublicComparativeDatePropertyOperation component represents an operation used to compare date properties within a HubSpot account. It is typically used in contexts where date-based comparisons are necessary, such as filtering or querying records based on specific date criteria.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicComparativeNumberPropertyOperation" : { "title" : "COMPARATIVE_NUMBER", "required" : [ "comparisonPropertyName", "includeObjectsWithNoValueSet", "operationType", "operator" ], "type" : "object", "properties" : { "comparisonPropertyName" : { "type" : "string", "description" : "The name of the property to be compared, represented as a string. This property is required.", "example" : null }, "defaultComparisonValue" : { "type" : "string", "description" : "The default value used for comparison if no specific value is provided. This is an optional string value.", "example" : null }, "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A required boolean that determines whether objects without a set value for the comparison property should be included in the operation.", "example" : null }, "operationType" : { "type" : "string", "description" : "A required string that defines the type of operation being performed.", "example" : null, "default" : "COMPARATIVE_NUMBER", "enum" : [ "COMPARATIVE_NUMBER" ] }, "operator" : { "type" : "string", "description" : "A required string that specifies the comparison operator to be used, such as 'greater than' or 'less than'.", "example" : null } }, "description" : "The PublicComparativeNumberPropertyOperation component is used to define operations that compare numerical properties within HubSpot. It is typically used in scenarios where numerical comparisons are needed to filter or evaluate data.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicComparativePropertyUpdatedOperation" : { "title" : "COMPARATIVE_PROPERTY_UPDATED", "required" : [ "comparisonPropertyName", "includeObjectsWithNoValueSet", "operationType", "operator" ], "type" : "object", "properties" : { "comparisonPropertyName" : { "type" : "string", "description" : "A string specifying the name of the property to be compared.", "example" : null }, "defaultComparisonValue" : { "type" : "string", "description" : "A string representing the default value to use in the comparison if no other value is set.", "example" : null }, "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether objects with no value set should be included in the operation.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation. Defaults to 'COMPARATIVE_STRING'.", "example" : null, "default" : "COMPARATIVE_PROPERTY_UPDATED", "enum" : [ "COMPARATIVE_PROPERTY_UPDATED" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the comparison.", "example" : null } }, "description" : "Represents an operation for updating comparative properties in a list within the HubSpot ListAppService API. This component is used to define the criteria for comparing and updating properties based on specified conditions.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicComparativeStringPropertyOperation" : { "title" : "COMPARATIVE_STRING", "required" : [ "comparisonPropertyName", "includeObjectsWithNoValueSet", "operationType", "operator" ], "type" : "object", "properties" : { "comparisonPropertyName" : { "type" : "string", "description" : "A string specifying the name of the property to be compared.", "example" : null }, "defaultComparisonValue" : { "type" : "string", "description" : "A string representing the default value to use in the comparison if the property value is not set.", "example" : null }, "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that have no value set for the property being compared.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation. Defaults to 'COMPARATIVE_STRING'.", "example" : null, "default" : "COMPARATIVE_STRING", "enum" : [ "COMPARATIVE_STRING" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the comparison.", "example" : null } }, "description" : "Represents a comparative string property operation used in filtering or querying within the HubSpot API. This component is typically used to compare string properties of objects, allowing for operations based on the comparison results.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicConstantFilter" : { "title" : "CONSTANT", "required" : [ "filterType", "shouldAccept" ], "type" : "object", "properties" : { "filterType" : { "type" : "string", "description" : "A string that specifies the type of filter. For this component, it is a constant value indicating the filter's nature.", "example" : null, "default" : "CONSTANT", "enum" : [ "CONSTANT" ] }, "shouldAccept" : { "type" : "boolean", "description" : "A boolean indicating whether the filter condition should be accepted or not.", "example" : null }, "source" : { "type" : "string", "description" : "A string that represents the origin or context of the filter, providing additional information about where or how the filter is applied.", "example" : null } }, "description" : "The PublicConstantFilter component represents a filter used in the HubSpot ListAppService API to apply constant conditions to lists. It is typically used as part of filter branches to define static criteria that do not change over time.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicCtaAnalyticsFilter" : { "title" : "CTA", "required" : [ "ctaName", "filterType", "operator" ], "type" : "object", "properties" : { "coalescingRefineBy" : { "description" : "An optional refinement criterion that can be one of several types, such as number of occurrences or time-based refinements.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] }, "ctaName" : { "type" : "string", "description" : "The name of the Call-To-Action being filtered for in the analytics data.", "example" : null }, "filterType" : { "type" : "string", "description" : "A string indicating the type of filter being applied. Defaults to 'CTA'.", "example" : null, "default" : "CTA", "enum" : [ "CTA" ] }, "operator" : { "type" : "string", "description" : "A string representing the operation to be performed by the filter.", "example" : null }, "pruningRefineBy" : { "description" : "An optional refinement criterion used to further narrow down the filter results, similar to coalescingRefineBy.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "Represents a filter for analyzing Call-To-Action (CTA) interactions in HubSpot. This component is used to specify criteria for filtering CTA analytics data, such as the type of filter, operator, and specific CTA name.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicDatePoint" : { "title" : "DATE", "required" : [ "day", "month", "timeType", "year", "zoneId" ], "type" : "object", "properties" : { "day" : { "type" : "integer", "description" : "An integer representing the day component of the date.", "format" : "int32", "example" : null }, "hour" : { "type" : "integer", "description" : "An integer representing the hour component of the time.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond component of the time.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute component of the time.", "format" : "int32", "example" : null }, "month" : { "type" : "integer", "description" : "An integer representing the month component of the date.", "format" : "int32", "example" : null }, "second" : { "type" : "integer", "description" : "An integer representing the second component of the time.", "format" : "int32", "example" : null }, "timeType" : { "type" : "string", "description" : "A string indicating the type of time reference, typically set to 'DATE'.", "example" : null, "default" : "DATE", "enum" : [ "DATE" ] }, "timezoneSource" : { "type" : "string", "description" : "A string representing the source of the timezone information.", "example" : null }, "year" : { "type" : "integer", "description" : "An integer representing the year component of the date.", "format" : "int32", "example" : null }, "zoneId" : { "type" : "string", "description" : "A string specifying the identifier for the timezone.", "example" : null } }, "description" : "The PublicDatePoint component represents a specific point in time, defined by various time-related properties. It is used within the API to specify or reference exact dates and times, potentially for operations that require precise time points.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicDatePropertyOperation" : { "title" : "DATE", "required" : [ "day", "includeObjectsWithNoValueSet", "month", "operationType", "operator", "year" ], "type" : "object", "properties" : { "day" : { "type" : "integer", "description" : "An integer representing the day component of the date.", "format" : "int32", "example" : null }, "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that do not have a value set for the date property.", "example" : null }, "month" : { "type" : "string", "description" : "An integer representing the month component of the date.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation, specifically for date properties.", "example" : null, "default" : "DATE", "enum" : [ "DATE" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the date operation.", "example" : null }, "year" : { "type" : "integer", "description" : "An integer representing the year component of the date.", "format" : "int32", "example" : null } }, "description" : "The PublicDatePropertyOperation component represents a date-based operation used within the ListAppService API. It is utilized to specify date-related criteria for filtering or processing data, often as part of a request or response object.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicDateTimePropertyOperation" : { "title" : "DATETIME", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator", "requiresTimeZoneConversion", "timestamp" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether objects with no value set for the property should be included in the operation.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string representing the type of operation being performed. The default value is 'DATE_TIME'.", "example" : null, "default" : "DATETIME", "enum" : [ "DATETIME" ] }, "operator" : { "type" : "string", "description" : "A string specifying the operator used in the operation.", "example" : null }, "requiresTimeZoneConversion" : { "type" : "boolean", "description" : "A boolean indicating whether the operation requires conversion based on time zones.", "example" : null }, "timestamp" : { "type" : "integer", "description" : "An integer representing a Unix timestamp in milliseconds, used as a reference point for the operation.", "format" : "int64", "example" : null } }, "description" : "Represents an operation on a date-time property within the HubSpot ListAppService API. This component is used to define operations involving date-time properties, such as filtering or querying data based on specific date-time criteria.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicEmailEventFilter" : { "title" : "EMAIL_EVENT", "required" : [ "appId", "emailId", "filterType", "level", "operator" ], "type" : "object", "properties" : { "appId" : { "type" : "string", "description" : "A string representing the application ID associated with the email event.", "example" : null }, "clickUrl" : { "type" : "string", "description" : "A string representing the URL that is clicked in the email event.", "example" : null }, "emailId" : { "type" : "string", "description" : "A string representing the unique identifier of the email associated with the event.", "example" : null }, "filterType" : { "type" : "string", "description" : "A string representing the type of filter being applied. This property is required.", "example" : null, "default" : "EMAIL_EVENT", "enum" : [ "EMAIL_EVENT" ] }, "level" : { "type" : "string", "description" : "A string indicating the level of the email event filter.", "example" : null }, "operator" : { "type" : "string", "description" : "A string that specifies the operator used in the filter condition.", "example" : null, "enum" : [ "BOUNCED", "LINK_CLICKED", "MARKED_SPAM", "OPENED", "OPENED_BUT_LINK_NOT_CLICKED", "OPENED_BUT_NOT_REPLIED", "RECEIVED", "RECEIVED_BUT_NOT_OPENED", "REPLIED", "SENT", "SENT_BUT_LINK_NOT_CLICKED", "SENT_BUT_NOT_RECEIVED", "UNSUBSCRIBED" ] }, "pruningRefineBy" : { "description" : "An object that provides additional criteria for refining the filter. It can be one of several types such as PublicNumOccurrencesRefineBy, PublicSetOccurrencesRefineBy, etc.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "The PublicEmailEventFilter component is used to define filters for email events within the HubSpot API. It specifies criteria for filtering email events based on various properties such as filter type, level, email ID, and more. This component is typically used in scenarios where email event data needs to be filtered or refined according to specific conditions.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicEmailSubscriptionFilter" : { "title" : "EMAIL_SUBSCRIPTION", "required" : [ "acceptedStatuses", "filterType", "subscriptionIds" ], "type" : "object", "properties" : { "acceptedStatuses" : { "type" : "array", "description" : "An array of strings indicating the statuses that are accepted for the filter.", "example" : null, "items" : { "type" : "string", "example" : null } }, "filterType" : { "type" : "string", "description" : "A string indicating the type of filter. The default value is 'EMAIL_SUBSCRIPTION'.", "example" : null, "default" : "EMAIL_SUBSCRIPTION", "enum" : [ "EMAIL_SUBSCRIPTION" ] }, "subscriptionIds" : { "type" : "array", "description" : "An array of strings representing the IDs of the subscriptions to filter by.", "example" : null, "items" : { "type" : "string", "example" : null } }, "subscriptionType" : { "type" : "string", "description" : "A string representing the type of subscription to filter by.", "example" : null } }, "description" : "Represents a filter for email subscriptions in a HubSpot account, used to specify criteria for filtering email subscription data. This component is typically used within filter branches to refine search or list operations based on email subscription status and type.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicEnumerationPropertyOperation" : { "title" : "ENUMERATION", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator", "values" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether objects with no value set should be included in the operation.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation, with a default value of 'ENUMERATION'.", "example" : null, "default" : "ENUMERATION", "enum" : [ "ENUMERATION" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the enumeration operation.", "example" : null }, "values" : { "type" : "array", "description" : "An array of strings representing the enumeration values involved in the operation.", "example" : null, "items" : { "type" : "string", "example" : null } } }, "description" : "Represents an operation for handling enumeration properties within the API. This component is used to define operations that involve enumeration types, specifying how they should be processed or filtered.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicEventAnalyticsFilter" : { "title" : "EVENT", "required" : [ "eventId", "filterType", "operator" ], "type" : "object", "properties" : { "coalescingRefineBy" : { "description" : "An optional property that allows for additional refinement of the filter criteria using a coalescing method. It can be one of several predefined refinement types.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] }, "eventId" : { "type" : "string", "description" : "A string representing the unique identifier of the event to be filtered. This property is required.", "example" : null }, "filterType" : { "type" : "string", "description" : "A string representing the type of filter being applied. This property is required.", "example" : null, "default" : "EVENT", "enum" : [ "EVENT" ] }, "operator" : { "type" : "string", "description" : "A string that specifies the operator used in the filter. This property is required.", "example" : null }, "pruningRefineBy" : { "description" : "An optional property that allows for additional refinement of the filter criteria using a pruning method. It can be one of several predefined refinement types.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "The PublicEventAnalyticsFilter is a schema used to define filters for event analytics within the HubSpot API. It is used to specify criteria for filtering event data based on various parameters and is typically utilized in analytics and reporting contexts.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicEventFilterMetadata" : { "required" : [ "operation", "property" ], "type" : "object", "properties" : { "operation" : { "description" : "Defines the operation to be applied to the property for filtering. It is a string value.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicBoolPropertyOperation" }, { "$ref" : "#/components/schemas/PublicNumberPropertyOperation" }, { "$ref" : "#/components/schemas/PublicStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicDateTimePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRangedDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicComparativePropertyUpdatedOperation" }, { "$ref" : "#/components/schemas/PublicComparativeDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRollingDateRangePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRollingPropertyUpdatedOperation" }, { "$ref" : "#/components/schemas/PublicEnumerationPropertyOperation" }, { "$ref" : "#/components/schemas/PublicAllPropertyTypesOperation" }, { "$ref" : "#/components/schemas/PublicRangedNumberPropertyOperation" }, { "$ref" : "#/components/schemas/PublicMultiStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicCalendarDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" }, { "$ref" : "#/components/schemas/PublicComparativeStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicComparativeNumberPropertyOperation" } ] }, "property" : { "type" : "string", "description" : "Represents the specific property of the event that the filter is targeting. It is a string value.", "example" : null } }, "description" : "PublicEventFilterMetadata is a schema used within the ListAppService API to define metadata for event filters. It is utilized to specify the criteria for filtering events based on certain properties and operations.", "example" : null }, "PublicFiscalQuarterReference" : { "title" : "FISCAL_QUARTER", "required" : [ "day", "month", "referenceType" ], "type" : "object", "properties" : { "day" : { "type" : "integer", "description" : "An integer representing the day of the month.", "format" : "int32", "example" : null }, "hour" : { "type" : "integer", "description" : "An integer representing the hour of the day.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond within the second.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute within the hour.", "format" : "int32", "example" : null }, "month" : { "type" : "integer", "description" : "An integer representing the month of the year.", "format" : "int32", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string indicating the type of reference, which is 'FISCAL_QUARTER'.", "example" : null, "default" : "FISCAL_QUARTER", "enum" : [ "FISCAL_QUARTER" ] }, "second" : { "type" : "integer", "description" : "An integer representing the second within the minute.", "format" : "int32", "example" : null } }, "description" : "Represents a reference to a specific fiscal quarter, including details such as the time and date components. This component is used to specify or interpret a point in time within a fiscal quarter context.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicFiscalYearReference" : { "title" : "FISCAL_YEAR", "required" : [ "day", "month", "referenceType" ], "type" : "object", "properties" : { "day" : { "type" : "integer", "description" : "An integer representing the day of the month.", "format" : "int32", "example" : null }, "hour" : { "type" : "integer", "description" : "An integer representing the hour of the day.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond within the second.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute within the hour.", "format" : "int32", "example" : null }, "month" : { "type" : "integer", "description" : "An integer representing the month of the fiscal year.", "format" : "int32", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string that indicates the type of reference, which is 'FISCAL_YEAR'.", "example" : null, "default" : "FISCAL_YEAR", "enum" : [ "FISCAL_YEAR" ] }, "second" : { "type" : "integer", "description" : "An integer representing the second within the minute.", "format" : "int32", "example" : null } }, "description" : "Represents a reference to a fiscal year in the context of the ListAppService API. It is used to specify a particular time point within a fiscal year, including details such as the month, day, and time components.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicFormSubmissionFilter" : { "title" : "FORM_SUBMISSION", "required" : [ "filterType", "operator" ], "type" : "object", "properties" : { "coalescingRefineBy" : { "description" : "An optional refinement criterion used to coalesce form submissions based on specific conditions. It can be one of several types, similar to pruningRefineBy.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] }, "filterType" : { "type" : "string", "description" : "A string that specifies the type of filter being applied. The default value is 'FORM_SUBMISSION'.", "example" : null, "default" : "FORM_SUBMISSION", "enum" : [ "FORM_SUBMISSION" ] }, "formId" : { "type" : "string", "description" : "A string representing the unique identifier of the form to which the filter applies.", "example" : null }, "operator" : { "type" : "string", "description" : "A string that defines the operation to be performed by the filter. Valid values include 'FILLED_OUT' and 'NOT_FILLED_OUT'.", "example" : null, "enum" : [ "FILLED_OUT", "NOT_FILLED_OUT" ] }, "pruningRefineBy" : { "description" : "An optional refinement criterion that further specifies the conditions for pruning form submissions. It can be one of several types, such as number of occurrences or timestamp comparisons.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "The PublicFormSubmissionFilter component is used to define criteria for filtering form submissions in HubSpot. It specifies the conditions under which a form submission is considered relevant, such as whether a form was filled out or not. This component is typically used in list filtering operations within the API.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicFormSubmissionOnPageFilter" : { "title" : "FORM_SUBMISSION_ON_PAGE", "required" : [ "filterType", "operator", "pageId" ], "type" : "object", "properties" : { "coalescingRefineBy" : { "description" : "An optional refinement criterion used to coalesce results based on specific conditions, similar to pruningRefineBy.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] }, "filterType" : { "type" : "string", "description" : "The type of filter applied, which is fixed as 'FORM_SUBMISSION'.", "example" : null, "default" : "FORM_SUBMISSION_ON_PAGE", "enum" : [ "FORM_SUBMISSION_ON_PAGE" ] }, "formId" : { "type" : "string", "description" : "A string representing the unique identifier of the form to be filtered.", "example" : null }, "operator" : { "type" : "string", "description" : "The operation to be performed by the filter. It is a string and can have values such as 'FILLED_OUT' or 'NOT_FILLED_OUT'.", "example" : null, "enum" : [ "FILLED_OUT", "NOT_FILLED_OUT" ] }, "pageId" : { "type" : "string", "description" : "A string representing the unique identifier of the page where the form submission occurred.", "example" : null }, "pruningRefineBy" : { "description" : "An optional property that allows further refinement of the filter using various criteria such as occurrences or time ranges.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "Represents a filter used to determine form submissions on specific pages in the HubSpot ListAppService API. This component is utilized to filter form submissions based on specific criteria such as form ID and page ID, and is typically used in search or filtering operations.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicInListFilter" : { "title" : "IN_LIST", "required" : [ "filterType", "listId", "operator" ], "type" : "object", "properties" : { "filterType" : { "type" : "string", "description" : "A string indicating the type of filter. Defaults to 'IN_LIST'.", "example" : null, "default" : "IN_LIST", "enum" : [ "IN_LIST" ] }, "listId" : { "type" : "string", "description" : "The unique identifier of the list to check for membership, represented as a string.", "example" : null }, "metadata" : { "$ref" : "#/components/schemas/PublicInListFilterMetadata" }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the filter.", "example" : null } }, "description" : "Represents a filter used to determine if an item is part of a specified list in HubSpot. This component is used in filtering operations where inclusion in a list is a criterion.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicInListFilterMetadata" : { "required" : [ "id", "inListType" ], "type" : "object", "properties" : { "id" : { "type" : "string", "description" : "A string representing the unique identifier for the filter metadata.", "example" : null }, "inListType" : { "type" : "string", "description" : "A string indicating the type of list that the filter applies to.", "example" : null } }, "description" : "The PublicInListFilterMetadata component represents metadata information for a filter that checks if an item is part of a list. This component is used within the context of filtering operations in the ListAppService API.", "example" : null }, "PublicIndexOffset" : { "type" : "object", "properties" : { "days" : { "type" : "integer", "description" : "An integer representing the number of days to offset.", "format" : "int32", "example" : null }, "hours" : { "type" : "integer", "description" : "An integer representing the number of hours to offset.", "format" : "int32", "example" : null }, "milliseconds" : { "type" : "integer", "description" : "An integer representing the number of milliseconds to offset.", "format" : "int32", "example" : null }, "minutes" : { "type" : "integer", "description" : "An integer representing the number of minutes to offset.", "format" : "int32", "example" : null }, "months" : { "type" : "integer", "description" : "An integer representing the number of months to offset.", "format" : "int32", "example" : null }, "quarters" : { "type" : "integer", "description" : "An integer representing the number of quarters to offset.", "format" : "int32", "example" : null }, "seconds" : { "type" : "integer", "description" : "An integer representing the number of seconds to offset.", "format" : "int32", "example" : null }, "weeks" : { "type" : "integer", "description" : "An integer representing the number of weeks to offset.", "format" : "int32", "example" : null }, "years" : { "type" : "integer", "description" : "An integer representing the number of years to offset.", "format" : "int32", "example" : null } }, "description" : "The PublicIndexOffset component represents a set of time offsets used in various time-related operations within the API. It is utilized to specify adjustments in time units such as years, months, days, etc., and can be used in contexts where time manipulation is required.", "example" : null }, "PublicIndexedTimePoint" : { "title" : "INDEXED", "required" : [ "indexReference", "timeType", "zoneId" ], "type" : "object", "properties" : { "indexReference" : { "description" : "An object that defines the reference point for the indexed time, which can be one of several predefined references like 'now', 'today', or a specific fiscal period.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNowReference" }, { "$ref" : "#/components/schemas/PublicTodayReference" }, { "$ref" : "#/components/schemas/PublicWeekReference" }, { "$ref" : "#/components/schemas/PublicFiscalQuarterReference" }, { "$ref" : "#/components/schemas/PublicFiscalYearReference" }, { "$ref" : "#/components/schemas/PublicYearReference" }, { "$ref" : "#/components/schemas/PublicQuarterReference" }, { "$ref" : "#/components/schemas/PublicMonthReference" } ] }, "offset" : { "$ref" : "#/components/schemas/PublicIndexOffset" }, "timeType" : { "type" : "string", "description" : "A string indicating the type of time point, with a default value of 'INDEXED'.", "example" : null, "default" : "INDEXED", "enum" : [ "INDEXED" ] }, "timezoneSource" : { "type" : "string", "description" : "A string representing the source of the timezone information.", "example" : null }, "zoneId" : { "type" : "string", "description" : "A string specifying the ID of the timezone.", "example" : null } }, "description" : "Represents a specific point in time indexed by a reference, used within the API to define time-related operations or filters. It is utilized in contexts where a time point needs to be specified relative to a known index, such as 'now' or 'today'.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicIntegrationEventFilter" : { "title" : "INTEGRATION_EVENT", "required" : [ "eventTypeId", "filterLines", "filterType" ], "type" : "object", "properties" : { "eventTypeId" : { "type" : "integer", "description" : "A string that uniquely identifies the type of event to be filtered. This property is required.", "format" : "int32", "example" : null }, "filterLines" : { "type" : "array", "description" : "An array of filter lines that define additional filtering criteria. Each filter line is an object that specifies conditions for filtering events.", "example" : null, "items" : { "$ref" : "#/components/schemas/PublicEventFilterMetadata" } }, "filterType" : { "type" : "string", "description" : "A string representing the type of filter being applied. This property is required.", "example" : null, "default" : "INTEGRATION_EVENT", "enum" : [ "INTEGRATION_EVENT" ] } }, "description" : "The PublicIntegrationEventFilter component is used to define filters for integration events within the HubSpot API. It specifies the criteria for filtering events based on their type and associated filter lines. This component is typically used in contexts where integration event filtering is required, such as in list operations or event processing.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicListConversionDate" : { "required" : [ "conversionType", "day", "month", "year" ], "type" : "object", "properties" : { "conversionType" : { "type" : "string", "description" : "A string that indicates the type of conversion event. It specifies what kind of conversion has taken place.", "example" : null, "default" : "CONVERSION_DATE", "enum" : [ "CONVERSION_DATE" ] }, "day" : { "type" : "integer", "description" : "An integer representing the day of the month when the conversion event occurred.", "format" : "int32", "example" : null }, "month" : { "type" : "integer", "description" : "An integer representing the month of the year when the conversion event occurred.", "format" : "int32", "example" : null }, "year" : { "type" : "integer", "description" : "An integer representing the year when the conversion event occurred.", "format" : "int32", "example" : null } }, "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicListConversionInactivity" : { "required" : [ "conversionType", "offset", "timeUnit" ], "type" : "object", "properties" : { "conversionType" : { "type" : "string", "description" : "A string that specifies the type of conversion, with a default value of 'INACTIVITY'.", "example" : null, "default" : "INACTIVITY", "enum" : [ "INACTIVITY" ] }, "offset" : { "type" : "integer", "description" : "An integer indicating the offset value used in conjunction with the time unit to determine inactivity.", "format" : "int32", "example" : null }, "timeUnit" : { "type" : "string", "description" : "A string representing the unit of time for measuring inactivity. Valid values include 'DAY', 'WEEK', and 'MONTH'.", "example" : null, "enum" : [ "DAY", "MONTH", "WEEK" ] } }, "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicListConversionResponse" : { "required" : [ "listId" ], "type" : "object", "properties" : { "convertedAt" : { "type" : "string", "description" : "A string in date-time format indicating when the conversion was completed.", "format" : "date-time", "example" : null }, "listId" : { "type" : "string", "description" : "A string representing the unique identifier of the list that is being converted.", "example" : null }, "requestedConversionTime" : { "description" : "A string in date-time format indicating when the conversion was requested.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicListConversionDate" }, { "$ref" : "#/components/schemas/PublicListConversionInactivity" } ] } }, "example" : null }, "PublicListConversionTime" : { "properties" : { }, "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicListConversionDate" }, { "$ref" : "#/components/schemas/PublicListConversionInactivity" } ] }, "PublicListFolder" : { "required" : [ "childLists", "childNodes", "id", "parentFolderId" ], "type" : "object", "properties" : { "childLists" : { "type" : "array", "description" : "An array of strings, each representing the unique identifier of a list that is a direct child of this folder.", "example" : null, "items" : { "type" : "integer", "format" : "int32", "example" : null } }, "childNodes" : { "type" : "array", "description" : "An array of strings, each representing the unique identifier of a child node, which could be either a folder or a list.", "example" : null, "items" : { "$ref" : "#/components/schemas/PublicListFolder" } }, "createdAt" : { "type" : "string", "description" : "The date and time when the folder was created, in ISO 8601 format.", "format" : "date-time", "example" : null }, "id" : { "type" : "string", "description" : "The unique identifier for the folder, represented as a string.", "example" : null }, "name" : { "type" : "string", "description" : "The name of the folder, represented as a string.", "example" : null }, "parentFolderId" : { "type" : "string", "description" : "The unique identifier of the parent folder, represented as a string. This indicates the hierarchical structure of folders.", "example" : null }, "updatedAt" : { "type" : "string", "description" : "The date and time when the folder was last updated, in ISO 8601 format.", "format" : "date-time", "example" : null }, "updatedContentsAt" : { "type" : "string", "description" : "The date and time when the contents of the folder were last updated, in ISO 8601 format.", "format" : "date-time", "example" : null }, "userId" : { "type" : "integer", "description" : "The unique identifier of the user who created or last updated the folder, represented as a string.", "format" : "int32", "example" : null } }, "example" : null }, "PublicListPermissions" : { "required" : [ "teamsWithEditAccess", "usersWithEditAccess" ], "type" : "object", "properties" : { "teamsWithEditAccess" : { "type" : "array", "description" : "An array of integers representing the IDs of teams that have edit access to the list.", "example" : null, "items" : { "type" : "integer", "format" : "int32", "example" : null } }, "usersWithEditAccess" : { "type" : "array", "description" : "An array of integers representing the IDs of users that have edit access to the list.", "example" : null, "items" : { "type" : "integer", "format" : "int32", "example" : null } } }, "example" : null }, "PublicMembershipSettings" : { "type" : "object", "properties" : { "includeUnassigned" : { "type" : "boolean", "description" : "A boolean indicating whether to include unassigned records in the membership settings.", "example" : null }, "membershipTeamId" : { "type" : "integer", "description" : "A string representing the unique identifier of the team associated with the membership settings.", "format" : "int32", "example" : null } }, "example" : null }, "PublicMigrationMapping" : { "required" : [ "legacyListId", "listId" ], "type" : "object", "properties" : { "legacyListId" : { "type" : "string", "description" : "The legacy list ID from the previous system. This is a string that represents the list ID in the legacy system.", "example" : null }, "listId" : { "type" : "string", "description" : "The new list ID in the HubSpot system. This is a string that uniquely identifies the list in the current system.", "example" : null } }, "example" : null }, "PublicMonthReference" : { "title" : "MONTH", "required" : [ "day", "referenceType" ], "type" : "object", "properties" : { "day" : { "type" : "integer", "description" : "An integer representing the day of the month.", "format" : "int32", "example" : null }, "hour" : { "type" : "integer", "description" : "An integer representing the hour of the day.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond within the second.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute within the hour.", "format" : "int32", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string indicating the type of reference, with a default value of 'MONTH'.", "example" : null, "default" : "MONTH", "enum" : [ "MONTH" ] }, "second" : { "type" : "integer", "description" : "An integer representing the second within the minute.", "format" : "int32", "example" : null } }, "description" : "Represents a reference to a specific month, including detailed time components. This component is used within the API to specify or manipulate date and time information at the month level.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicMultiStringPropertyOperation" : { "title" : "MULTISTRING", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator", "values" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether objects with no value set should be included in the operation.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation. The default value is 'MULTI_STRING'.", "example" : null, "default" : "MULTISTRING", "enum" : [ "MULTISTRING" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the operation.", "example" : null }, "values" : { "type" : "array", "description" : "An array of strings representing the values involved in the operation.", "example" : null, "items" : { "type" : "string", "example" : null } } }, "description" : "The PublicMultiStringPropertyOperation component represents an operation that involves multiple string properties. It is used in the context of filtering or processing data where multiple string values need to be considered. This component is typically used as part of a request or response in APIs that handle complex data operations.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicNotAllFilterBranch" : { "title" : "NOT_ALL", "required" : [ "filterBranchOperator", "filterBranchType", "filterBranches", "filters" ], "type" : "object", "properties" : { "filterBranchOperator" : { "type" : "string", "description" : "A string representing the operator used within the filter branch.", "example" : null }, "filterBranchType" : { "type" : "string", "description" : "A string that specifies the type of filter branch. The default value is 'NOT_ALL'.", "example" : null, "default" : "NOT_ALL", "enum" : [ "NOT_ALL" ] }, "filterBranches" : { "type" : "array", "description" : "An array of filter branches that can include various types such as PublicOrFilterBranch, PublicAndFilterBranch, and others, allowing for nested filtering logic.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] } }, "filters" : { "type" : "array", "description" : "An array of filters that can include various types such as PublicPropertyFilter, PublicAssociationInListFilter, and others, used to apply specific conditions to the data.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicPropertyFilter" }, { "$ref" : "#/components/schemas/PublicAssociationInListFilter" }, { "$ref" : "#/components/schemas/PublicPageViewAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicCtaAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicEventAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionOnPageFilter" }, { "$ref" : "#/components/schemas/PublicIntegrationEventFilter" }, { "$ref" : "#/components/schemas/PublicEmailSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicCommunicationSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyValueFilter" }, { "$ref" : "#/components/schemas/PublicWebinarFilter" }, { "$ref" : "#/components/schemas/PublicEmailEventFilter" }, { "$ref" : "#/components/schemas/PublicPrivacyAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicAdsSearchFilter" }, { "$ref" : "#/components/schemas/PublicAdsTimeFilter" }, { "$ref" : "#/components/schemas/PublicInListFilter" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilter" }, { "$ref" : "#/components/schemas/PublicConstantFilter" } ] } } }, "description" : "The PublicNotAllFilterBranch component represents a filter branch used in HubSpot's ListAppService API to define complex filtering logic where not all conditions need to be met. It is typically used in scenarios where a combination of filters and filter branches are applied to refine data retrieval.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicNotAnyFilterBranch" : { "title" : "NOT_ANY", "required" : [ "filterBranchOperator", "filterBranchType", "filterBranches", "filters" ], "type" : "object", "properties" : { "filterBranchOperator" : { "type" : "string", "description" : "A string representing the operator used in the filter branch.", "example" : null }, "filterBranchType" : { "type" : "string", "description" : "A string that specifies the type of filter branch. Default value is 'NOT_ANY'.", "example" : null, "default" : "NOT_ANY", "enum" : [ "NOT_ANY" ] }, "filterBranches" : { "type" : "array", "description" : "An array of filter branches that can include various types such as 'PublicOrFilterBranch', 'PublicAndFilterBranch', 'PublicNotAllFilterBranch', 'PublicNotAnyFilterBranch', 'PublicRestrictedFilterBranch', 'PublicUnifiedEventsFilterBranch', and 'PublicAssociationFilterBranch'.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] } }, "filters" : { "type" : "array", "description" : "An array of filters that can include types like 'PublicPropertyFilter', 'PublicAssociationInListFilter', 'PublicPageViewAnalyticsFilter', 'PublicCtaAnalyticsFilter', 'PublicEventAnalyticsFilter', 'PublicFormSubmissionFilter', 'PublicFormSubmissionOnPageFilter', 'PublicIntegrationEventFilter', 'PublicEmailSubscriptionFilter', 'PublicCommunicationSubscriptionFilter', 'PublicSurveyMonkeyFilter', 'PublicSurveyMonkeyValueFilter', 'PublicWebinarFilter', 'PublicEmailEventFilter', 'PublicPrivacyAnalyticsFilter', 'PublicAdsSearchFilter', 'PublicAdsTimeFilter', 'PublicInListFilter', 'PublicUnifiedEventsFilter', and 'PublicConstantFilter'.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicPropertyFilter" }, { "$ref" : "#/components/schemas/PublicAssociationInListFilter" }, { "$ref" : "#/components/schemas/PublicPageViewAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicCtaAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicEventAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionOnPageFilter" }, { "$ref" : "#/components/schemas/PublicIntegrationEventFilter" }, { "$ref" : "#/components/schemas/PublicEmailSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicCommunicationSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyValueFilter" }, { "$ref" : "#/components/schemas/PublicWebinarFilter" }, { "$ref" : "#/components/schemas/PublicEmailEventFilter" }, { "$ref" : "#/components/schemas/PublicPrivacyAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicAdsSearchFilter" }, { "$ref" : "#/components/schemas/PublicAdsTimeFilter" }, { "$ref" : "#/components/schemas/PublicInListFilter" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilter" }, { "$ref" : "#/components/schemas/PublicConstantFilter" } ] } } }, "description" : "Represents a filter branch in a list operation that excludes any filters or branches that match the specified criteria. It is used within the context of defining complex filter logic for lists in the ListAppService API.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicNowReference" : { "title" : "NOW", "required" : [ "referenceType" ], "type" : "object", "properties" : { "hour" : { "type" : "integer", "description" : "An integer representing the hour part of the current time.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond part of the current time.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute part of the current time.", "format" : "int32", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string that indicates the type of reference. The default value is 'NOW', and it is used to specify that the reference is to the current time.", "example" : null, "default" : "NOW", "enum" : [ "NOW" ] }, "second" : { "type" : "integer", "description" : "An integer representing the second part of the current time.", "format" : "int32", "example" : null } }, "description" : "The PublicNowReference component represents a reference to the current time, used within the API to specify or manipulate time-related data. It is utilized in scenarios where the current time is needed as a reference point, such as in time-based operations or calculations.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicNumOccurrencesRefineBy" : { "title" : "NUM_OCCURRENCES", "required" : [ "type" ], "type" : "object", "properties" : { "maxOccurrences" : { "type" : "integer", "description" : "An integer specifying the maximum number of occurrences allowed.", "format" : "int32", "example" : null }, "minOccurrences" : { "type" : "integer", "description" : "An integer specifying the minimum number of occurrences required.", "format" : "int32", "example" : null }, "type" : { "type" : "string", "description" : "A string indicating the type of refinement, which is 'NUM_OCCURRENCES' by default.", "example" : null, "default" : "NUM_OCCURRENCES", "enum" : [ "NUM_OCCURRENCES" ] } }, "description" : "Represents a refinement criterion based on the number of occurrences, used in filtering operations within the ListAppService API. This component is typically used to specify the minimum and maximum number of times an event or condition should occur.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicNumberPropertyOperation" : { "title" : "NUMBER", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator", "value" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that do not have a value set for the property.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation. The default value is 'NUMBER'.", "example" : null, "default" : "NUMBER", "enum" : [ "NUMBER" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the operation.", "example" : null }, "value" : { "type" : "number", "description" : "A number representing the value involved in the operation.", "example" : null } }, "description" : "Represents an operation for handling number properties in a list within the HubSpot ListAppService API. This component is used to define operations that involve number-based criteria, such as filtering or evaluating list items based on numerical values.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicObjectList" : { "required" : [ "listId", "listVersion", "name", "objectTypeId", "processingStatus", "processingType" ], "type" : "object", "properties" : { "createdAt" : { "type" : "string", "description" : "The date and time when the list was created, in ISO 8601 format.", "format" : "date-time", "example" : null }, "createdById" : { "type" : "string", "description" : "The unique identifier of the user who created the list, represented as a string.", "example" : null }, "deletedAt" : { "type" : "string", "description" : "The date and time when the list was deleted, in ISO 8601 format.", "format" : "date-time", "example" : null }, "filterBranch" : { "description" : "An object representing the filter branch applied to the list, which can be one of several types of filter branches.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] }, "filtersUpdatedAt" : { "type" : "string", "description" : "The date and time when the list's filters were last updated, in ISO 8601 format.", "format" : "date-time", "example" : null }, "listId" : { "type" : "string", "description" : "The unique identifier for the list, represented as a string.", "example" : null }, "listPermissions" : { "$ref" : "#/components/schemas/PublicListPermissions" }, "listVersion" : { "type" : "integer", "description" : "An integer indicating the version of the list.", "format" : "int32", "example" : null }, "membershipSettings" : { "$ref" : "#/components/schemas/PublicMembershipSettings" }, "name" : { "type" : "string", "description" : "The name of the list, represented as a string.", "example" : null }, "objectTypeId" : { "type" : "string", "description" : "The unique identifier for the type of object associated with the list, represented as a string.", "example" : null }, "processingStatus" : { "type" : "string", "description" : "A string representing the current processing status of the list.", "example" : null }, "processingType" : { "type" : "string", "description" : "A string indicating the type of processing applied to the list.", "example" : null }, "size" : { "type" : "integer", "description" : "An integer representing the size of the list.", "format" : "int64", "example" : null }, "updatedAt" : { "type" : "string", "description" : "The date and time when the list was last updated, in ISO 8601 format.", "format" : "date-time", "example" : null }, "updatedById" : { "type" : "string", "description" : "The unique identifier of the user who last updated the list, represented as a string.", "example" : null } }, "example" : null }, "PublicObjectListSearchResult" : { "required" : [ "additionalProperties", "listId", "listVersion", "name", "objectTypeId", "processingStatus", "processingType" ], "type" : "object", "properties" : { "additionalProperties" : { "type" : "object", "additionalProperties" : { "type" : "string", "example" : null }, "description" : "An object containing additional properties of the list, with each property represented as a string.", "example" : null }, "createdAt" : { "type" : "string", "description" : "The date and time when the list was created, in ISO 8601 format.", "format" : "date-time", "example" : null }, "createdById" : { "type" : "string", "description" : "The unique identifier of the user who created the list, represented as a string.", "example" : null }, "deletedAt" : { "type" : "string", "description" : "The date and time when the list was deleted, in ISO 8601 format.", "format" : "date-time", "example" : null }, "filtersUpdatedAt" : { "type" : "string", "description" : "The date and time when the list's filters were last updated, in ISO 8601 format.", "format" : "date-time", "example" : null }, "listId" : { "type" : "string", "description" : "The unique identifier for the list, represented as a string.", "example" : null }, "listVersion" : { "type" : "integer", "description" : "An integer indicating the version of the list.", "format" : "int32", "example" : null }, "name" : { "type" : "string", "description" : "The name of the list, represented as a string.", "example" : null }, "objectTypeId" : { "type" : "string", "description" : "The unique identifier for the type of object associated with the list, represented as a string.", "example" : null }, "processingStatus" : { "type" : "string", "description" : "A string representing the current processing status of the list.", "example" : null }, "processingType" : { "type" : "string", "description" : "A string indicating the type of processing applied to the list.", "example" : null }, "updatedAt" : { "type" : "string", "description" : "The date and time when the list was last updated, in ISO 8601 format.", "format" : "date-time", "example" : null }, "updatedById" : { "type" : "string", "description" : "The unique identifier of the user who last updated the list, represented as a string.", "example" : null } }, "example" : null }, "PublicOrFilterBranch" : { "title" : "OR", "required" : [ "filterBranchOperator", "filterBranchType", "filterBranches", "filters" ], "type" : "object", "properties" : { "filterBranchOperator" : { "type" : "string", "description" : "A string representing the operator used to combine the filters within the branch.", "example" : null }, "filterBranchType" : { "type" : "string", "description" : "A string indicating the type of filter branch, which is 'OR' for this component.", "example" : null, "default" : "OR", "enum" : [ "OR" ] }, "filterBranches" : { "type" : "array", "description" : "An array of nested filter branches, allowing for the combination of multiple logical conditions within the 'OR' branch.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] } }, "filters" : { "type" : "array", "description" : "An array of individual filters that are part of the 'OR' branch. Each filter represents a specific condition that can be evaluated.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicPropertyFilter" }, { "$ref" : "#/components/schemas/PublicAssociationInListFilter" }, { "$ref" : "#/components/schemas/PublicPageViewAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicCtaAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicEventAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionOnPageFilter" }, { "$ref" : "#/components/schemas/PublicIntegrationEventFilter" }, { "$ref" : "#/components/schemas/PublicEmailSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicCommunicationSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyValueFilter" }, { "$ref" : "#/components/schemas/PublicWebinarFilter" }, { "$ref" : "#/components/schemas/PublicEmailEventFilter" }, { "$ref" : "#/components/schemas/PublicPrivacyAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicAdsSearchFilter" }, { "$ref" : "#/components/schemas/PublicAdsTimeFilter" }, { "$ref" : "#/components/schemas/PublicInListFilter" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilter" }, { "$ref" : "#/components/schemas/PublicConstantFilter" } ] } } }, "description" : "The PublicOrFilterBranch component represents a logical 'OR' filter branch used in constructing complex filter criteria within the ListAppService API. It is used to group multiple filters or filter branches, where any of the conditions can be true for the branch to be satisfied.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicPageViewAnalyticsFilter" : { "title" : "PAGE_VIEW", "required" : [ "filterType", "operator", "pageUrl" ], "type" : "object", "properties" : { "coalescingRefineBy" : { "description" : "An optional property that defines the method for refining the filter by coalescing multiple conditions. It can be one of several predefined refine types.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] }, "enableTracking" : { "type" : "boolean", "description" : "A boolean value that indicates whether tracking is enabled for the page view analytics filter.", "example" : null }, "filterType" : { "type" : "string", "description" : "A string representing the type of filter being applied. This property determines the category of the filter used in the analytics.", "example" : null, "default" : "PAGE_VIEW", "enum" : [ "PAGE_VIEW" ] }, "operator" : { "type" : "string", "description" : "A string indicating the operator used in the filter, which defines how the filter criteria are applied.", "example" : null }, "pageUrl" : { "type" : "string", "description" : "A string representing the specific URL of the page to be tracked or analyzed. This property is used to filter analytics data based on page URL.", "example" : null }, "pruningRefineBy" : { "description" : "An optional property that specifies the method for refining the filter by pruning conditions. It can be one of several predefined refine types.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "The PublicPageViewAnalyticsFilter component is used to define filters for page view analytics within the HubSpot API. It specifies the criteria for tracking and analyzing page views, including the type of filter, operator, and specific page URL. This component is typically used in contexts where page view data needs to be filtered or refined for analytics purposes.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicPrivacyAnalyticsFilter" : { "title" : "PRIVACY", "required" : [ "filterType", "operator", "privacyName" ], "type" : "object", "properties" : { "filterType" : { "type" : "string", "description" : "A string representing the type of filter. The default value is 'PRIVACY_ANALYTICS'.", "example" : null, "default" : "PRIVACY", "enum" : [ "PRIVACY" ] }, "operator" : { "type" : "string", "description" : "A string that defines the operator used in the filter condition.", "example" : null }, "privacyName" : { "type" : "string", "description" : "A string that specifies the name of the privacy setting being filtered.", "example" : null } }, "description" : "The PublicPrivacyAnalyticsFilter is a schema used to define filters related to privacy analytics in the HubSpot API. It is typically used within filter branches to specify conditions based on privacy-related data.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicPropertyFilter" : { "title" : "PROPERTY", "required" : [ "filterType", "operation", "property" ], "type" : "object", "properties" : { "filterType" : { "type" : "string", "description" : "The type of filter being applied. This is a string value that specifies the kind of filter operation.", "example" : null, "default" : "PROPERTY", "enum" : [ "PROPERTY" ] }, "operation" : { "description" : "The specific operation or condition used in the filter. This is a string value that defines how the filter should be applied to the property.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicBoolPropertyOperation" }, { "$ref" : "#/components/schemas/PublicNumberPropertyOperation" }, { "$ref" : "#/components/schemas/PublicStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicDateTimePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRangedDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicComparativePropertyUpdatedOperation" }, { "$ref" : "#/components/schemas/PublicComparativeDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRollingDateRangePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRollingPropertyUpdatedOperation" }, { "$ref" : "#/components/schemas/PublicEnumerationPropertyOperation" }, { "$ref" : "#/components/schemas/PublicAllPropertyTypesOperation" }, { "$ref" : "#/components/schemas/PublicRangedNumberPropertyOperation" }, { "$ref" : "#/components/schemas/PublicMultiStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicCalendarDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" }, { "$ref" : "#/components/schemas/PublicComparativeStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicComparativeNumberPropertyOperation" } ] }, "property" : { "type" : "string", "description" : "The name of the property to which the filter is applied. This is a string value representing the property name.", "example" : null } }, "description" : "Represents a filter applied to a property within a list in the HubSpot ListAppService API. This component is used to define criteria for filtering list items based on property values.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicPropertyReferencedTime" : { "title" : "PROPERTY_REFERENCED", "required" : [ "property", "referenceType", "timeType", "zoneId" ], "type" : "object", "properties" : { "property" : { "type" : "string", "description" : "A string representing the property that is used to reference the time.", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string indicating the type of reference, with a default value of 'PROPERTY_REFERENCE'.", "example" : null }, "timeType" : { "type" : "string", "description" : "A string indicating the type of time reference. It defaults to 'PROPERTY_REFERENCE'.", "example" : null, "default" : "PROPERTY_REFERENCED", "enum" : [ "PROPERTY_REFERENCED" ] }, "timezoneSource" : { "type" : "string", "description" : "A string representing the source of the timezone information.", "example" : null }, "zoneId" : { "type" : "string", "description" : "A string specifying the ID of the timezone.", "example" : null } }, "description" : "The PublicPropertyReferencedTime component represents a specific point in time that is determined by a property value. It is used within the API to specify time-related operations or filters that are based on property values.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicQuarterReference" : { "title" : "QUARTER", "required" : [ "day", "month", "referenceType" ], "type" : "object", "properties" : { "day" : { "type" : "integer", "description" : "An integer representing the day of the month.", "format" : "int32", "example" : null }, "hour" : { "type" : "integer", "description" : "An integer representing the hour of the day.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond within the second.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute within the hour.", "format" : "int32", "example" : null }, "month" : { "type" : "integer", "description" : "An integer representing the month of the year.", "format" : "int32", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string indicating the type of reference, which is 'QUARTER' for this component.", "example" : null, "default" : "QUARTER", "enum" : [ "QUARTER" ] }, "second" : { "type" : "integer", "description" : "An integer representing the second within the minute.", "format" : "int32", "example" : null } }, "description" : "Represents a reference to a specific quarter, including details such as the day, month, and time components. This component is used in the API to specify or retrieve information related to a particular quarter.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicRangedDatePropertyOperation" : { "title" : "RANGED_DATE", "required" : [ "includeObjectsWithNoValueSet", "lowerBound", "operationType", "operator", "requiresTimeZoneConversion", "upperBound" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that do not have a value set for the property.", "example" : null }, "lowerBound" : { "type" : "integer", "description" : "An integer representing the lower bound of the date range, formatted as an int64.", "format" : "int64", "example" : null }, "operationType" : { "type" : "string", "description" : "A string that indicates the type of operation, which is 'RANGED_DATE' by default.", "example" : null, "default" : "RANGED_DATE", "enum" : [ "RANGED_DATE" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the operation.", "example" : null }, "requiresTimeZoneConversion" : { "type" : "boolean", "description" : "A boolean indicating whether the operation requires time zone conversion.", "example" : null }, "upperBound" : { "type" : "integer", "description" : "An integer representing the upper bound of the date range, formatted as an int64.", "format" : "int64", "example" : null } }, "description" : "Represents an operation for filtering objects based on a date range property, used in contexts where date-based filtering is required. This component is typically used in request bodies to specify criteria for ranged date operations.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicRangedNumberPropertyOperation" : { "title" : "NUMBER_RANGED", "required" : [ "includeObjectsWithNoValueSet", "lowerBound", "operationType", "operator", "upperBound" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that have no value set for the property.", "example" : null }, "lowerBound" : { "type" : "integer", "description" : "An integer specifying the lower bound of the range.", "format" : "int64", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation, which is 'RANGED_NUMBER' by default.", "example" : null, "default" : "NUMBER_RANGED", "enum" : [ "NUMBER_RANGED" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the operation.", "example" : null }, "upperBound" : { "type" : "integer", "description" : "An integer specifying the upper bound of the range.", "format" : "int64", "example" : null } }, "description" : "Represents a ranged number property operation used in the ListAppService API. This component is utilized to define operations that involve numerical properties with specified upper and lower bounds.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicRangedTimeOperation" : { "title" : "TIME_RANGED", "required" : [ "includeObjectsWithNoValueSet", "lowerBoundTimePoint", "operationType", "operator", "type", "upperBoundTimePoint" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether objects with no value set should be included in the operation.", "example" : null }, "lowerBoundEndpointBehavior" : { "type" : "string", "description" : "A string specifying the behavior of the lower bound endpoint in the time range.", "example" : null }, "lowerBoundTimePoint" : { "description" : "An object representing the lower bound time point of the range, which can be a date point, indexed time point, or property-referenced time.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicDatePoint" }, { "$ref" : "#/components/schemas/PublicIndexedTimePoint" }, { "$ref" : "#/components/schemas/PublicPropertyReferencedTime" } ] }, "operationType" : { "type" : "string", "description" : "A string indicating the operation type, which is related to time range operations.", "example" : null }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the time range operation.", "example" : null }, "propertyParser" : { "type" : "string", "description" : "A string that defines the property parser used in the operation.", "example" : null }, "type" : { "type" : "string", "description" : "A string indicating the type of operation, which is 'TIME_RANGED'.", "example" : null, "default" : "TIME_RANGED", "enum" : [ "TIME_RANGED" ] }, "upperBoundEndpointBehavior" : { "type" : "string", "description" : "A string specifying the behavior of the upper bound endpoint in the time range.", "example" : null }, "upperBoundTimePoint" : { "description" : "An object representing the upper bound time point of the range, which can be a date point, indexed time point, or property-referenced time.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicDatePoint" }, { "$ref" : "#/components/schemas/PublicIndexedTimePoint" }, { "$ref" : "#/components/schemas/PublicPropertyReferencedTime" } ] } }, "description" : "Represents a time-based range operation used within the ListAppService API to filter or manipulate data based on time constraints. This component is utilized in scenarios where operations need to consider a range of time points, such as filtering records within a specific time frame.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicRelativeComparativeTimestampRefineBy" : { "title" : "RELATIVE_COMPARATIVE", "required" : [ "comparison", "timeOffset", "type" ], "type" : "object", "properties" : { "comparison" : { "type" : "string", "description" : "A string that defines the comparison operation to be used in the refinement.", "example" : null }, "timeOffset" : { "$ref" : "#/components/schemas/PublicTimeOffset" }, "type" : { "type" : "string", "description" : "A string that specifies the type of refinement, with the default value 'RELATIVE_COMPARATIVE'.", "example" : null, "default" : "RELATIVE_COMPARATIVE", "enum" : [ "RELATIVE_COMPARATIVE" ] } }, "description" : "Represents a refinement criterion for timestamp-based filters in a relative comparative manner. This component is used to specify conditions for filtering data based on relative time comparisons.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicRelativeRangedTimestampRefineBy" : { "title" : "RELATIVE_RANGED", "required" : [ "lowerBoundOffset", "rangeType", "type", "upperBoundOffset" ], "type" : "object", "properties" : { "lowerBoundOffset" : { "$ref" : "#/components/schemas/PublicTimeOffset" }, "rangeType" : { "type" : "string", "description" : "A string that specifies the type of range being applied.", "example" : null }, "type" : { "type" : "string", "description" : "A string indicating the type of refinement, with a default value of 'RELATIVE_RANGED'.", "example" : null, "default" : "RELATIVE_RANGED", "enum" : [ "RELATIVE_RANGED" ] }, "upperBoundOffset" : { "$ref" : "#/components/schemas/PublicTimeOffset" } }, "description" : "Represents a refinement filter for timestamp-based criteria within a relative range. It is used in scenarios where filtering by a time range relative to the current time is necessary.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicRestrictedFilterBranch" : { "title" : "RESTRICTED", "required" : [ "filterBranchOperator", "filterBranchType", "filterBranches", "filters" ], "type" : "object", "properties" : { "filterBranchOperator" : { "type" : "string", "description" : "A string representing the operator used within the filter branch.", "example" : null }, "filterBranchType" : { "type" : "string", "description" : "A string indicating the type of filter branch. The default value is 'RESTRICTED'.", "example" : null, "default" : "RESTRICTED", "enum" : [ "RESTRICTED" ] }, "filterBranches" : { "type" : "array", "description" : "An array of nested filter branches, which can include various types such as 'PublicOrFilterBranch', 'PublicAndFilterBranch', and others.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] } }, "filters" : { "type" : "array", "description" : "An array of filters applied within the branch, which can include different filter types like 'PublicPropertyFilter', 'PublicAssociationInListFilter', and more.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicPropertyFilter" }, { "$ref" : "#/components/schemas/PublicAssociationInListFilter" }, { "$ref" : "#/components/schemas/PublicPageViewAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicCtaAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicEventAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionOnPageFilter" }, { "$ref" : "#/components/schemas/PublicIntegrationEventFilter" }, { "$ref" : "#/components/schemas/PublicEmailSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicCommunicationSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyValueFilter" }, { "$ref" : "#/components/schemas/PublicWebinarFilter" }, { "$ref" : "#/components/schemas/PublicEmailEventFilter" }, { "$ref" : "#/components/schemas/PublicPrivacyAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicAdsSearchFilter" }, { "$ref" : "#/components/schemas/PublicAdsTimeFilter" }, { "$ref" : "#/components/schemas/PublicInListFilter" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilter" }, { "$ref" : "#/components/schemas/PublicConstantFilter" } ] } } }, "description" : "The PublicRestrictedFilterBranch component represents a specific type of filter branch used within the ListAppService API. It is utilized to apply restrictions on filter branches and filters, allowing for complex query operations within lists.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicRollingDateRangePropertyOperation" : { "title" : "ROLLING_DATE_RANGE", "required" : [ "includeObjectsWithNoValueSet", "numberOfDays", "operationType", "operator", "requiresTimeZoneConversion" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that do not have a value set for the property being filtered.", "example" : null }, "numberOfDays" : { "type" : "integer", "description" : "An integer specifying the number of days for the rolling date range.", "format" : "int32", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation, which is 'ROLLING_DATE_RANGE' by default.", "example" : null, "default" : "ROLLING_DATE_RANGE", "enum" : [ "ROLLING_DATE_RANGE" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the filter operation.", "example" : null }, "requiresTimeZoneConversion" : { "type" : "boolean", "description" : "A boolean indicating whether the operation requires time zone conversion.", "example" : null } }, "description" : "The PublicRollingDateRangePropertyOperation component represents a filter operation for properties that involve a rolling date range. It is used in scenarios where you need to filter data based on a dynamic date range, such as the last 'n' days. This component is typically used in request bodies for filtering operations within the API.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicRollingPropertyUpdatedOperation" : { "title" : "ROLLING_PROPERTY_UPDATED", "required" : [ "includeObjectsWithNoValueSet", "numberOfDays", "operationType", "operator" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether objects with no value set should be included in the operation.", "example" : null }, "numberOfDays" : { "type" : "integer", "description" : "An integer specifying the number of days over which the rolling operation is applied.", "format" : "int32", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation, defaulting to 'ROLLING_PROPERTY_UPDATED'.", "example" : null, "default" : "ROLLING_PROPERTY_UPDATED", "enum" : [ "ROLLING_PROPERTY_UPDATED" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the operation.", "example" : null } }, "description" : "Represents an operation that updates a property based on a rolling time window. It is used in scenarios where properties need to be updated dynamically over a specified number of days.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicSetOccurrencesRefineBy" : { "title" : "SET_OCCURRENCES", "required" : [ "setType", "type" ], "type" : "object", "properties" : { "setType" : { "type" : "string", "description" : "A string specifying the set type used for the refinement.", "example" : null }, "type" : { "type" : "string", "description" : "A string indicating the type of refinement, which is 'SET_OCCURRENCES'.", "example" : null, "default" : "SET_OCCURRENCES", "enum" : [ "SET_OCCURRENCES" ] } }, "description" : "Represents a refinement criterion for filtering based on a set number of occurrences. This component is used within filter operations to specify how occurrences should be refined.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicStringPropertyOperation" : { "title" : "STRING", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator", "value" ], "type" : "object", "properties" : { "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that have no value set for the property.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation. The default value is 'STRING'.", "example" : null, "default" : "STRING", "enum" : [ "STRING" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the operation.", "example" : null }, "value" : { "type" : "string", "description" : "A string representing the value involved in the operation.", "example" : null } }, "description" : "Represents an operation for handling string properties in the context of HubSpot's ListAppService API. This component is used to define operations on string properties, including specifying the type of operation, the operator to use, and any values involved.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicSurveyMonkeyFilter" : { "title" : "SURVEY_MONKEY", "required" : [ "filterType", "operator", "surveyId" ], "type" : "object", "properties" : { "filterType" : { "type" : "string", "description" : "A string representing the type of filter. The default value is 'SURVEY_MONKEY_VALUE'.", "example" : null, "default" : "SURVEY_MONKEY", "enum" : [ "SURVEY_MONKEY" ] }, "operator" : { "type" : "string", "description" : "A string that specifies the operation to be performed for the filter.", "example" : null }, "surveyId" : { "type" : "string", "description" : "A string that uniquely identifies the survey from which the data is being filtered.", "example" : null } }, "description" : "Represents a filter used in the ListAppService API to apply conditions based on SurveyMonkey data. This component is utilized when filtering lists by specific survey responses.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicSurveyMonkeyValueFilter" : { "title" : "SURVEY_MONKEY_VALUE", "required" : [ "filterType", "operator", "surveyId", "surveyQuestion", "valueComparison" ], "type" : "object", "properties" : { "filterType" : { "type" : "string", "description" : "A string that specifies the type of filter being applied. Default value is 'SURVEY_MONKEY_VALUE'.", "example" : null, "default" : "SURVEY_MONKEY_VALUE", "enum" : [ "SURVEY_MONKEY_VALUE" ] }, "operator" : { "type" : "string", "description" : "A string that specifies the operator used in the filter, determining how the survey data should be evaluated against the specified criteria.", "example" : null }, "surveyAnswerColId" : { "type" : "string", "description" : "A string representing the column identifier for the survey answer being filtered.", "example" : null }, "surveyAnswerRowId" : { "type" : "string", "description" : "A string representing the row identifier for the survey answer being filtered.", "example" : null }, "surveyId" : { "type" : "string", "description" : "A string representing the unique identifier of the SurveyMonkey survey.", "example" : null }, "surveyQuestion" : { "type" : "string", "description" : "A string indicating the specific question within the survey that the filter is targeting.", "example" : null }, "valueComparison" : { "description" : "An object that defines the operation for comparing values, which can be one of several types such as boolean, number, string, date, or enumeration operations.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicBoolPropertyOperation" }, { "$ref" : "#/components/schemas/PublicNumberPropertyOperation" }, { "$ref" : "#/components/schemas/PublicStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicDateTimePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRangedDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicComparativePropertyUpdatedOperation" }, { "$ref" : "#/components/schemas/PublicComparativeDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRollingDateRangePropertyOperation" }, { "$ref" : "#/components/schemas/PublicRollingPropertyUpdatedOperation" }, { "$ref" : "#/components/schemas/PublicEnumerationPropertyOperation" }, { "$ref" : "#/components/schemas/PublicAllPropertyTypesOperation" }, { "$ref" : "#/components/schemas/PublicRangedNumberPropertyOperation" }, { "$ref" : "#/components/schemas/PublicMultiStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicCalendarDatePropertyOperation" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" }, { "$ref" : "#/components/schemas/PublicComparativeStringPropertyOperation" }, { "$ref" : "#/components/schemas/PublicComparativeNumberPropertyOperation" } ] } }, "description" : "Represents a filter used to evaluate SurveyMonkey responses within the HubSpot ListAppService API. This component is used to specify criteria for filtering SurveyMonkey survey data based on specific questions and answers.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicTimeOffset" : { "required" : [ "amount", "offsetDirection", "timeUnit" ], "type" : "object", "properties" : { "amount" : { "type" : "integer", "description" : "An integer specifying the amount of time units to offset.", "format" : "int64", "example" : null }, "offsetDirection" : { "type" : "string", "description" : "A string indicating the direction of the time offset. Valid values are 'BEFORE' and 'AFTER'.", "example" : null }, "timeUnit" : { "type" : "string", "description" : "A string representing the unit of time for the offset. Valid values include 'MINUTE', 'HOUR', 'DAY', 'WEEK', 'MONTH', 'QUARTER', and 'YEAR'.", "example" : null } }, "description" : "The PublicTimeOffset component represents a time offset used in various operations within the API. It is used to specify a direction, unit, and amount of time to offset, typically in contexts where relative time calculations are needed.", "example" : null }, "PublicTimePointOperation" : { "title" : "TIME_POINT", "required" : [ "includeObjectsWithNoValueSet", "operationType", "operator", "timePoint", "type" ], "type" : "object", "properties" : { "endpointBehavior" : { "type" : "string", "description" : "A string describing the behavior of the endpoint in the context of the time point operation.", "example" : null }, "includeObjectsWithNoValueSet" : { "type" : "boolean", "description" : "A boolean indicating whether to include objects that have no value set for the time point.", "example" : null }, "operationType" : { "type" : "string", "description" : "A string indicating the type of operation, which is 'TIME_POINT' by default.", "example" : null, "default" : "TIME_POINT", "enum" : [ "TIME_POINT" ] }, "operator" : { "type" : "string", "description" : "A string representing the operator used in the time point operation.", "example" : null }, "propertyParser" : { "type" : "string", "description" : "A string representing the parser used for the property in the time point operation.", "example" : null }, "timePoint" : { "description" : "An object representing the specific time point used in the operation. It can be one of several types, such as a date point, indexed time point, or property-referenced time.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicDatePoint" }, { "$ref" : "#/components/schemas/PublicIndexedTimePoint" }, { "$ref" : "#/components/schemas/PublicPropertyReferencedTime" } ] }, "type" : { "type" : "string", "description" : "A string indicating the specific type of the time point operation.", "example" : null } }, "description" : "Represents a time point operation used in filtering or querying data based on specific time-related criteria. This component is typically used in scenarios where time-based operations are required, such as filtering records by a specific date or time point.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicTodayReference" : { "title" : "TODAY", "required" : [ "referenceType" ], "type" : "object", "properties" : { "hour" : { "type" : "integer", "description" : "An integer representing the hour of the day.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond within the second.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute within the hour.", "format" : "int32", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string indicating the type of reference, which is 'TODAY' by default.", "example" : null, "default" : "TODAY", "enum" : [ "TODAY" ] }, "second" : { "type" : "integer", "description" : "An integer representing the second within the minute.", "format" : "int32", "example" : null } }, "description" : "Represents a reference to the current day, used in time-related operations within the API. This component is typically utilized when specifying or manipulating time points relative to today's date.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicUnifiedEventsFilter" : { "title" : "UNIFIED_EVENTS", "required" : [ "filterLines", "filterType" ], "type" : "object", "properties" : { "coalescingRefineBy" : { "description" : "An optional refinement condition used to coalesce events based on specific criteria, such as number of occurrences or time range.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] }, "eventTypeId" : { "type" : "string", "description" : "A string representing the unique identifier for the event type being filtered.", "example" : null }, "filterLines" : { "type" : "array", "description" : "An array of filters that are applied to the events. Each filter specifies additional criteria for refining the event data.", "example" : null, "items" : { "$ref" : "#/components/schemas/PublicEventFilterMetadata" } }, "filterType" : { "type" : "string", "description" : "A string that specifies the type of filter, defaulting to 'UNIFIED_EVENTS'.", "example" : null, "default" : "UNIFIED_EVENTS", "enum" : [ "UNIFIED_EVENTS" ] }, "pruningRefineBy" : { "description" : "An optional refinement condition used to prune the events based on specific criteria, such as number of occurrences or time range.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "The PublicUnifiedEventsFilter component is used to define a filter for unified events in the HubSpot API. It specifies the criteria for filtering events based on their type and other refining conditions. This component is typically used within filter branches to refine event data based on specific conditions.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicUnifiedEventsFilterBranch" : { "title" : "UNIFIED_EVENTS", "required" : [ "eventTypeId", "filterBranchOperator", "filterBranchType", "filterBranches", "filters", "operator" ], "type" : "object", "properties" : { "coalescingRefineBy" : { "description" : "An optional refinement criterion that can be applied to coalesce event data. It can be one of several predefined refinement types.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] }, "eventTypeId" : { "type" : "string", "description" : "A string that specifies the ID of the event type being filtered.", "example" : null }, "filterBranchOperator" : { "type" : "string", "description" : "A string that specifies the logical operator used to combine the filters and filter branches within this branch.", "example" : null }, "filterBranchType" : { "type" : "string", "description" : "A string indicating the type of filter branch. Default value is 'UNIFIED_EVENTS'.", "example" : null, "default" : "UNIFIED_EVENTS", "enum" : [ "UNIFIED_EVENTS" ] }, "filterBranches" : { "type" : "array", "description" : "An array of nested filter branches, allowing for complex filter logic. Each item can be one of several filter branch types.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicOrFilterBranch" }, { "$ref" : "#/components/schemas/PublicAndFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAllFilterBranch" }, { "$ref" : "#/components/schemas/PublicNotAnyFilterBranch" }, { "$ref" : "#/components/schemas/PublicRestrictedFilterBranch" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilterBranch" }, { "$ref" : "#/components/schemas/PublicAssociationFilterBranch" } ] } }, "filters" : { "type" : "array", "description" : "An array of filters applied to the events. Each filter can be one of several predefined filter types.", "example" : null, "items" : { "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicPropertyFilter" }, { "$ref" : "#/components/schemas/PublicAssociationInListFilter" }, { "$ref" : "#/components/schemas/PublicPageViewAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicCtaAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicEventAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionFilter" }, { "$ref" : "#/components/schemas/PublicFormSubmissionOnPageFilter" }, { "$ref" : "#/components/schemas/PublicIntegrationEventFilter" }, { "$ref" : "#/components/schemas/PublicEmailSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicCommunicationSubscriptionFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyFilter" }, { "$ref" : "#/components/schemas/PublicSurveyMonkeyValueFilter" }, { "$ref" : "#/components/schemas/PublicWebinarFilter" }, { "$ref" : "#/components/schemas/PublicEmailEventFilter" }, { "$ref" : "#/components/schemas/PublicPrivacyAnalyticsFilter" }, { "$ref" : "#/components/schemas/PublicAdsSearchFilter" }, { "$ref" : "#/components/schemas/PublicAdsTimeFilter" }, { "$ref" : "#/components/schemas/PublicInListFilter" }, { "$ref" : "#/components/schemas/PublicUnifiedEventsFilter" }, { "$ref" : "#/components/schemas/PublicConstantFilter" } ] } }, "operator" : { "type" : "string", "description" : "A string representing the operation to be performed on the events. Valid values are 'HAS_COMPLETED' and 'HAS_NOT_COMPLETED'.", "example" : null, "enum" : [ "HAS_COMPLETED", "HAS_NOT_COMPLETED" ] }, "pruningRefineBy" : { "description" : "An optional refinement criterion used to prune event data. It can be one of several predefined refinement types.", "example" : null, "oneOf" : [ { "$ref" : "#/components/schemas/PublicNumOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicSetOccurrencesRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicRelativeRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteComparativeTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAbsoluteRangedTimestampRefineBy" }, { "$ref" : "#/components/schemas/PublicAllHistoryRefineBy" }, { "$ref" : "#/components/schemas/PublicTimePointOperation" }, { "$ref" : "#/components/schemas/PublicRangedTimeOperation" } ] } }, "description" : "The PublicUnifiedEventsFilterBranch component represents a filter branch specifically for unified events within HubSpot's API. It is used to define criteria for filtering events based on specific conditions and is typically utilized in constructing complex filter logic for event data.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicWebinarFilter" : { "title" : "WEBINAR", "required" : [ "filterType", "operator" ], "type" : "object", "properties" : { "filterType" : { "type" : "string", "description" : "A string that specifies the type of filter being applied. The default value is 'WEBINAR'.", "example" : null, "default" : "WEBINAR", "enum" : [ "WEBINAR" ] }, "operator" : { "type" : "string", "description" : "A string that defines the operation or condition applied by the filter.", "example" : null }, "webinarId" : { "type" : "string", "description" : "A string representing the unique identifier of the webinar to which the filter is applied.", "example" : null } }, "description" : "Represents a filter used in the context of webinars, specifying the type of filter and its criteria. This component is used to filter webinar-related data based on specific conditions.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicWeekReference" : { "title" : "WEEK", "required" : [ "dayOfWeek", "referenceType" ], "type" : "object", "properties" : { "dayOfWeek" : { "type" : "string", "description" : "An integer representing the day of the week.", "example" : null, "enum" : [ "FRIDAY", "MONDAY", "SATURDAY", "SUNDAY", "THURSDAY", "TUESDAY", "WEDNESDAY" ] }, "hour" : { "type" : "integer", "description" : "An integer representing the hour of the day.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond of the second.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute of the hour.", "format" : "int32", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string indicating the type of reference, which is 'WEEK' for this component.", "example" : null, "default" : "WEEK", "enum" : [ "WEEK" ] }, "second" : { "type" : "integer", "description" : "An integer representing the second of the minute.", "format" : "int32", "example" : null } }, "description" : "Represents a reference to a specific week, including detailed time components. This component is used to specify a particular week and time within that week in various API operations.", "example" : null, "x-hubspot-sub-type-impl" : true }, "PublicYearReference" : { "title" : "YEAR", "required" : [ "day", "month", "referenceType" ], "type" : "object", "properties" : { "day" : { "type" : "integer", "description" : "An integer representing the day of the month.", "format" : "int32", "example" : null }, "hour" : { "type" : "integer", "description" : "An integer representing the hour of the day.", "format" : "int32", "example" : null }, "millisecond" : { "type" : "integer", "description" : "An integer representing the millisecond within the second.", "format" : "int32", "example" : null }, "minute" : { "type" : "integer", "description" : "An integer representing the minute within the hour.", "format" : "int32", "example" : null }, "month" : { "type" : "integer", "description" : "An integer representing the month of the year.", "format" : "int32", "example" : null }, "referenceType" : { "type" : "string", "description" : "A string that specifies the type of reference, which is 'YEAR' by default.", "example" : null, "default" : "YEAR", "enum" : [ "YEAR" ] }, "second" : { "type" : "integer", "description" : "An integer representing the second within the minute.", "format" : "int32", "example" : null } }, "description" : "The PublicYearReference component represents a reference to a specific year within the API. It is used to define a point in time with detailed granularity, including the year, month, day, and optional time components such as hour, minute, second, and millisecond.", "example" : null, "x-hubspot-sub-type-impl" : true }, "RecordIdInput" : { "required" : [ "objectTypeId", "recordId" ], "type" : "object", "properties" : { "objectTypeId" : { "type" : "string", "description" : "A string representing the unique identifier of the object type associated with the record.", "example" : null }, "recordId" : { "type" : "string", "description" : "A string representing the unique identifier of the record.", "example" : null } }, "example" : null }, "RecordIdWithMemberships" : { "required" : [ "objectTypeId", "recordId", "recordListMemberships" ], "type" : "object", "properties" : { "objectTypeId" : { "type" : "string", "description" : "The identifier for the type of object the record belongs to, represented as a string.", "example" : null }, "recordId" : { "type" : "string", "description" : "The unique identifier for the record, represented as a string.", "example" : null }, "recordListMemberships" : { "type" : "array", "description" : "An array of memberships indicating the lists the record is part of, each containing details like list ID, version, and timestamps of when the record was added.", "example" : null, "items" : { "$ref" : "#/components/schemas/RecordListMembership" } } }, "example" : null }, "RecordListMembership" : { "required" : [ "firstAddedTimestamp", "lastAddedTimestamp", "listId", "listVersion" ], "type" : "object", "properties" : { "firstAddedTimestamp" : { "type" : "string", "description" : "The date and time when the record was first added to the list, in ISO 8601 format.", "format" : "date-time", "example" : null }, "isPublicList" : { "type" : "boolean", "description" : "A boolean indicating whether the list is public.", "example" : null }, "lastAddedTimestamp" : { "type" : "string", "description" : "The date and time when the record was last added to the list, in ISO 8601 format.", "format" : "date-time", "example" : null }, "listId" : { "type" : "string", "description" : "The unique identifier of the list. It is a string value.", "example" : null }, "listVersion" : { "type" : "integer", "description" : "The version number of the list, represented as an integer.", "format" : "int32", "example" : null } }, "example" : null }, "StandardError" : { "required" : [ "category", "context", "errors", "links", "message", "status" ], "type" : "object", "properties" : { "category" : { "type" : "string", "description" : "A string indicating the general category of the error.", "example" : null }, "context" : { "type" : "object", "additionalProperties" : { "type" : "array", "example" : null, "items" : { "type" : "string", "example" : null } }, "description" : "An object containing additional context about the error, represented as a map of strings to arrays of strings.", "example" : null }, "errors" : { "type" : "array", "description" : "An array of ErrorDetail objects that provide more specific details about individual errors.", "example" : null, "items" : { "$ref" : "#/components/schemas/ErrorDetail" } }, "id" : { "type" : "string", "description" : "A string that uniquely identifies the error instance.", "example" : null }, "links" : { "type" : "object", "additionalProperties" : { "type" : "string", "example" : null }, "description" : "An object containing related links, represented as a map of strings to strings.", "example" : null }, "message" : { "type" : "string", "description" : "A string containing a human-readable explanation of the error.", "example" : null }, "status" : { "type" : "string", "description" : "A string representing the HTTP status code associated with the error.", "example" : null }, "subCategory" : { "type" : "object", "properties" : { }, "description" : "An object providing additional categorization of the error.", "example" : null } }, "description" : "Ye olde error", "example" : null } }, "responses" : { "Error" : { "description" : "An error occurred.", "content" : { "*/*" : { "schema" : { "$ref" : "#/components/schemas/Error" }, "example" : null } } } }, "securitySchemes" : { "developer_hapikey" : { "type" : "apiKey", "name" : "hapikey", "in" : "query" }, "oauth2" : { "type" : "oauth2", "flows" : { "authorizationCode" : { "authorizationUrl" : "https://app.hubspot.com/oauth/authorize", "tokenUrl" : "https://api.hubapi.com/oauth/v1/token", "scopes" : { "cms.membership.access_groups.write" : "", "crm.lists.read" : "", "crm.lists.write" : "", "crm.segments.read" : "", "crm.segments.write" : "" } } }, "x-hubspot-app-availability" : { "cms.membership.access_groups.write" : { "portal" : [ "public", "private" ], "developer" : false }, "crm.lists.read" : { "portal" : [ "public", "private" ], "user" : [ "public", "private" ], "developer" : false }, "crm.lists.write" : { "portal" : [ "public", "private" ], "developer" : false }, "crm.segments.read" : { "user" : [ "public", "private" ], "developer" : false }, "crm.segments.write" : { "user" : [ "public", "private" ], "developer" : false } } } } }, "x-hubspot-product-tier-requirements" : { "marketing" : "FREE", "sales" : "FREE", "service" : "FREE", "cms" : "FREE", "commerce" : "FREE", "crmHub" : "FREE", "dataHub" : "FREE" } }