From 4962a8be572c0a55b34ee29187915286c5a85237 Mon Sep 17 00:00:00 2001 From: asajjad2 Date: Tue, 30 Sep 2025 15:27:57 +0500 Subject: [PATCH] fix: basic API create paramter name --- ...jjad_8295_basicapi_create_parameter_fix.md | 43 +++++++++++++++++++ src/hubspot_api/mitol/hubspot_api/api.py | 5 ++- 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 src/hubspot_api/changelog.d/20250930_152628_areeb.sajjad_8295_basicapi_create_parameter_fix.md diff --git a/src/hubspot_api/changelog.d/20250930_152628_areeb.sajjad_8295_basicapi_create_parameter_fix.md b/src/hubspot_api/changelog.d/20250930_152628_areeb.sajjad_8295_basicapi_create_parameter_fix.md new file mode 100644 index 00000000..91c0c758 --- /dev/null +++ b/src/hubspot_api/changelog.d/20250930_152628_areeb.sajjad_8295_basicapi_create_parameter_fix.md @@ -0,0 +1,43 @@ + + + + + + + +### Fixed + +- Hubspot Basic API create paramter name + + + diff --git a/src/hubspot_api/mitol/hubspot_api/api.py b/src/hubspot_api/mitol/hubspot_api/api.py index dcac20e5..21c9a99d 100644 --- a/src/hubspot_api/mitol/hubspot_api/api.py +++ b/src/hubspot_api/mitol/hubspot_api/api.py @@ -260,8 +260,8 @@ def handle_create_api_error( # noqa: C901, PLR0913 ) elif retry_create: return HubspotApi().crm.objects.basic_api.create( - simple_public_object_input=body, object_type=hubspot_type, + simple_public_object_input_for_create=body, ) # This was some other kind of error so raise it raise error @@ -298,7 +298,8 @@ def upsert_object_request( else: try: result = api.create( - simple_public_object_input=body, object_type=hubspot_type + object_type=hubspot_type, + simple_public_object_input_for_create=body, ) except ApiException as err: result = handle_create_api_error(