fix(hubspot): correct list membership requests - #446
Merged
Shubhank-Jonnada merged 2 commits intoAug 20, 2026
Conversation
🔍 Integration Validation ResultsCommit:
|
Shubhank-Jonnada
requested review from
NinosMan,
ProRedCat and
TheRealAgentK
and removed request for
TheRealAgentK
August 20, 2026 02:04
ProRedCat
approved these changes
Aug 20, 2026
Shubhank-Jonnada
deleted the
sj/445-hubspot-list-membership-20260820-1341
branch
August 20, 2026 02:08
Contributor
Author
|
Local verification has been completed. All locally covered HubSpot actions are passing, and the live list-membership write succeeded. Local test results
Live result snapshot
The live write confirmed that the scope and array request payload are correct. HubSpot omitted empty arrays from the successful response, which exposed a separate output-schema validation edge case; that follow-up is addressed in #448. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crm.lists.writescope required byadd_contact_to_list.2.2.1to3.0.0because the corrected output contract is a breaking schema change.Closes #445.
Why
The action previously requested only
crm.lists.readand sent{ "recordIds": [...] }. HubSpot requirescrm.lists.writeand documents the body as a raw array of record IDs, so the action failed at authorization and would then have sent an incompatible request shape.HubSpot API reference
Flow
flowchart LR A["add_contact_to_list"] --> B["PUT /crm/v3/lists/{listId}/memberships/add"] B --> C["JSON body: array of contact IDs"] C --> D["HubSpot validates crm.lists.write"] D --> E["Manual or snapshot list updated"]Verification
python -m pytest hubspot -q— 281 passed.oauthandcontentheuristic warning remains.2.2.1→3.0.0.Rollout
The platform OAuth provider must also include
crm.lists.write(Autohive PR #5556). Existing HubSpot connections must reconnect after both changes are deployed.Author commitment