Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phone and text no longer supported in the query database endpoint. #246

Closed
Tracked by #243
KoditkarVedant opened this issue Jul 10, 2022 · 0 comments · Fixed by #263 or #276
Closed
Tracked by #243

phone and text no longer supported in the query database endpoint. #246

KoditkarVedant opened this issue Jul 10, 2022 · 0 comments · Fixed by #263 or #276
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@KoditkarVedant
Copy link
Contributor

KoditkarVedant commented Jul 10, 2022

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

@KoditkarVedant KoditkarVedant changed the title phone and text are no longer supported in query database filters when filtering by phone_number and rich_text properties. Use phone_number and rich_text instead. phone and text no longer supported in the query database endpoint. Jul 10, 2022
@KoditkarVedant KoditkarVedant added this to the 3.0.0 milestone Jul 10, 2022
@KoditkarVedant KoditkarVedant added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed up for grabs labels Jul 10, 2022
@KoditkarVedant KoditkarVedant linked a pull request Jul 10, 2022 that will close this issue
10 tasks
@KoditkarVedant KoditkarVedant removed help wanted Extra attention is needed up for grabs labels Jul 10, 2022
@KoditkarVedant KoditkarVedant self-assigned this Jul 10, 2022
@KoditkarVedant KoditkarVedant linked a pull request Jul 17, 2022 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
1 participant