AnsweredAssumed Answered

v10 REST API filter array format

Question asked by lyntonweb on Oct 12, 2016
Latest reply on Nov 28, 2016 by Tevfik Tümer

I've noticed two different ways of sending filters to Sugar's API.


Approach 1:

{"filter":[{"Contacts":{"date_modified":{"$gt":"2016-01-01 00:00:00Z"}}}]}
Approach 2:
filter[0][date_modified][$gt]=2015-01-01 00:00:00Z
Approach 1 doesn't work for me with the date filter used in the example, but it works fine if I use an equals filter like so: {"filter":[{"Contacts":{"emails_sent":{"$equals":"0"}}}]}
Can anyone shed light on why the date filter in Approach 1 wouldn't work, but Approach 2 works fine?