Releases: HubSpot/hubspot-api-python
11.0.0
Associations
- Added
assiciations.v4.report_api
Api. - Added
assiciations.v4.schema.definition_configurations_api
Api.
Marketing Events
- Added
marketing.events.list_associations_api
Api. - Renamed method
create_by_contact_email
torecord_by_contact_emails
inmarketing.events.attendance_subscriber_state_changes_api
. - Renamed method
create_by_contact_id
torecord_by_contact_ids
inmarketing.events.attendance_subscriber_state_changes_api
. - Remove parameters
attendance_state_calculation_timestamp
andimport_status
tomarketing.events.models.marketing_event_update_request_params
.
Other changes
- Added
api_request
Api(for requests by curl). - Enhance
get_all
method. - Added possibility change all configuration params("proxy", "proxy_headers" and ect.).
- Fix call
crm.tickets.merge_api
. - Update README.
- Update requires.
- Update Makefile.
10.0.0
CMS
- Added parameter
campaign_name
tocms.blogs.blog_posts.models.content_language_variation
. - Added parameter
breakpoint_styles
tocms.blogs.blog_posts.models.styles
. - Added parameter
name
tocms.hubdb.rows_api.clone_draft_table_row()
. - Added parameter
archived
tocms.hubdb.rows_api.get_draft_table_row_by_id()
andcms.hubdb.rows_api.get_table_row()
. - Added parameters
offset
andarchived
tocms.hubdb.rows_api.get_table_rows()
andcms.hubdb.rows_api.read_draft_table_rows()
. - Added parameter
content_type
parameter tocms.hubdb.tables_api.export_table()
andcms.hubdb.tables_api.get_all_tables()
. - Added parameter
is_get_localized_schema
parameter tocms.hubdb.tables_api.get_draft_table_details_by_id()
,cms.hubdb.tables_api.get_table_details()
andcms.hubdb.tables_api.update_draft_table()
. - Added parameters
created_by_user_id
,updated_by
,updated_by_user_id
,created_at
,created_by
andupdated_at
tocms.hubdb.models.column
andcms.hubdb.models.option
. - Added parameter
is_hubspot_defined
tocms.hubdb.models.hub_db_table_clone_request
. - Added
do_async()
andget_async_status()
methods tocms.source_code.extract_api
. - Changed the response object type from
CollectionResponseWithTotalHubDbTableRowV3ForwardPaging
toUnifiedCollectionResponseWithTotalBaseHubDbTableRowV3
forcms.hubdb.rows_api.get_table_rows()
andcms.hubdb.rows_api.read_draft_table_rows()
. - Changed parameter
batch_input_string: BatchInputString
tobatch_input_hub_db_table_row_batch_clone_request: BatchInputHubDbTableRowBatchCloneRequest
incms.hubdb.rows_api.clone_draft_table_row()
. - Updated
language
validation: Added a predefined list ofallowed_values
for stricter validation forcms.blogs.blog_posts.models.attach_to_lang_primary_request_v_next
. - Updated
type
validation: Expandedallowed_values
for validation forcms.hubdb.models.column_request
. - Removed
cms.source_code.extract_api.extract_by_path()
method. - Removed
cms.source_code.source_code_extract_api
.
CRM
- Added
crm.objects.leads
Api client. - Added method
upsert
tocrm.companies.batch_api
,crm.contacts.batch_api
,crm.deals.batch_api
,crm.line_items.batch_api
,crm.objects.batch_api
,crm.objects.calls.batch_api
,crm.objects.communications.batch_api
,crm.objects.emails.batch_api
,crm.objects.meetings.batch_api
,crm.objects.notes.batch_api
,crm.objects.postal_mail.batch_api
,crm.objects.tasks.batch_api
,crm.objects.taxes.batch_api
,crm.products.batch_api
,crm.quotes.batch_api
,crm.tickets.batch_api
. - Added parameter
object_write_trace_id
to models:simple_public_object_input
,simple_public_object_batch_input
,simple_public_object_input_for_create
forcrm.companies
,crm.contacts
,crm.deals
,crm.line_items
,crm.objects
,crm.objects.calls
,crm.objects.communications
,crm.objects.emails
,crm.objects.meetings
,crm.objects.notes
,crm.objects.postal_mail
,crm.objects.tasks
,crm.objects.taxes
,crm.products
,crm.quotes
,crm.tickets
. - Added method
mark_as_ready()
tocrm.extensions.calling.recording_settings_api
. - Added parameters
created_by_user_id
andupdated_by_user_id
tocrm.schemas.models.object_schema
. - Added parameter
clear_description
tocrm.schemas.models.object_type_definition_patch
. - Added parameter
supports_inbound_calling
tocrm.extensions.calling.models.settings_patch_request
,crm.extensions.calling.models.settings_request
andcrm.extensions.calling.models.settings_response
. - Changed
association_category
andassociation_type_id
parameters can beNone
incrm.companies.models.association_spec
,crm.contacts.models.association_spec
,crm.deals.models.association_spec
,crm.tickets.models.association_spec
. - Changed
types
andto
parameters can beNone
incrm.companies.models.public_associations_for_object
,crm.contacts.models.public_associations_for_object
,crm.deals.models.public_associations_for_object
, andcrm.tickets.models.public_associations_for_object
. - Changed
id
parameters can beNone
incrm.companies.models.public_object_id
,crm.contacts.models.public_object_id
,crm.deals.models.public_object_id
, andcrm.tickets.models.public_object_id
. - Changed
limit
,after
,sorts
,properties
, andfilter_groups
parameters can beNone
incrm.companies.models.public_object_search_request
,crm.contacts.models.public_object_search_request
,crm.deals.models.public_object_search_request
,crm.line_items.models.public_object_search_request
,crm.objects.models.public_object_search_request
,crm.objects.calls.models.public_object_search_request
,crm.objects.communications.models.public_object_search_request
,crm.objects.emails.models.public_object_search_request
,crm.objects.goals.models.public_object_search_request
,crm.objects.postal_mail.models.public_object_search_request
,crm.objects.tasks.models.public_object_search_request
,crm.objects.taxes.models.public_object_search_request
,crm.products.models.public_object_search_request
,crm.quotes.models.public_object_search_request
, andcrm.tickets.models.public_object_search_request
. - Changed
associations
parameters can beNone
incrm.companies.models.simple_public_object_input_for_create
,crm.contacts.models.simple_public_object_input_for_create
,crm.deals.models.simple_public_object_input_for_create
, andcrm.tickets.models.simple_public_object_input_for_create
. - Renamed
public_object_api
tomerge_api
incrm.companies
,crm.contacts
,crm.deals
andcrm.tickets
. - Removed
archive
,create
andupdate
methods fromcrm.objects.goals.basic_api
andcrm.objects.goals.batch_api
. - Removed GDPRApi:
crm.companies.gdpr_api
,crm.deals.gdpr_api
,crm.line_items.gdpr_api
,crm.objects.gdpr_api
,crm.objects.calls.gdpr_api
,crm.objects.communications.gdpr_api
,crm.objects.emails.gdpr_api
,crm.objects.goals.gdpr_api
,crm.objects.meetings.gdpr_api
,crm.objects.notes.gdpr_api
,crm.objects.postal_mail.gdpr_api
,crm.objects.tasks.gdpr_api
,crm.objects.taxes.gdpr_api
,crm.products.gdpr_api
,crm.quotes.gdpr_api
,crm.tickets.gdpr_api
. - Removed PublicObjectApi:
crm.line_items.public_object_api
,crm.objects.public_object_api
,crm.objects.calls.public_object_api
,crm.objects.communications.public_object_api
,crm.objects.emails.public_object_api
,crm.objects.goals.public_object_api
,crm.objects.meetings.public_object_api
,crm.objects.notes.public_object_api
,crm.objects.postal_mail.public_object_api
,crm.objects.tasks.public_object_api
,crm.objects.taxes.public_object_api
,crm.products.public_object_api
,crm.quotes.public_object_api
. - Removed
crm.schemas.public_object_schemas_api
. - Removed
crm.extensions.accounting
API client.
CRM Lists
- Added
crm.objects.lists.folders_api
Api. - Added
crm.lists.mapping_api
Api. - Added
crm.lists.memberships_api.get_lists()
andcrm.lists.memberships_api.get_page_ordered_by_added_to_list_date()
. - Added parameter
custom_properties
tocrm.lists.models.list_create_request
. - Added parameters
list_ids
,processing_types
andsort
tocrm.lists.models.list_search_request
. - Added parameters
coalescing_refine_by
tocrm.lists.models.public_unified_events_filter_branch
. - Changed response object type
CollectionResponseLong
toApiCollectionResponseJoinTimeAndRecordId
ofcrm.lists.membershipsApi.get_page()
. - Changed
offset
andadditional_properties
parameters can beNone
incrm.lists.models.list_search_request
. - Rename model from
PublicEventAnalyticsFilterCoalescingRefineBy
toPublicFormSubmissionFilterCoalescingRefineBy
. - Rename model from
PublicPropertyFilterOperation
toPublicSurveyMonkeyValueFilterValueComparison
. - Renamed Api client from
crm.lists.list_app_membership_api
tocrm.lists.memberships_api
. - Renamed Api client from
crm.lists.list_app_api
tocrm.lists.lists_api
.
Marketing
- Added
marketing.events.participant_state_api
Api. - Added new methods
batch_archive
,batch_upsert
,cancel
andcomplete
tomarketing.events.basic_api
. - Added parameter
event_completed
tomarketing.events.models.marketing_event_public_default_response
,marketing.events.models.marketing_event_create_request_params
,marketing.events.models.marketing_event_default_response
,marketing.events.models.marketing_event_public_read_response
. - Added parameters
attendance_state_calculation_timestamp
,event_completed
andimport_status
tomarketing.events.models.marketing_event_update_request_params
. - Added parameters
data_sensitivity
,unit
andis_encrypted
tomarketing.events.models.property_value
. - Updated
source
validation: Expandedallowed_values
for validation formarketing.events.models.property_value
. - Renamed method
create
tocreate_by_contact_id
inmarketing.events.attendance_subscriber_state_changes_api
. - Renamed method
create_by_email
tocreate_by_contact_email
inmarketing.events.attendance_subscriber_state_changes_api
. - Renamed method
get_by_id
toget_details
inmarketing.events.basic_api
. - Renamed method
replace
toupsert
inmarketing.events.basic_api
. - Renamed method
create
toupdate
inmarketing.events.settings_api
. - Renamed method
do_email_upsert_by_id
toupsert_by_contact_email
inmarketing.events.subscriber_state_changes_api
. - Renamed method
do_upsert_by_id
toupsert_by_contact_id
inmarketing.events.subscriber_state_changes_api
. - Moved method
do_search
frommarketing.events.search_api
tomarketing.events.basic_api
. - Removed
marketing.events.batch_api
. - Removed
marketing.events.marketing_events_external_api
. - Removed
marketing.events.search_api
.
Events and OAuth
- Added
events.api.default_api
Api. - Moved client from `auth.oauth...
v9.0.0
Automation Actions client
- Updated
automation.actions.definitions_api.create()
method to acceptpublic_action_definition_egg
instead ofextension_action_definition_input
and returnedPublicActionDefinition
insteadExtensionActionDefinition
. - Updated
automation.actions.definitions_api.get_by_id()
method to returnPublicActionDefinition
instead ofExtensionActionDefinition
. - Updated
automation.actions.definitions_api.get_page()
method to returnCollectionResponsePublicActionDefinitionForwardPaging
instead ofCollectionResponseExtensionActionDefinitionForwardPaging
. - Updated
automation.actions.definitions_api.update()
method to acceptpublic_action_definition_patch
instead ofextension_action_definition_patch
and returnedPublicActionDefinition
insteadExtensionActionDefinition
. - Updated
automation.actions.functions_api.create_or_replace()
method to returnPublicActionFunctionIdentifier
instead ofActionFunctionIdentifier
. - Updated
automation.actions.functions_api.create_or_replace_by_function_type()
method to returnPublicActionFunctionIdentifier
instead ofActionFunctionIdentifier
. - Updated
automation.actions.functions_api.get_by_function_type()
method to returnPublicActionFunction
instead ofActionFunction
. - Updated
automation.actions.functions_api.get_by_id()
method to returnPublicActionFunction
instead ofActionFunction
. - Updated
automation.actions.functions_api.get_page()
method to returnCollectionResponsePublicActionFunctionIdentifierNoPaging
instead ofCollectionResponseActionFunctionIdentifierNoPaging
. - Updated
automation.actions.revisions_api.get_by_id()
method to returnPublicActionRevision
instead ofActionRevision
. - Updated
automation.actions.revisions_api.get_page()
method to returnCollectionResponsePublicActionRevisionForwardPaging
instead ofCollectionResponseActionRevisionForwardPaging
. - Added new function type
POST_ACTION_EXECUTION
toautomation.actions.models.PublicActionFunctionIdentifier
andautomation.actions.models.PublicActionFunction
. - Added new param
automation_field_type
toautomation.actions.models.InputFieldDefinition
. - Added
automation.actions.models.OutputFieldDefinition
. - Added
automation.actions.models.PublicExecutionTranslationRule
. - Added new params to
automation.actions.models.FieldTypeDefinition
:
{
"help_text": "str",
"referenced_object_type": "str",
"name": "str",
"options": "list[Option]",
"description": "str",
"external_options_reference_type": "str",
"label": "str",
"type": "str",
"field_type": "str",
"options_url": "str",
"external_options": "bool",
}
CMS clients
- Changed
attach_to_lang_group()
,detach_from_lang_group()
andupdate_langs()
methods of all Api clients(cms.blogs.authors.blog_authors_api
,cms.blogs.blog_posts.blog_posts_api
andcms.blogs.tags.blog_tags_api
) returnNone
instead ofError
. - Added new param
_property
tocms.blogs.authors.blog_authors_api.get_by_id()
andcms.blogs.authors.blog_authors_api.get_page()
. - Renamed
cms.source_code.content_api.get()
method tocms.source_code.content_api.download()
. - Renamed
cms.source_code.content_api.replace()
method tocms.source_code.content_api.create_or_update()
. - Added new param
hash
tocms.source_code.models.AssetFileMetadata
. - Added new param
properties
tocms.source_code.metadata_api.get()
.
CRM Associations and Objects clients
Note
Please note that CRM Objects includes: companies, contacts, deals, line items, all CRM objects crm.objects
, products, quotes and tickets
- Changed the type of parameter
category
fromErrorCategory
tostring
incrm.associations.models.StandardError
. - Renamed
crm.associations.v4.schema.definitions_api.delete()
method tocrm.associations.v4.schema.definitions_api.archive()
. - Changed the type of parameters
object_id
andcrm.associations.v4.basic_api.to_object_id
incrm.associations.v4.basic_api.archive()
,crm.associations.v4.basic_api.create()
andcrm.associations.v4.basic_api.create_default()
methods fromstring
toint
. - Changed the type of parameter
object_id
incrm.associations.v4.basic_api.get_page()
method fromstring
toint
. - Changed the type of parameters
to_object_id
andfrom_object_id
incrm.associations.v4.models.LabelsBetweenObjectPair
tostring
. - Changed the type of parameter
to_object_id
incrm.associations.v4.models.MultiAssociatedObjectWithLabel
tostring
. - Changed the type of property
category
inErrorCategory
tostring
incrm.associations.v4.models.StandardError
. - Changed the type of property
errors
incrm.associations.v4.models.BatchResponsePublicDefaultAssociation
fromStandardError1[]
toStandardError[]
. - Added parameter
inverse_label
tocrm.associations.v4.models.PublicAssociationDefinitionCreateRequest
andcrm.associations.v4.models.PublicAssociationDefinitionUpdateRequest
. - Updated
crm.time_line.events_api.create_batch()
method to returnNone
instedBatchResponseTimelineEventResponse
. - Changed the type of parameter
category
fromErrorCategory
tostring
incrm.time_line.models.StandardError
. - Removed
crm.objects.associations_api
. - Renamed param
postal_mail
topostal_mail_id
incrm.objects.postal_mail.basic_api()
. - Changed the type of parameter
after
fromint
tostring
in all CRM modelsPublicObjectSearchRequest
. - Added new param
id_property
in all CRM modelsSimplePublicObjectBatchInput
.
CRM Extensions client
- Changed parameter order in
crm.extinsions.cards_api.archive()
method from(app_id, card_id)
to(card_id, app_id)
. - Updated
crm.extinsions.cards_api.create()
method to returnPublicCardResponse
insteadCardResponse
. - Updated
crm.extinsions.cards_api.get_all()
method to returnPublicCardListResponse
insteadCardListResponse
. - Changed parameter order in
crm.extinsions.cards_api.get_by_id()
method from(app_id, card_id)
to(card_id, app_id)
and method returnPublicCardResponse
insteadCardResponse
. - Changed parameter order in
crm.extinsions.cards_api.update()
method from(app_id, card_id, card_patch_request)
to(card_id, app_id, card_patch_request)
and method returnPublicCardResponse
insteadCardResponse
. - Added new params
serverless_function
andcard_type
tocrm.extinsions.models.CardFetchBody
andcrm.extinsions.models.CardFetchBodyPatch
. - Added new param
audit_history
tocrm.extinsions.models.PublicCardResponse
. - Added new allowable value
marketing_events
tocrm.extinsions.models.CardObjectTypeBody
. - Added
developer_hapikey
tocrm.extinsions.videoconferencing.settings_api
. - Added new param
fetch_accounts_uri
tocrm.extinsions.videoconferencing.models.ExternalSettings
. - Marked
CRM Extensions Accounting Apis
as deprecated.
CRM clients
- Added
import_template
andimport_source
params tocrm.imports.models.PublicImportResponse
. - Renamed Api client from
crm.lists.memberships_api()
tocrm.lists.list_app_membership_api()
. - Renamed Api client from
crm.lists.lists_api()
tocrm.lists.list_app_api()
. - Changed the type of parameters
list_id
andlist_ids: list[]
fromint
tostring
in all methods of apicrm.lists.list_app_api()
. - Changed the type of parameters
list_id
,request_body: list[]
andsource_list_id
fromint
tostring
in all methods of apicrm.lists.list_app_membership_api()
. - Renamed method
crm.lists.memberships_api.add_remove()
tocrm.lists.list_app_membership_api.add_and_remove()
. - Renamed
crm.lists.models.CollectionResponseLong
tocrm.lists.models.CollectionResponseJoinTimeAndRecordId
. - Changed the type of parameter
results: list[int]
toresults: list[JoinTimeAndRecordId]
incrm.lists.models.CollectionResponseJoinTimeAndRecordId
. - Changed the type of parameter
list_id
,business_unit_id
,subscription_ids: list[]
,email_id
,app_id
,updated_by_id
,rtype: list[]
,record_ids_to_remove: list[]
,record_ids_to_add: list[]
,record_ids_removed: list[]
,records_ids_added: list[]
andrecord_ids_missing: list[]
fromint
tostring
in allcrm.lists.models
in which these parameters are present. - Added param
validate_deal_stage_usages_before_delete
tocrm.pipelines.pipelines_api.archive()
,crm.pipelines.pipelines_api.replace()
andcrm.pipelines.pipelines_api.update()
methods. - Added
write_permissions
param tocrm.pipelines.models.PipelineStage
. - Added
description
param tocrm.schemas.models.ObjectTypeDefinitionPatch
. - Added new params:
option_sort_strategy
,show_currency_symbol
,form_field
,referenced_object_type
,text_display_hint
,searchable_in_global_search
andnumber_display_hint
tocrm.schemas.models.ObjectTypePropertyCreate
.
Marketing client
- Moved methods
archive()
,create()
,do_cancel()
,get_by_id()
,replace()
andupdate()
frommarketing.events.marketing_events_external_api()
tomarketing.events.basic_api
. - Moved method
do_upsert()
frommarketing.events.marketing_events_external_api()
tomarketing.events.batch_api()
. - Moved and renamed method
archive_batch()
toarchive()
frommarketing.events.marketing_events_external_api.archive_batch()
tomarketing.events.batch_api.archive()
. - Moved methods
do_email_upsert_by_id()
anddo_upsert_by_id()
frommarketing.events.marketing_events_external_api()
tomarketing.events.subscriber_state_changes()
. - Renamed Api
marketing.events.settings_external_api()
tomarketing.events.settings_api()
. - Added new param
is_large_value
tomarketing.events.models.PropertyValue
. - Changed the type of parameter
category
fromErrorCategory
tostring
inmarketing.events.models.StandardError
. - Added new param
lifecycle_stages
to `marketing.forms....
Added new parameters to the `PublicUser` model in `settings.users.models`
- Added new parameters to the
PublicUser
model insettings.users.models
:super_admin
: boolean.send_welcome_email
: boolean.
8.2.0
Added:
- cms.pages Api client.
- crm.lists Api client.
- crm.objects.goals Api client.
- crm.objects.taxes Api client.
- events.send Api client.
- settings.business_units Api client.
Fix initializing `developer_hapikey`
Merge pull request #239 from HubSpot/feature/8.1.1 8.1.1
8.1.0
Removed hapikey
from
-
automation.actions.callbacks_api
Api. -
cms
(all Api clients). -
communication_preferences
(all Api clients). -
conversations
(all API clients). -
crm
(all Api clients). -
events
(all Api clients). -
files
(all Api clients). -
marketing.events.settings_external_api
Api. -
marketing.transactional
Api client.
Updated -
Change type from
object
tostring
incms/hubdb/models/StandardError.category
. -
Change type from
StandardError[]
toStandardError1[]
incrm/associations/v4/models/BatchResponseSimplePublicObjectWithErrors.errors
. -
Change type from
ErrorCategory
tostring
incrm/companies/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/contacts/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/deals/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/lineitems/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/calls/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/communications/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/emails/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/feedback_submissions/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/meetings/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/notes/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/postal_mail/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/objects/tasks/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/products/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/properties/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/quotes/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
incrm/tickets/models/StandardError.category
. -
Change type from
ErrorCategory
tostring
inwebhooks/models/StandardError.category
. -
example in README(SimplePublicObjectInputForCreate)
v8.0.0
Fix utils.get_auth_url()
(don’t add empty scopes or optional scopes to OAuth url)
Removed deprecated Webhooks util
- Removed deprecated
webhooks
util. - add more association types
- add custom exceptions for Signature
- Update README
Add missing crm.associations.v4.basic_api Api.
- add missing crm.associations.v4.basic_api Api.