Title: REST API: Future events
Last modified: October 27, 2016

---

# REST API: Future events

 *  Resolved [sagund07](https://wordpress.org/support/users/sagund07/)
 * (@sagund07)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/rest-api-future-events/)
 * I am not sure if I tested this in the past but when I try to call an event via
   REST API which is not published yet or which is scheduled for a later date I 
   get no result, instead I get a “code”:”rest_forbidden” and “data”:{“status”:403}.
 * Maybe this is a combination of a bug mentioned in [https://wordpress.org/support/topic/matchups-dont-publish/](https://wordpress.org/support/topic/matchups-dont-publish/)
   because there is an issue referring to the permalink.
 * Not published event: [http://eishockey-arena.de/wp-json/sportspress/v2/events/9231](http://eishockey-arena.de/wp-json/sportspress/v2/events/9231)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/rest-api-future-events/#post-8366201)
 * Hi!
 * Thanks for getting in touch!
 * I’ve just send this to our dev tema so they can check 🙂
 * Kind Regards,
    -Roch
 *  Thread Starter [sagund07](https://wordpress.org/support/users/sagund07/)
 * (@sagund07)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/rest-api-future-events/#post-8366637)
 * After some testing with the rest api plugin i can conclude that there must be
   an error with the sp_event capabilities for future events because in the rest
   api plugin the following if clause does not return true.
 * current_user_can( $post_type->cap->read_post, $post->ID )
 *  Thread Starter [sagund07](https://wordpress.org/support/users/sagund07/)
 * (@sagund07)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/rest-api-future-events/#post-8366706)
 * I also noted that the future events are not listed on the rest api events page
 * [http://eishockey-arena.de/wp-json/sportspress/v2/events](http://eishockey-arena.de/wp-json/sportspress/v2/events)
 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/rest-api-future-events/#post-8375134)
 * Hi!
 * Thank you for your message!
 * I’ve sent this to our dev team and this may be an issue with the latest SP release.
   What happens when you roll back to the previous version?
 * Kind Regards,
    -Roch
 *  Thread Starter [sagund07](https://wordpress.org/support/users/sagund07/)
 * (@sagund07)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/rest-api-future-events/#post-8375294)
 * Hi,
 * I guess that this is already fixed on github. I was not able to try the fix yet
   but I will do this in a few minutes.
 * I am not sure if the events were missing before one of the latest patches, could
   be, but I cannot remember if I tried to query them before.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘REST API: Future events’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [sagund07](https://wordpress.org/support/users/sagund07/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/rest-api-future-events/#post-8375294)
 * Status: resolved