Skip to content

Commit 915c8af

Browse files
Merge pull request #601 from HubSpot/codegen/crmAssociationsV4
Codegen: CRM Associations V4
2 parents 5d96cf6 + 2a26d2c commit 915c8af

10 files changed

Lines changed: 813 additions & 325 deletions

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/14.0.4...HEAD)
8+
## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/14.0.5...HEAD)
9+
10+
## [14.0.5](https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.5) - 2026-04-02
11+
12+
### CRM Associations V4
13+
14+
- Updated the return type of the response object in `crm()->associations()->v4()->batchApi()->archive()` and `archiveLabels()` to `void` instead of `BatchResponseVoid|Error`. The `BatchResponseVoid` model has been removed.
15+
- `crm()->associations()->v4()->batchApi()->create()` now handles HTTP 207 (partial success) responses, returning new `BatchResponseLabelsBetweenObjectPairWithErrors` model.
16+
- `crm()->associations()->v4()->batchApi()->getPage()` now handles HTTP 207 (partial success) responses, returning new `BatchResponsePublicAssociationMultiWithLabelWithErrors` model.
17+
- `HubSpot\Client\Crm\Associations\V4\Model\BatchResponseLabelsBetweenObjectPair` model no longer includes `errors` and `numErrors` fields — those are available on the new `HubSpot\Client\Crm\Associations\V4\Model\BatchResponseLabelsBetweenObjectPairWithErrors` model.
18+
- Added new models: `HubSpot\Client\Crm\Associations\V4\Model\BatchResponseLabelsBetweenObjectPairWithErrors`, `HubSpot\Client\Crm\Associations\V4\Model\BatchResponsePublicAssociationMultiWithLabelWithErrors`.
919

1020
## [14.0.4](https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.4) - 2026-03-24
1121

@@ -1220,7 +1230,7 @@ to
12201230
25. getSubscriptions => getAll (webhooks()->subscriptionsApi())
12211231
26. updateSubscription => update (webhooks()->subscriptionsApi())
12221232

