From d54949ab84b2b0b80c8402cf1d50e44c281c8bbf Mon Sep 17 00:00:00 2001 From: pipedrive-bot Date: Mon, 25 May 2026 11:57:26 +0000 Subject: [PATCH 1/2] Build 330 - version-minor --- CHANGELOG.md | 6 +++ docs/versions/v1/Model/FullProjectObject.md | 1 + .../v1/Model/ProjectObjectFragment.md | 1 + docs/versions/v1/Model/ProjectPostObject.md | 1 + docs/versions/v1/Model/ProjectPutObject.md | 1 + .../v1/Model/ProjectResponseObject.md | 1 + docs/versions/v2/Model/ProjectItem.md | 2 +- docs/versions/v2/Model/ProjectRequestBody.md | 1 + lib/versions/v1/Model/FullProjectObject.php | 30 ++++++++++++++ .../v1/Model/ProjectObjectFragment.php | 40 ++++++++++++++++--- lib/versions/v1/Model/ProjectPostObject.php | 30 ++++++++++++++ lib/versions/v1/Model/ProjectPutObject.php | 40 ++++++++++++++++--- .../v1/Model/ProjectResponseObject.php | 30 ++++++++++++++ lib/versions/v2/Model/ProjectItem.php | 6 +-- lib/versions/v2/Model/ProjectRequestBody.php | 30 ++++++++++++++ 15 files changed, 206 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b60619fd..2aae012b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added +- Added `health_status` field to v1 project response schema (`GET /v1/projects`, `GET /v1/projects/{id}`) +- Added `health_status` as a writable field to v2 project request body (`POST /api/v2/projects`, `PATCH /api/v2/projects/{id}`) +### Fixed +- Fixed `health_status` field type from `string` to `integer` in v2 project response schema (`GET /api/v2/projects`, `GET /api/v2/projects/{id}`) + ## [17.1.0](https://github.com/pipedrive/client-php/compare17.0.0...17.1.0) (2026-04-06) ### Added diff --git a/docs/versions/v1/Model/FullProjectObject.md b/docs/versions/v1/Model/FullProjectObject.md index c55d2d4c..a623fce7 100644 --- a/docs/versions/v1/Model/FullProjectObject.md +++ b/docs/versions/v1/Model/FullProjectObject.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **org_id** | **float** | The ID of the organization this project is associated with | [optional] **person_id** | **float** | The ID of the person this project is associated with | [optional] **labels** | **int[]** | An array of IDs of the labels this project has | [optional] +**health_status** | **int** | The health status of the project | [optional] **add_time** | **string** | The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] **update_time** | **string** | The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] **status_change_time** | **string** | The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] diff --git a/docs/versions/v1/Model/ProjectObjectFragment.md b/docs/versions/v1/Model/ProjectObjectFragment.md index 64fc271d..1a0ce2f8 100644 --- a/docs/versions/v1/Model/ProjectObjectFragment.md +++ b/docs/versions/v1/Model/ProjectObjectFragment.md @@ -15,5 +15,6 @@ Name | Type | Description | Notes **org_id** | **float** | The ID of the organization this project is associated with | [optional] **person_id** | **float** | The ID of the person this project is associated with | [optional] **labels** | **int[]** | An array of IDs of the labels this project has | [optional] +**health_status** | **int** | The health status of the project | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/versions/v1/Model/ProjectPostObject.md b/docs/versions/v1/Model/ProjectPostObject.md index 264dd682..0329b830 100644 --- a/docs/versions/v1/Model/ProjectPostObject.md +++ b/docs/versions/v1/Model/ProjectPostObject.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **org_id** | **float** | The ID of the organization this project is associated with | [optional] **person_id** | **float** | The ID of the person this project is associated with | [optional] **labels** | **int[]** | An array of IDs of the labels this project has | [optional] +**health_status** | **int** | The health status of the project | [optional] **template_id** | **float** | The ID of the template the project will be based on | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/versions/v1/Model/ProjectPutObject.md b/docs/versions/v1/Model/ProjectPutObject.md index a9dc8030..f8e74375 100644 --- a/docs/versions/v1/Model/ProjectPutObject.md +++ b/docs/versions/v1/Model/ProjectPutObject.md @@ -16,5 +16,6 @@ Name | Type | Description | Notes **org_id** | **float** | The ID of the organization this project is associated with | [optional] **person_id** | **float** | The ID of the person this project is associated with | [optional] **labels** | **int[]** | An array of IDs of the labels this project has | [optional] +**health_status** | **int** | The health status of the project | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/versions/v1/Model/ProjectResponseObject.md b/docs/versions/v1/Model/ProjectResponseObject.md index 5697a787..da274dee 100644 --- a/docs/versions/v1/Model/ProjectResponseObject.md +++ b/docs/versions/v1/Model/ProjectResponseObject.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **org_id** | **float** | The ID of the organization this project is associated with | [optional] **person_id** | **float** | The ID of the person this project is associated with | [optional] **labels** | **int[]** | An array of IDs of the labels this project has | [optional] +**health_status** | **int** | The health status of the project | [optional] **add_time** | **string** | The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] **update_time** | **string** | The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] **status_change_time** | **string** | The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] diff --git a/docs/versions/v2/Model/ProjectItem.md b/docs/versions/v2/Model/ProjectItem.md index f5050fee..706cbf31 100644 --- a/docs/versions/v2/Model/ProjectItem.md +++ b/docs/versions/v2/Model/ProjectItem.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **person_ids** | **int[]** | An array of IDs of the persons this project is associated with | [optional] **org_ids** | **int[]** | An array of IDs of the organizations this project is associated with | [optional] **label_ids** | **int[]** | An array of IDs of the labels this project has | [optional] -**health_status** | **string** | The health status of the project | [optional] +**health_status** | **int** | The health status of the project | [optional] **add_time** | **string** | The creation date and time of the project in ISO 8601 format | [optional] **update_time** | **string** | The last updated date and time of the project in ISO 8601 format | [optional] **status_change_time** | **string** | The date and time of the last status change of the project in ISO 8601 format | [optional] diff --git a/docs/versions/v2/Model/ProjectRequestBody.md b/docs/versions/v2/Model/ProjectRequestBody.md index 5892a1fe..26c2f6c4 100644 --- a/docs/versions/v2/Model/ProjectRequestBody.md +++ b/docs/versions/v2/Model/ProjectRequestBody.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **person_ids** | **int[]** | An array of IDs of the persons this project is associated with | [optional] **org_ids** | **int[]** | An array of IDs of the organizations this project is associated with | [optional] **label_ids** | **int[]** | An array of IDs of the labels this project has | [optional] +**health_status** | **int** | The health status of the project | [optional] **template_id** | **int** | The ID of the template the project will be based on. Only used when creating a new project. | [optional] **custom_fields** | **array** | An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error. | [optional] diff --git a/lib/versions/v1/Model/FullProjectObject.php b/lib/versions/v1/Model/FullProjectObject.php index dbd1bf3f..59a32a48 100644 --- a/lib/versions/v1/Model/FullProjectObject.php +++ b/lib/versions/v1/Model/FullProjectObject.php @@ -78,6 +78,7 @@ class FullProjectObject implements ModelInterface, ArrayAccess, JsonSerializable 'org_id' => 'float', 'person_id' => 'float', 'labels' => 'int[]', + 'health_status' => 'int', 'add_time' => 'string', 'update_time' => 'string', 'status_change_time' => 'string', @@ -104,6 +105,7 @@ class FullProjectObject implements ModelInterface, ArrayAccess, JsonSerializable 'org_id' => null, 'person_id' => null, 'labels' => null, + 'health_status' => null, 'add_time' => null, 'update_time' => null, 'status_change_time' => null, @@ -153,6 +155,7 @@ public static function openAPIFormats(): array 'org_id' => 'org_id', 'person_id' => 'person_id', 'labels' => 'labels', + 'health_status' => 'health_status', 'add_time' => 'add_time', 'update_time' => 'update_time', 'status_change_time' => 'status_change_time', @@ -177,6 +180,7 @@ public static function openAPIFormats(): array 'org_id' => 'setOrgId', 'person_id' => 'setPersonId', 'labels' => 'setLabels', + 'health_status' => 'setHealthStatus', 'add_time' => 'setAddTime', 'update_time' => 'setUpdateTime', 'status_change_time' => 'setStatusChangeTime', @@ -201,6 +205,7 @@ public static function openAPIFormats(): array 'org_id' => 'getOrgId', 'person_id' => 'getPersonId', 'labels' => 'getLabels', + 'health_status' => 'getHealthStatus', 'add_time' => 'getAddTime', 'update_time' => 'getUpdateTime', 'status_change_time' => 'getStatusChangeTime', @@ -286,6 +291,7 @@ public function __construct(?array $data = null) $this->container['org_id'] = $data['org_id'] ?? null; $this->container['person_id'] = $data['person_id'] ?? null; $this->container['labels'] = $data['labels'] ?? null; + $this->container['health_status'] = $data['health_status'] ?? null; $this->container['add_time'] = $data['add_time'] ?? null; $this->container['update_time'] = $data['update_time'] ?? null; $this->container['status_change_time'] = $data['status_change_time'] ?? null; @@ -606,6 +612,30 @@ public function setLabels($labels): self return $this; } + /** + * Gets health_status + * + * @return int|null + */ + public function getHealthStatus() + { + return $this->container['health_status']; + } + + /** + * Sets health_status + * + * @param int|null $health_status The health status of the project + * + * @return self + */ + public function setHealthStatus($health_status): self + { + $this->container['health_status'] = $health_status; + + return $this; + } + /** * Gets add_time * diff --git a/lib/versions/v1/Model/ProjectObjectFragment.php b/lib/versions/v1/Model/ProjectObjectFragment.php index b6d11148..27481ced 100644 --- a/lib/versions/v1/Model/ProjectObjectFragment.php +++ b/lib/versions/v1/Model/ProjectObjectFragment.php @@ -76,7 +76,8 @@ class ProjectObjectFragment implements ModelInterface, ArrayAccess, JsonSerializ 'deal_ids' => 'int[]', 'org_id' => 'float', 'person_id' => 'float', - 'labels' => 'int[]' + 'labels' => 'int[]', + 'health_status' => 'int' ]; /** @@ -97,7 +98,8 @@ class ProjectObjectFragment implements ModelInterface, ArrayAccess, JsonSerializ 'deal_ids' => null, 'org_id' => null, 'person_id' => null, - 'labels' => null + 'labels' => null, + 'health_status' => null ]; /** @@ -141,7 +143,8 @@ public static function openAPIFormats(): array 'deal_ids' => 'deal_ids', 'org_id' => 'org_id', 'person_id' => 'person_id', - 'labels' => 'labels' + 'labels' => 'labels', + 'health_status' => 'health_status' ]; /** @@ -160,7 +163,8 @@ public static function openAPIFormats(): array 'deal_ids' => 'setDealIds', 'org_id' => 'setOrgId', 'person_id' => 'setPersonId', - 'labels' => 'setLabels' + 'labels' => 'setLabels', + 'health_status' => 'setHealthStatus' ]; /** @@ -179,7 +183,8 @@ public static function openAPIFormats(): array 'deal_ids' => 'getDealIds', 'org_id' => 'getOrgId', 'person_id' => 'getPersonId', - 'labels' => 'getLabels' + 'labels' => 'getLabels', + 'health_status' => 'getHealthStatus' ]; /** @@ -260,6 +265,7 @@ public function __construct(?array $data = null) $this->container['org_id'] = $data['org_id'] ?? null; $this->container['person_id'] = $data['person_id'] ?? null; $this->container['labels'] = $data['labels'] ?? null; + $this->container['health_status'] = $data['health_status'] ?? null; } /** @@ -551,6 +557,30 @@ public function setLabels($labels): self return $this; } + + /** + * Gets health_status + * + * @return int|null + */ + public function getHealthStatus() + { + return $this->container['health_status']; + } + + /** + * Sets health_status + * + * @param int|null $health_status The health status of the project + * + * @return self + */ + public function setHealthStatus($health_status): self + { + $this->container['health_status'] = $health_status; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/versions/v1/Model/ProjectPostObject.php b/lib/versions/v1/Model/ProjectPostObject.php index af245d3d..7d0e0fc9 100644 --- a/lib/versions/v1/Model/ProjectPostObject.php +++ b/lib/versions/v1/Model/ProjectPostObject.php @@ -78,6 +78,7 @@ class ProjectPostObject implements ModelInterface, ArrayAccess, JsonSerializable 'org_id' => 'float', 'person_id' => 'float', 'labels' => 'int[]', + 'health_status' => 'int', 'template_id' => 'float' ]; @@ -101,6 +102,7 @@ class ProjectPostObject implements ModelInterface, ArrayAccess, JsonSerializable 'org_id' => null, 'person_id' => null, 'labels' => null, + 'health_status' => null, 'template_id' => null ]; @@ -147,6 +149,7 @@ public static function openAPIFormats(): array 'org_id' => 'org_id', 'person_id' => 'person_id', 'labels' => 'labels', + 'health_status' => 'health_status', 'template_id' => 'template_id' ]; @@ -168,6 +171,7 @@ public static function openAPIFormats(): array 'org_id' => 'setOrgId', 'person_id' => 'setPersonId', 'labels' => 'setLabels', + 'health_status' => 'setHealthStatus', 'template_id' => 'setTemplateId' ]; @@ -189,6 +193,7 @@ public static function openAPIFormats(): array 'org_id' => 'getOrgId', 'person_id' => 'getPersonId', 'labels' => 'getLabels', + 'health_status' => 'getHealthStatus', 'template_id' => 'getTemplateId' ]; @@ -271,6 +276,7 @@ public function __construct(?array $data = null) $this->container['org_id'] = $data['org_id'] ?? null; $this->container['person_id'] = $data['person_id'] ?? null; $this->container['labels'] = $data['labels'] ?? null; + $this->container['health_status'] = $data['health_status'] ?? null; $this->container['template_id'] = $data['template_id'] ?? null; } @@ -591,6 +597,30 @@ public function setLabels($labels): self return $this; } + /** + * Gets health_status + * + * @return int|null + */ + public function getHealthStatus() + { + return $this->container['health_status']; + } + + /** + * Sets health_status + * + * @param int|null $health_status The health status of the project + * + * @return self + */ + public function setHealthStatus($health_status): self + { + $this->container['health_status'] = $health_status; + + return $this; + } + /** * Gets template_id * diff --git a/lib/versions/v1/Model/ProjectPutObject.php b/lib/versions/v1/Model/ProjectPutObject.php index 2b640aa0..f9c8b211 100644 --- a/lib/versions/v1/Model/ProjectPutObject.php +++ b/lib/versions/v1/Model/ProjectPutObject.php @@ -77,7 +77,8 @@ class ProjectPutObject implements ModelInterface, ArrayAccess, JsonSerializable 'deal_ids' => 'int[]', 'org_id' => 'float', 'person_id' => 'float', - 'labels' => 'int[]' + 'labels' => 'int[]', + 'health_status' => 'int' ]; /** @@ -99,7 +100,8 @@ class ProjectPutObject implements ModelInterface, ArrayAccess, JsonSerializable 'deal_ids' => null, 'org_id' => null, 'person_id' => null, - 'labels' => null + 'labels' => null, + 'health_status' => null ]; /** @@ -144,7 +146,8 @@ public static function openAPIFormats(): array 'deal_ids' => 'deal_ids', 'org_id' => 'org_id', 'person_id' => 'person_id', - 'labels' => 'labels' + 'labels' => 'labels', + 'health_status' => 'health_status' ]; /** @@ -164,7 +167,8 @@ public static function openAPIFormats(): array 'deal_ids' => 'setDealIds', 'org_id' => 'setOrgId', 'person_id' => 'setPersonId', - 'labels' => 'setLabels' + 'labels' => 'setLabels', + 'health_status' => 'setHealthStatus' ]; /** @@ -184,7 +188,8 @@ public static function openAPIFormats(): array 'deal_ids' => 'getDealIds', 'org_id' => 'getOrgId', 'person_id' => 'getPersonId', - 'labels' => 'getLabels' + 'labels' => 'getLabels', + 'health_status' => 'getHealthStatus' ]; /** @@ -266,6 +271,7 @@ public function __construct(?array $data = null) $this->container['org_id'] = $data['org_id'] ?? null; $this->container['person_id'] = $data['person_id'] ?? null; $this->container['labels'] = $data['labels'] ?? null; + $this->container['health_status'] = $data['health_status'] ?? null; } /** @@ -581,6 +587,30 @@ public function setLabels($labels): self return $this; } + + /** + * Gets health_status + * + * @return int|null + */ + public function getHealthStatus() + { + return $this->container['health_status']; + } + + /** + * Sets health_status + * + * @param int|null $health_status The health status of the project + * + * @return self + */ + public function setHealthStatus($health_status): self + { + $this->container['health_status'] = $health_status; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/versions/v1/Model/ProjectResponseObject.php b/lib/versions/v1/Model/ProjectResponseObject.php index 73b6ff69..3138725e 100644 --- a/lib/versions/v1/Model/ProjectResponseObject.php +++ b/lib/versions/v1/Model/ProjectResponseObject.php @@ -79,6 +79,7 @@ class ProjectResponseObject implements ModelInterface, ArrayAccess, JsonSerializ 'org_id' => 'float', 'person_id' => 'float', 'labels' => 'int[]', + 'health_status' => 'int', 'add_time' => 'string', 'update_time' => 'string', 'status_change_time' => 'string', @@ -106,6 +107,7 @@ class ProjectResponseObject implements ModelInterface, ArrayAccess, JsonSerializ 'org_id' => null, 'person_id' => null, 'labels' => null, + 'health_status' => null, 'add_time' => null, 'update_time' => null, 'status_change_time' => null, @@ -156,6 +158,7 @@ public static function openAPIFormats(): array 'org_id' => 'org_id', 'person_id' => 'person_id', 'labels' => 'labels', + 'health_status' => 'health_status', 'add_time' => 'add_time', 'update_time' => 'update_time', 'status_change_time' => 'status_change_time', @@ -181,6 +184,7 @@ public static function openAPIFormats(): array 'org_id' => 'setOrgId', 'person_id' => 'setPersonId', 'labels' => 'setLabels', + 'health_status' => 'setHealthStatus', 'add_time' => 'setAddTime', 'update_time' => 'setUpdateTime', 'status_change_time' => 'setStatusChangeTime', @@ -206,6 +210,7 @@ public static function openAPIFormats(): array 'org_id' => 'getOrgId', 'person_id' => 'getPersonId', 'labels' => 'getLabels', + 'health_status' => 'getHealthStatus', 'add_time' => 'getAddTime', 'update_time' => 'getUpdateTime', 'status_change_time' => 'getStatusChangeTime', @@ -292,6 +297,7 @@ public function __construct(?array $data = null) $this->container['org_id'] = $data['org_id'] ?? null; $this->container['person_id'] = $data['person_id'] ?? null; $this->container['labels'] = $data['labels'] ?? null; + $this->container['health_status'] = $data['health_status'] ?? null; $this->container['add_time'] = $data['add_time'] ?? null; $this->container['update_time'] = $data['update_time'] ?? null; $this->container['status_change_time'] = $data['status_change_time'] ?? null; @@ -636,6 +642,30 @@ public function setLabels($labels): self return $this; } + /** + * Gets health_status + * + * @return int|null + */ + public function getHealthStatus() + { + return $this->container['health_status']; + } + + /** + * Sets health_status + * + * @param int|null $health_status The health status of the project + * + * @return self + */ + public function setHealthStatus($health_status): self + { + $this->container['health_status'] = $health_status; + + return $this; + } + /** * Gets add_time * diff --git a/lib/versions/v2/Model/ProjectItem.php b/lib/versions/v2/Model/ProjectItem.php index 21d60734..e8b99b5b 100644 --- a/lib/versions/v2/Model/ProjectItem.php +++ b/lib/versions/v2/Model/ProjectItem.php @@ -79,7 +79,7 @@ class ProjectItem implements ModelInterface, ArrayAccess, JsonSerializable 'person_ids' => 'int[]', 'org_ids' => 'int[]', 'label_ids' => 'int[]', - 'health_status' => 'string', + 'health_status' => 'int', 'add_time' => 'string', 'update_time' => 'string', 'status_change_time' => 'string', @@ -651,7 +651,7 @@ public function setLabelIds($label_ids): self /** * Gets health_status * - * @return string|null + * @return int|null */ public function getHealthStatus() { @@ -661,7 +661,7 @@ public function getHealthStatus() /** * Sets health_status * - * @param string|null $health_status The health status of the project + * @param int|null $health_status The health status of the project * * @return self */ diff --git a/lib/versions/v2/Model/ProjectRequestBody.php b/lib/versions/v2/Model/ProjectRequestBody.php index b4c894b2..07cf228f 100644 --- a/lib/versions/v2/Model/ProjectRequestBody.php +++ b/lib/versions/v2/Model/ProjectRequestBody.php @@ -78,6 +78,7 @@ class ProjectRequestBody implements ModelInterface, ArrayAccess, JsonSerializabl 'person_ids' => 'int[]', 'org_ids' => 'int[]', 'label_ids' => 'int[]', + 'health_status' => 'int', 'template_id' => 'int', 'custom_fields' => 'array' ]; @@ -102,6 +103,7 @@ class ProjectRequestBody implements ModelInterface, ArrayAccess, JsonSerializabl 'person_ids' => null, 'org_ids' => null, 'label_ids' => null, + 'health_status' => null, 'template_id' => null, 'custom_fields' => null ]; @@ -149,6 +151,7 @@ public static function openAPIFormats(): array 'person_ids' => 'person_ids', 'org_ids' => 'org_ids', 'label_ids' => 'label_ids', + 'health_status' => 'health_status', 'template_id' => 'template_id', 'custom_fields' => 'custom_fields' ]; @@ -171,6 +174,7 @@ public static function openAPIFormats(): array 'person_ids' => 'setPersonIds', 'org_ids' => 'setOrgIds', 'label_ids' => 'setLabelIds', + 'health_status' => 'setHealthStatus', 'template_id' => 'setTemplateId', 'custom_fields' => 'setCustomFields' ]; @@ -193,6 +197,7 @@ public static function openAPIFormats(): array 'person_ids' => 'getPersonIds', 'org_ids' => 'getOrgIds', 'label_ids' => 'getLabelIds', + 'health_status' => 'getHealthStatus', 'template_id' => 'getTemplateId', 'custom_fields' => 'getCustomFields' ]; @@ -276,6 +281,7 @@ public function __construct(?array $data = null) $this->container['person_ids'] = $data['person_ids'] ?? null; $this->container['org_ids'] = $data['org_ids'] ?? null; $this->container['label_ids'] = $data['label_ids'] ?? null; + $this->container['health_status'] = $data['health_status'] ?? null; $this->container['template_id'] = $data['template_id'] ?? null; $this->container['custom_fields'] = $data['custom_fields'] ?? null; } @@ -594,6 +600,30 @@ public function setLabelIds($label_ids): self return $this; } + /** + * Gets health_status + * + * @return int|null + */ + public function getHealthStatus() + { + return $this->container['health_status']; + } + + /** + * Sets health_status + * + * @param int|null $health_status The health status of the project + * + * @return self + */ + public function setHealthStatus($health_status): self + { + $this->container['health_status'] = $health_status; + + return $this; + } + /** * Gets template_id * From 153d32a4c4abbd7b7cf3c4e6be7bd5f686169dc8 Mon Sep 17 00:00:00 2001 From: nikita-masalov Date: Thu, 4 Jun 2026 14:31:12 +0300 Subject: [PATCH 2/2] Release v17.2.0 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2aae012b..227ebe54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [17.2.0](https://github.com/pipedrive/client-php/compare17.1.0...17.2.0) (2026-04-06) + ### Added - Added `health_status` field to v1 project response schema (`GET /v1/projects`, `GET /v1/projects/{id}`) - Added `health_status` as a writable field to v2 project request body (`POST /api/v2/projects`, `PATCH /api/v2/projects/{id}`)