Error searching for fields type Checkbox



Posted Feb 19, 2025

I can't search for a field of type checkbox by passing `false`; this throws an "Invalid value" error.

 

On endpoint: POST /api/v2/custom_objects/{custom_object_key}/records/search

 

Example Request:

{

    "filter":{ 

        "$and": [

            {"custom_object_fields.avaliable": {"$eq": false}}

        ]

    }

}

Response:

{

    "error": {

        "title": "Unsupported Condition",

        "message": “Invalid value”

    }

}


0

2

2 comments

hi! yes, i do have a checkbox field with the key "available". i'm trying to filter records where this checkbox is set to false, but using "$eq": false results in an "Invalid value" error.

could you clarify how to correctly filter records where a checkbox field is unchecked (false)? if there's a specific syntax or structure required, i'd appreciate an example.

thanks!

0


Hi Leonardo! Can you confirm that you have a custom object that has a key called “available”? I just want to check because it's similar to our example docs here and if you're looking for just a checkbox, you would need to call out the specific keys for all of those checkboxes. If you had more than one, you would need to use the “or” array for this. 

 

If you do have a checkbox with “available” as a key, let me know and we can investigate this further!

0


Sign in to leave a comment.

Didn't find what you're looking for?

New post