1223-
[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/14.0.4...HEAD
1233+
[Unreleased]: https://github.com/HubSpot/hubspot-api-php/compare/14.0.5...HEAD
12241234
[1.0.0-beta]: https://github.com/HubSpot/hubspot-api-php/releases/tag/v1.0.0-beta
12251235
[1.1.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.1.0
12261236
[1.2.0]: https://github.com/HubSpot/hubspot-api-php/releases/tag/1.2.0
@@ -1291,3 +1301,4 @@ to
12911301
[14.0.2]: https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.2
12921302
[14.0.3]: https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.3
12931303
[14.0.4]: https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.4
1304+
[14.0.5]: https://github.com/HubSpot/hubspot-api-php/releases/tag/14.0.5

codegen/Crm/Associations/V4/Api/BasicApi.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function getConfig()
137137
/**
138138
* Operation archive
139139
*
140-
* Delete
140+
* Delete associations between two records
141141
*
142142
* @param string $object_type object_type (required)
143143
* @param string $object_id object_id (required)
@@ -157,7 +157,7 @@ public function archive($object_type, $object_id, $to_object_type, $to_object_id
157157
/**
158158
* Operation archiveWithHttpInfo
159159
*
160-
* Delete
160+
* Delete associations between two records
161161
*
162162
* @param string $object_type (required)
163163
* @param string $object_id (required)
@@ -217,7 +217,7 @@ public function archiveWithHttpInfo($object_type, $object_id, $to_object_type, $
217217
/**
218218
* Operation archiveAsync
219219
*
220-
* Delete
220+
* Delete associations between two records
221221
*
222222
* @param string $object_type (required)
223223
* @param string $object_id (required)
@@ -241,7 +241,7 @@ function ($response) {
241241
/**
242242
* Operation archiveAsyncWithHttpInfo
243243
*
244-
* Delete
244+
* Delete associations between two records
245245
*
246246
* @param string $object_type (required)
247247
* @param string $object_id (required)
@@ -427,7 +427,7 @@ public function archiveRequest($object_type, $object_id, $to_object_type, $to_ob
427427
/**
428428
* Operation create
429429
*
430-
* Create
430+
* Associate records (labelled)
431431
*
432432
* @param string $object_type object_type (required)
433433
* @param string $object_id object_id (required)
@@ -449,7 +449,7 @@ public function create($object_type, $object_id, $to_object_type, $to_object_id,
449449
/**
450450
* Operation createWithHttpInfo
451451
*
452-
* Create
452+
* Associate records (labelled)
453453
*
454454
* @param string $object_type (required)
455455
* @param string $object_id (required)
@@ -552,7 +552,7 @@ public function createWithHttpInfo($object_type, $object_id, $to_object_type, $t
552552
/**
553553
* Operation createAsync
554554
*
555-
* Create
555+
* Associate records (labelled)
556556
*
557557
* @param string $object_type (required)
558558
* @param string $object_id (required)
@@ -577,7 +577,7 @@ function ($response) {
577577
/**
578578
* Operation createAsyncWithHttpInfo
579579
*
580-
* Create
580+
* Associate records (labelled)
581581
*
582582
* @param string $object_type (required)
583583
* @param string $object_id (required)
@@ -792,7 +792,7 @@ public function createRequest($object_type, $object_id, $to_object_type, $to_obj
792792
/**
793793
* Operation createDefault
794794
*
795-
* Create Default
795+
* Associate records (default)
796796
*
797797
* @param string $from_object_type from_object_type (required)
798798
* @param string $from_object_id from_object_id (required)
@@ -813,7 +813,7 @@ public function createDefault($from_object_type, $from_object_id, $to_object_typ
813813
/**
814814
* Operation createDefaultWithHttpInfo
815815
*
816-
* Create Default
816+
* Associate records (default)
817817
*
818818
* @param string $from_object_type (required)
819819
* @param string $from_object_id (required)
@@ -915,7 +915,7 @@ public function createDefaultWithHttpInfo($from_object_type, $from_object_id, $t
915915
/**
916916
* Operation createDefaultAsync
917917
*
918-
* Create Default
918+
* Associate records (default)
919919
*
920920
* @param string $from_object_type (required)
921921
* @param string $from_object_id (required)
@@ -939,7 +939,7 @@ function ($response) {
939939
/**
940940
* Operation createDefaultAsyncWithHttpInfo
941941
*
942-
* Create Default
942+
* Associate records (default)
943943
*
944944
* @param string $from_object_type (required)
945945
* @param string $from_object_id (required)
@@ -1138,7 +1138,7 @@ public function createDefaultRequest($from_object_type, $from_object_id, $to_obj
11381138
/**
11391139
* Operation getPage
11401140
*
1141-
* List
1141+
* Retrieve all associations by object type
11421142
*
11431143
* @param string $object_type object_type (required)
11441144
* @param string $object_id object_id (required)
@@ -1160,7 +1160,7 @@ public function getPage($object_type, $object_id, $to_object_type, $after = null
11601160
/**
11611161
* Operation getPageWithHttpInfo
11621162
*
1163-
* List
1163+
* Retrieve all associations by object type
11641164
*
11651165
* @param string $object_type (required)
11661166
* @param string $object_id (required)
@@ -1263,7 +1263,7 @@ public function getPageWithHttpInfo($object_type, $object_id, $to_object_type, $
12631263
/**
12641264
* Operation getPageAsync
12651265
*
1266-
* List
1266+
* Retrieve all associations by object type
12671267
*
12681268
* @param string $object_type (required)
12691269
* @param string $object_id (required)
@@ -1288,7 +1288,7 @@ function ($response) {
12881288
/**
12891289
* Operation getPageAsyncWithHttpInfo
12901290
*
1291-
* List
1291+
* Retrieve all associations by object type
12921292
*
12931293
* @param string $object_type (required)
12941294
* @param string $object_id (required)

0 commit comments

Comments
 (0)