Support

Home Forums Event Espresso Premium API error Query parameter 'event_name' not a valid parameter of resource Event

API error Query parameter 'event_name' not a valid parameter of resource Event

Posted: May 4, 2014 at 4:58 pm

Viewing 2 reply threads


dm37ee

May 4, 2014 at 4:58 pm

The example code shows doing a search for events with the parameter “event_name”, but this is throwing an error for me. What’s wrong?

https://192.168.1.101/espresso-api/v1/events/hr871mwudw?event_name__like=%25Test%25

That has my session key and the query parameter exactly like the code example.


dm37ee

May 4, 2014 at 5:07 pm

I solved this, it’s just name, not event_name. The documentation is incorrect.


Tony

  • Support Staff

May 5, 2014 at 3:39 pm

Hi dm37ee,

Thank you for pointing this out, the documentation has now been updated.

It turns out the example code under ‘Further Examples’ had not been updated to match the latest version of the JSON API, this has now been updated.

A list of the available querystring variables is available for each endpoint within the documentations. For example GET /events shows both name & description.

Viewing 2 reply threads

The support post ‘API error Query parameter 'event_name' not a valid parameter of resource Event’ 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