Skip to content
Merged
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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Added `include_field_code` query parameter to Filters endpoints:
- `GET /v1/filters/{id}`
- `PUT /v1/filters/{id}`
- `POST /v1/filters`
- When set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name. The value is `null` if the field code cannot be resolved.

## [15.5.0](https://github.com/pipedrive/client-php/compare/15.4.0...15.5.0) (2026-04-16)

## [15.4.0](https://github.com/pipedrive/client-php/compare/15.3.0...15.4.0) (2026-02-16)

Expand Down
1,114 changes: 93 additions & 1,021 deletions docs/versions/v1/Api/DealsApi.md

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions docs/versions/v1/Api/FiltersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Method | HTTP request | Description
## `addFilter()`

```php
addFilter($add_filter_request): \Pipedrive\versions\v1\Model\FiltersPostResponse
addFilter($include_field_code, $add_filter_request): \Pipedrive\versions\v1\Model\FiltersPostResponse
```

Add a new filter
Expand Down Expand Up @@ -45,10 +45,11 @@ $apiInstance = new Pipedrive\versions\v1\Api\FiltersApi(
new GuzzleHttp\Client(),
$config
);
$include_field_code = True; // bool | If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
$add_filter_request = new \Pipedrive\versions\v1\Model\AddFilterRequest(); // \Pipedrive\versions\v1\Model\AddFilterRequest

try {
$result = $apiInstance->addFilter($add_filter_request);
$result = $apiInstance->addFilter($include_field_code, $add_filter_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FiltersApi->addFilter: ', $e->getMessage(), PHP_EOL;
Expand All @@ -59,6 +60,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**include_field_code** | **bool**| If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name | [optional]
**add_filter_request** | [**\Pipedrive\versions\v1\Model\AddFilterRequest**](../Model/AddFilterRequest.md)| | [optional]

### Return type
Expand Down Expand Up @@ -211,7 +213,7 @@ Name | Type | Description | Notes
## `getFilter()`

```php
getFilter($id): \Pipedrive\versions\v1\Model\FiltersGetResponse
getFilter($id, $include_field_code): \Pipedrive\versions\v1\Model\FiltersGetResponse
```

Get one filter
Expand Down Expand Up @@ -241,9 +243,10 @@ $apiInstance = new Pipedrive\versions\v1\Api\FiltersApi(
$config
);
$id = 56; // int | The ID of the filter
$include_field_code = True; // bool | If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name

try {
$result = $apiInstance->getFilter($id);
$result = $apiInstance->getFilter($id, $include_field_code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FiltersApi->getFilter: ', $e->getMessage(), PHP_EOL;
Expand All @@ -255,6 +258,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| The ID of the filter |
**include_field_code** | **bool**| If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name | [optional]

### Return type

Expand Down Expand Up @@ -403,7 +407,7 @@ Name | Type | Description | Notes
## `updateFilter()`

```php
updateFilter($id, $update_filter_request): \Pipedrive\versions\v1\Model\FiltersPostResponse
updateFilter($id, $include_field_code, $update_filter_request): \Pipedrive\versions\v1\Model\FiltersPostResponse
```

Update filter
Expand Down Expand Up @@ -433,10 +437,11 @@ $apiInstance = new Pipedrive\versions\v1\Api\FiltersApi(
$config
);
$id = 56; // int | The ID of the filter
$include_field_code = True; // bool | If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name
$update_filter_request = new \Pipedrive\versions\v1\Model\UpdateFilterRequest(); // \Pipedrive\versions\v1\Model\UpdateFilterRequest

try {
$result = $apiInstance->updateFilter($id, $update_filter_request);
$result = $apiInstance->updateFilter($id, $include_field_code, $update_filter_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FiltersApi->updateFilter: ', $e->getMessage(), PHP_EOL;
Expand All @@ -448,6 +453,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| The ID of the filter |
**include_field_code** | **bool**| If set to `true`, each condition in the response includes a `field_code` field identifying the field by its code name | [optional]
**update_filter_request** | [**\Pipedrive\versions\v1\Model\UpdateFilterRequest**](../Model/UpdateFilterRequest.md)| | [optional]

### Return type
Expand Down
Loading