Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!--
A new scriv changelog fragment.

Uncomment the section that is right (remove the HTML comment wrapper).
For top level release notes, leave all the headers commented out.
-->

<!--
### Removed

- A bullet item for the Removed category.

-->
<!--
### Added

- A bullet item for the Added category.

-->
<!--
### Changed

- A bullet item for the Changed category.

-->
<!--
### Deprecated

- A bullet item for the Deprecated category.

-->

### Fixed

- Hubspot Basic API create paramter name


<!--
### Security

- A bullet item for the Security category.

-->
5 changes: 3 additions & 2 deletions src/hubspot_api/mitol/hubspot_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down