fractalatcarf
fractalatcarf

Reputation: 11

Notion API How filtering using unique_id

It is possible from now on to declare unique_id property in a Database. But there is no information to how search an item from a unique_id

In the body of the API call, I've tried

{
  "filter": {
    "property": "Identifiant",
    "number": {
        "equals": 92
   }
 }
}

Not working I got [400] Could not find property with name or id: Identifiant but Identifiant is the righ name of my property

Upvotes: 0

Views: 506

Answers (1)

Filipizaum
Filipizaum

Reputation: 81

According to the documentation, you need to pass "unique_id" instead of "number".

    {
        "filter": {
            "property": "Identifiant",
            "unique_id": {
                "equals": 92
            }
        }
    }

Upvotes: 0

Related Questions