Support

Home Forums Event Espresso Premium REST API doesn't want to OR terms

REST API doesn't want to OR terms

Posted: July 30, 2017 at 11:45 am

Viewing 1 reply thread


jxh

July 30, 2017 at 11:45 am

In the documentation it says you can OR filter terms together by using an array. The literal example says “where[filter][OR]…” but this returns an error saying: There is no model named ‘filter’ related to EEM_Registration. Trying without that:

/wp-json/ee/v4.8.36/registrations?limit=500&where[OR][STS_ID]=RAP&[OR][STS_ID]=RPP

returns the same results as just &where[STS_ID]=RAP (but doesn’t throw an error). What am I missing?


Josh

  • Support Staff

July 31, 2017 at 1:44 pm

Hi jxh,

You can query for an array of statuses like this:

/wp-json/ee/v4.8.36/registrations?limit=500&where[STS_ID][0]=IN&where[STS_ID][1][]=RAP&where[STS_ID][1][]=RPP

Viewing 1 reply thread

The support post ‘REST API doesn't want to OR terms’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso