Contents
Changelog
November 4, 2022
date
valueAnnounced: September 5, 2022
November 4, 2022
What is changing?
All values of the date
type inside a filter’s conditions have to adhere to the YYYY-MM-DD
date format.
This update applies to the following Filters API endpoints:
If an invalid date
format is included in the condition(s), the request will return a 400
error response.
Here’s an example for filtering deals by their expected close date:
{
"name": "Filter by expected close date",
"type": "deals",
"conditions": {
"glue": "and",
"conditions": [{
"glue": "and",
"conditions": [{
"object": "deal",
"field_id": "12345",
"operator": "<=",
"value": "2022-09-05",
"extra_value": null
}]
}, {
"glue": "or",
"conditions": []
}]
}
}
Why is it changing?
The YYYY-MM-DD
date format will be applied to make sure
that the Filters API is consistent with the Pipedrive web app.
This ensures that the filters you create with date conditions work
as expected and return the correct results.
Who will be affected?
Everyone who is using the POST
and PUT
endpoints
for adding filters.
If you have any questions or comments, let us know in the Developer’s Community.