Description
Version 2022-02-22 no longer supports phone
and text
property filters in the query database endpoint. For consistency with the database property types, use phone_number
and rich_text
instead when filtering on phone_number
and rich_text
properties.
More concretely, this query database filter will throw a validation error:
{
"filter": {
"and": [
{
"property": "Phone number",
"phone": {
"equals": "1112223333"
}
}
]
}
}
This query database filter will succeed:
{
"filter": {
"and": [
{
"property": "Phone number",
"phone_number": {
"equals": "1112223333"
}
}
]
}
}
Notion changelog: https://developers.notion.com/changelog/releasing-notion-version-2022-02-22