REST API - CustomObjects bool filters accept 0,1 values instead of true,false.

DavidK
Level 2

REST API - CustomObjects bool filters accept 0,1 values instead of true,false.

Filtering CustomObjects by boolean type must be done using 0/1 values.
Example:

This request works as expected and returns all custom objects with "Test" set to true.

 

 

{
  "fields": ["CreatedAt","MarketoGUID","UpdatedAt","Test"],
  "filterType": "Test",
  "input": [
    {
      "Test": 1
    }
  ]
}

 

 

Even using "Test": "1" works as expected, however, using "Test": true, or "Test": "true", or "Test": "True" does not work.

 

Testing with form data shows the same results

DavidK_0-1723542533005.png

 

Is this expected and documented? Filtering ProgramMembers using the "reachedSuccess" boolean field works with "true"/"false" values.